richfaces

How to Load the page First and read database

Hi, HTML form has some text boxes and a drop down box. Drop down has huge values, and takes lot of time to fetch from database. So I want to load the page first and while the user fills the form (text boxes) I want to load the drop down box (without his knowledge :-) ). But without any event trigger, how do I make call to database ag...

rich:dataTable sorting issue (ajax) + rich:datascroller 'next' control does not go passed page 2

Hello, I am using Richfaces 3.3.0, Facelelts 1.1.14 and Seam 2.1.1. I have an issue my rich:dataTable component and sorting. I noticed a pattern... the very first click on the table on a column header has no effect then all subsequent clicks on any header actually performs previously requested order. I tried many different things, but...

How to set a define inside other define

Hi all! I'm developing a web application in jboss, seam, richfaces. I'm using a template(xhtml) as master page of all others and there i set two insert tags. <ui:insert name="head"/> <ui:insert name="body"/> The problem is that in pages that use this master page as template, the <ui:define name="head">...</ui:define> must be defined i...

Cross field validation with Hibernate Validator (3.1.0.GA)

How do we enforce cross field validation with hibernate validator 3.1.0.GA create table user (id, start_date, end_date, ...) e.g. college graduation finishing date for a student should be greater than the graduation start date How do we enforce this, so that the validation messages can be shown in the UI on save / update operations. T...

<a4j:actionparam send value alway null

I have such code <a4j:region> <h:inputText label="User" id="user" size="30" value="#{bean2.val1}" required="true" > <a4j:support event="onblur" action="#{bean.action}" reRender="outputName" bypassUpdates="true"> <a4j:actionparam name="user" assignTo="#{bean.user}" value="#{user}" /> </a4j:support> </h:inputText> <...

Richfaces tooltip componentcontrol param

I have a table where each cell click opens a tooltip using the componentControl tag, this works. But I wanted to pas a parameter to the tooltip, which is different per table cell. <rich:toolTip id="tooltip" attached="false" mode="ajax"> <ui:include id="projectDetailInclude" src="projectDetail.xhtml"> <ui:param name="projectDetail" v...

RichFaces and Facelets, a good combo?

Hello, I've been programming using RichFaces and JSF for quite some time now, and like the features that Facelets offer (especially as part of JSF 2), but haven't used it yet. Are there any gotchas to watch out for or incompatibilities between RichFaces and Facelets? I use A4J ajax functionality a lot as part of RichFaces, so I am con...

Richfaces: Issue with HTML generation of datascroller/datatable.

I'm using RichFaces 3.3.1 with JSF RE 1.2 and facelets. I have a strange issue with the HTML generation of a rich:dataTable connected to a rich:datascroller. <h:form id="br"> ... <rich:datascroller id="scrt" page="#{searchBookings.page}" stepControls="hide" renderIfSinglePage="false" for="bt" align="left" reRender="ttips,bt"/> <rich:...

RichFaces / Ajax4JSF: How to turn off JavaScript obfuscation?

How can I turn off JavaScript shortening in A4J? I remember there was an option, possibly used during build, which made .js files not being processed by some shortner / obfuscator, thus remaining nicely formatted. But I can't remember what it was or find it on the web. Anyone knows? Thanks ...

Richfaces togglePanel facets do not allow setting the style for each facet?

Hi all, I have a rich:togglePanel with two facets. I want the contents of the togglepanel, whatever facet is active at that case, to have width=100% and height="100%". For this I have created the expandAll. The problem is that the facet "renders" a div named togglePanel_open, whose content (the panelGrid) has class expandAll, but itse...

How to access complex java maps in jsf/richfaces

Hello I hope you can help me. I'm new to java and jsf and richfaces and I've created a java map in a class (called "TaskListData") accessed by my backing bean as follows: public class TaskListData { private Map<String, String[]> srcMasks = new HashMap<String, String[]>(); private Map<Integer, Map<String, String[]>> ftqSet ...

Accessing java-based DOM tree directly from JSF/richfaces

Based on this question I have a couple of other questions: 1) the map in this question which is made available to jsf is actually one of a number, so i'm now not sure what the backing bean method's return type should now be. if i modify it's current Array<String> return type to Array<Map Integer, Map<String, String[]>>> (or ArrayList<M...

Writing a web application gui. Which technology should I use?

Hi, I would like to write a somewhat complex web gui application. It will be used to edit certain content by displaying panels and allowing the user to drag items to edit the content. The explanation is somewhat abstract, but the point is that i'm looking for a modern gui writing technology, the more standard it is the better odds of m...

Absolute reRendering using RichFaces

Hey there, My problem is that RichFaces reRender does not work 'under' the current element in the element tree; only upper elements get rerendered. Is there any way to access lower elements with AJAX? Any help would be appreciated! Daniel EDIT I edited this question to a more general one. See revisions if interested in the original q...

Deprecated richfaces javax.faces.el.MethodBinding replacement use

Hello I found this piece of code works in that i can programmatically creates a richfaces dropdown menu. But some of the code is deprecated. Can anyone tell me what to put in instead of the deprecated calls? Thanks public HtmlDropDownMenu getMyMenu() { HtmlDropDownMenu menu = new HtmlDropDownMenu(); menu.setValue( "Node Se...

returning a4j:included content using bean-generated rich:dropDownMenu

I may be missing a couple of points, but I've hacked together a jsf/richfaces app and want to be able to do the simplest ajax-based nav: main page contains ref to my backing bean's menu <h:form> <rich:dropDownMenu binding="#{PrismBacking.nodeMenu}" /> </h:form> this refers to the code for the b...

Lost RichFaces skin when rendering through rich:panel and a4j:include

I have an h:selectOneMenu and an a4j:commandButton, the latter of which reRenders a component called content which looks like this: <rich:panel id="content"> <a4j:include viewId="#{MyBacking.viewId}" /> </rich:panel> When the response is rendered and the component loads the content of the new JSP page, the tabs contained in that page...

c:forEach doesn't render inside rich:dataTable

I am using c:forEach inside rich:dataTable. But c:forEach doesn't substitute the values for answer.choices variable and hence nothing is rendered. Is it wrong to use c:forEach inside a rich:dataTable? ...

Using a4j:repeat or ui:repeat inside rich:dataTable doesn't render radio buttons properly

While using <c:forEach> the items values is not substituted properly. If i use <a4j:repeat> or <ui:repeat> instead of <c:forEach> inside a <rich:dataTable>, radio button is not rendering properly. I also found reason for this in http://community.jboss.org/wiki/Cantusea4jrepeattoiteratethemenuItemstabsetc How do I resolve this issue? <f...

checks for constraint violation before persisting an entity

What is the best mechanism for preventing constraint violation checks before creation | modification of an entity? Suppose if the 'User' entity has 'loginid' as the unique constraint, would it be wise to check if there is an user entry already with this loginid name before creation or modification. OR Would you let the database throw...