In my JSF + Richfaces application I observed that rich:datascroller gets executed when I fire ajax request from different a4j:region. This is my code:
<jsfc:view>
<a4j:region renderRegionOnly="true">
<a4j:form>
<a4j:region renderRegionOnly="true">
<jsfh:selectOneMenu id="selectOneMerchant" valu...
I am trying to validate a field based on another field's value.
<h:form id="item">
<s:validateAll/>
<h:selectBooleanCheckbox id="selected" value="#{bean.selected}" validator="selectedValidator"/>
<rich:calendar id="startDate" value="#{bean.startDate}"/>
</h:form>
However, inside my validator.
public void validate(FacesContext c...
I am using JSF with RichFacecs to create a web portal .I want to redirect the user to the login page on session time out. I was trying to throw a SecurityException in session expiry/logged out stage as follows
<error-page>
<exception-type>java.lang.SecurityException</exception-type>
<location>/Login.jsf</location>
</error-page>
...
I am creating a portal in jsf with a left menu(rich:panelMenu) and with a content area on the right side. I want to refresh only the content area with different forms on clicking the menu items in the left menu. The menu selection needs to retained. Which is the proper technique to handle this ?
...
Hi Guys, Im a bit at my wits end here. Im getting the following in my logs when I try to render a JSF page:
java.lang.NullPointerException: serialFactory
at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:182)
at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:149)
at org.apache.myf...
Mozilla is spitting out
DnD is not defined
errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd?
We are using Richface...
I've finally managed to receive events if the user expands a node of my client side handled tree using the following method:
public void processExpansion(NodeExpandedEvent event) throws AbortProcessingException {
if (event != null && event.getSource() != null && event.getSource() instanceof HtmlTree) {
this.expandedNodes.add(((UITree...
I'm trying to work on a user interface for adding "events". These events have either 0 or many contacts.
Ideally I would like to have an interface that when entering a new event, has a section for contacts, with a little form to enter one contact (name, phone, etc). On the bottom of that mini-form I would like to have a link or butt...
Hi we are using various combination of data table and rich combobox and tab panel. the rendering is taking too long. is i did the performance tuning suggestions from stackoverflow and other websites
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-pa...
I'm attempting to use a RichFaces panelMenu as a navigation menu but have yet to figure out a way for it to maintain state between requests. Is there anyway to tell the panelMenu to render itself with certain groups expanded without using ajax?
I've attempted setting the value on the panelMenu and using selectedChild, all to no avail.
...
Hi All,
I am using richfaces's component extendedDataTable and I need to extend the grid height to show all the rows without using a scroller. To do so I have added a java script method to run on page load. This method aims to resize the grid.
The reason that I couldn't do this in code isI dont know the height of each row as it is not...
Hi,
I worked hard on this problem but no way to find a solution.
I juste wan't to enable richfaces for one and only one HTML page.
Why ?
Because I use RichFaces on only one page.
Moreover I'm losing precious time on each others during the page loading due to JavaScript code that I don't use.
=> This code is add on each of my pages. I ...
I am currently looking in to some file uploading using Java Server Faces. I've found this great introduction to it using RichFaces. However, I have some troubles understanding the process here.
First the user selects a file and if the immediate upload is set to true the file is processed using ajax, so far so good. When it comes to the ...
I'm attempting to put a few drop down menus inside of an a4j:repeat. The values for the second drop down are dependent on the value selected in the first. Below is the code I am attempting to use, but it passes a blank parameter:
<a4j:repeat id="localRepeat" var="local" value="#{InstanceController.instance.locations}" rowKeyVar="row">...
Hi All,
I have 6 rich columns inside a datatable.I have 3 h:outputext and 3 inplaceinput enclosed in 6 rich:column.rich:columns have "filteredBy" condition.When I filter the data , data displayed using h:outputtext is displayed properly.However data displayed using "inplaceinput" is not getting filtered.
Regards,
Vivek
...
We are using Richfaces in one of our projects.
I need to focus the element dynamically on some user action.
The issue here is I only have the id (JSF specific id that I give to element.)
For example: for h:inputText I use it as
<h:inputText id="userNameInputBox" value="<<some binding>>/>
and this input box is embedded in separate fo...
Hey,
I have a method that gives back a formatted XML string. I want to show that on a JSF page in a nicely wrapped, readable way. I used this solution first.
<pre><h:outputText value="myBean.xml"/></pre>
The result is indented, but it doesn't wrap very long lines (with a lot of attributes for e.g.)
RichFaces is also available in my ...
I have a List of strings in my object, and I was hoping to be able to edit them with an a4j:repeat.
Below is my code:
<a4j:repeat value="#{Controller.object.stringList}" var="item" >
<h:panelGrid columns="2">
<h:outputLabel value="ID:" />
<h:inputText value="#{item}" />
</h:panelGrid>
</a4j:repeat>
My problem is that the values of ...
Hi,
is it possible to use mobile applications using Rich-faces 3.3? i know both ice-faces and prime-faces(it has a components called touch-faces) support mobile developments. if yes is there examples or information available on internet?
Thanks
Soma
...
I'm trying to use a List of SelectItems with RichFaces suggestionBox component. The problem is I need to store the id rather than the label of the SelectItem. It seems that the suggestionBox always stores the label and that's causing a problem. Is there a way out of this problem?
...