richfaces

After rich:extendedDataTable sortby, other actions are not getting executed

I have several tabs and one of the tabs uses rich:extendedDataTable. If sortBy is clicked in the page where table is used and if I navigate to another page, it looks for the bean of the old page and throws an error saying that sortyBy of the column is undefined. E.g. If I use sortBy on userId in tab1 (where the column must have sortBy="...

Workaround for richfaces combobox hotkey bug

Hi, Does anyone know a workaround for the bug https://jira.jboss.org/jira/browse/RF-8076 ? Just to clarify things, we have a form with multiple inputs, one of them being a combobox with auto complete features. We've setup a hotkey via <rich:hotKey key="return" ... /> It works great everywhere except in the combobox, and I would rea...

I am unable to get the selected menuItem from <f:setPropertyActionListener. I have used binding for rich:dropdownmenu.

<rich:dropDownMenu direction="bottom-right" jointPoint="tr" submitMode="server" binding="#{backing_activityCreate.menuComponent}"> <a4j:support event="onitemselect" action="#{backing_activityCreate.changeActivityType}" > <f:setPropertyActionListener value="#{backing_activityCreate.activi...

Need to Remove the extra space below the rich:menuItem

I have added 1 rich:menuItem inside rich:dropDownMenu. but in the UI there is a extra space below the menuItem. how to remove that space. ...

Click event of buttons is not fired when it causes onChange event of textbox is fired first

Hi All, I have a textbox like below <h:inputText value="#{bean.strQuantite}"> <a4j:support actionListener="#{tabacListCommandeAltadisDetailBean.actionListenerQuantity}" event="onchange" /> </h:inputText> I input some value into the textbox above and keep the caret i...

Richfaces modal panel and a4j:keepAlive

Hello! I've got unexpected problems with richfaces (3.3.2) modal panel. When i try to open it, browser opens two panels instead of one: one is in the center, another is in the upper left corner. Besides, no fading happens. Also i have three modes: view, edit, new - and when i open my panel it should show either "Create new..." or "Edit....

Seam/JSF/Facelets Compiler or Validator (equivalent of JspC for JSP)

Is there such a thing as JspC in the Seam/JSF/Facelets world? I used the Tomcat's JspC to validate a JSP/Struts application to validate if there are typos in the JSPs or some JSP was calling a Java function that didn't exist, etc. etc. From time to time I come across bugs in my current project (Seam/Facelets/RichFaces) where it's cause...

c:forEach.items getting repetitively called

Environment: Seam, Richfaces The following code snippet causes the method getUsers to be called multiple times, how do I avoid this in my application so that it gets called only once. <c:forEach items="#{userHome.getUsers()}" var="_user"> </c:forEach> ...

can't edit my h:datatable

hi! i have this code: <h:form> <rich:dataTable value="#{my.lreqs}" var="req" id="reqs" width="630px" > <rich:column label="Value" styleClass="schColL" width="90px" style="text-align:center"> <f:facet name="header"> <h:outputText value="#{my.colVal...

How to insert multiple input boxes during run time in JSF richfaces

HI, suppose i have one input box which takes value for mobile no. and when the user wants to add another mobile no at that time user will click 'plus' button. as soon as he clicks the plus button another text box should appear and user should allow to enter another mobile number i want code in JSF richfaces please help me out. Thanks i...

Before the lablel for each of the menu item, there is space with the some color, i want to remove the color.

Hello, I am using richfaces dropDownMenu component which contains a set of rich menuItems. When the menu items are displayed, a extra space is displayed before the lablel for each of the menu item. But I have a requirement of not displaying the space before the labels and to change the color. I used the css to reduce the space: .rich-...

Resizing the window in web application JSF richfaces

I want to resize the window as and when user adjust the browser. I am catching the resize event and changing the height and width. But it's not working for all. Please give some idea. I am doing in JSF richfaces. ...

Can I ReRender a JSF Component from backing bean code?

Hi, Can I rerender a jsf ui component when a valuechangelistener method is run? The reason i'm asking is that my valuechangelistener method changes the values of the input boxes in the backing bean but they don't seem to be rerender. What happens eventually is that the values that are printed on screen are saved to the backing bean, ove...

How to display image in jsf and onclick provide a file upload (to replace)

Hi, I would like to display an image on my web page and provide the user the ability to click it and upload another image to replace it. Either myfaces or Richfaces works.. (I know tomahawk has some solution but i'm wondering if that's the only solution. The least libraries I use the better..) Thanks! ...

problem with <rich:combobox

why the rich: comboBox uses the value to display in the listing and not the label, as I do to show the description and select the id. I did so <rich:comboBox width="300"> <t:selectItems value="#{compromissoHome.buscar}" var="teste" itemValue="#{teste.testeId}" itemLabel="#{teste.teste1}"/> </rich:comboBox> ...

Accessing bean object methods from xhtml in RichFaces

Hello When I use (1) in my xhtml, I get an error as in (2). How can I access the size of an array in my bean? (1) A List of objects of a custom class type, accessed through the following h:outputText in a rich:column in a rich:subTable in a rich:dataTable: <h:outputText value="Info: #{f.filemask.size()}" /> (2) Caused by: com.sun...

Override jsf implentation in WAS

Hi everybody, I want to develop richface implented app on Ibm Websphere. I include *.jars under WEB-INF/libs and it runs succesfull. But first deployment proccess is realy terriable.. So I want to add libraries to server, not include in application. (i belevie it could increase 1st deployment).. Is there a way to override server imp...

JSF single select box with customizable look-and-feel

I'm looking for a control that allows me to choose a single option from a list of choices via a dropdown box. The h:singleSelectMenu or h:singleSelectListBox worked well, but now I have a requirement to customize the glyph that triggers the dropdown. I've looked at the RichFaces components, but I don't see anything like a single select b...

Can objects be (de)serialized in richfaces xhtml?

Can Richfaces (de)serialize objects? Say for instance, I have a row of data being displayed in a richfaces table. Can I serialize the row of data to a string and later deserialize it back into a row? ...

How To: Use FileUpload.setFileUploadListener(MethodBinding) with a MethodExpression

Hi, I have a problem with adding a FileUploadListener object to HtmlFileUpload (rich:fileupload) programmatically: This works but is deprecated: HtmlFileUpload upload = new HtmlFileUpload(); upload.setFileUploadListener(FacesContext.getCurrentInstance() .getApplication().createMethodBinding( "#{actions.storedObjects["+this.get...