richfaces

How to maintain state of the DOM manipulated by jQuery/javasscript when reRendering richfaces/jsf components?

荒凉一梦 提交于 2019-12-11 05:26:33
问题 I've have problem when it comes to rendering some of my components in my jsf application. The problem is when i use jQuery on my page for example hiding the button. When the page reRenders the button come back to its original form which is supposed to be hidden. Has someone has expertise on this matter that will be able to help me find a suitable solution or there is some principles here or techniques which was i blindly misunderstood? Thanks. :) 回答1: The problem is when I use jQuery on my

ui:include in richfaces 4 only gets updated on second click

故事扮演 提交于 2019-12-11 05:15:12
问题 I am new to Richfaces4 and JSF2 and having lots of issues. Same code start to work suddenly and then it breaks. Currently I have a ui:include tag that update the page when the a4j:commandLink is clicked. Using debugging feature of eclipse I can see that the methods are being called and correct value is stored in the bean but page never gets updated until I click on it the second time. It seems the page is updated before the values are set in the backing bean. Following is my code. The same

Rich file upload showing all files on add, even for acceptedTypes=“xls”

烈酒焚心 提交于 2019-12-11 05:08:55
问题 <rich:fileUpload fileUploadListener="# {bean.fileUploadAction}" immediateUpload="true" acceptedTypes="xls" maxFilesQuantity="1"> </rich:fileUpload> in rich file uplaod i given acceptedTypes="xls" ,but on "add" in the file select box Files of types is showing all. I want to restrict it to only some specific format how can i do that. Any kind of help is appriciated,thanks in advance.. 回答1: This alternative way may solve your problem to some extent. Add an onclick event to your <rich:fileUpload

Jsf RichFaces a4j:support migration to a4j:ajax

拟墨画扇 提交于 2019-12-11 04:49:17
问题 I have problem with converting this code from JSF 1.2 application to equivalent in JSF 2.x application <h:selectOneMenu id="type" value="#{bean.type}"> <f:selectItems value="#{bean.typeList}"/> <a4j:support event="onchange" ajaxSingle="false" immediate="true" reRender="myForm"> <a4j:actionparam name="type" value="this.value" assignTo="#{bean.type}" noEscape="true"/> </a4j:support> </h:selectOneMenu> How this code snippet works. Depending on selected value in #{bean.type} , my page display

action method is not called in <a4j:commandLink> tag

故事扮演 提交于 2019-12-11 04:22:08
问题 <a4j:commandLink onclick="return call();" action="#{bean.deleteUser(all_user.userID)}" reRender="viewUserGrid"> <h:graphicImage style="border-style:none;" url="/images/delete.jpg" height="10px" /> </a4j:commandLink> The problem is deleteUser method is not getting invoked in the backing bean why is it so.But it is invoking the javascript function Please help me. 回答1: The problem is that you're returning a value in your "onclick" method. Assumming that your call js method returns a true or

ViewExpiredException in Firefox and IE after migrating to Jboss 7.0 AS [duplicate]

雨燕双飞 提交于 2019-12-11 03:54:10
问题 This question already has an answer here : Closed 8 years ago . Possible Duplicate: ViewExpiredException after upgrading to JBoss AS 7 We have JSF 2.0 Richfaces 4.0 application working perfectly fine on Jboss 6.0 and we are trying migrate it to Jboss 7.0 AS. We are experiencing ViewExpiredException in firefox and IE for any link we click on the page. In google chrome it is working fine. Note sure what is the problem. I don't have any clue how to debug this. Please let me know anybody

Richfaces combobox on selection changed event

走远了吗. 提交于 2019-12-11 01:54:08
问题 I have this code: <richfaces:comboBox value="#{ChoixContratBean.selectedFormule"} suggestionValues="#{ChoixContratBean.formules}"> <a4j:support event="onmouseover" action="#{ChoixContratBean.getDescriptionFormule}" reRender="reponse" /> </richfaces:comboBox> I would like that when the user hovers with the mouse the different values in the combo, a new description of the product appears in : <jsf:outputText id="reponse" value="#{ChoixContratBean.descriptionFormuleSelected}" /> No event is

Are Richfaces and Primefaces compatible with each other?

喜欢而已 提交于 2019-12-11 01:51:20
问题 I am using Primefaces-2.1 now, I try to integrate Richfaces-3.3.3 in my application in order to use <rich:jQuery> . My <p:commandButton> , <p:commandLink> stop working as soon as I integrate the Richfaces, I give me this exception: Any idea why? Exception in the filter chain javax.servlet.ServletException: Index: 0, Size: 0 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina

RichFaces 4 autocomplete is not showing suggestions

心不动则不痛 提交于 2019-12-11 01:33:28
问题 I am trying for too long to make an autocomplete custom suggestion demo. The demo is partially working as I can see the suggestions response in f12 debugger, but it is not showing in the drop down box. I am doing the following POM: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <org.richfaces.version>4.3.3.Final</org.richfaces.version> </properties> <repositories> <repository> <id>org

java.lang.IllegalArgumentException: Setter not found for property class

☆樱花仙子☆ 提交于 2019-12-10 21:08:42
问题 I want to implement a table with row editing. I found this exemple in the showcase, but I get this error evry time : javax.servlet.ServletException: Setter not found for property class java.lang.IllegalArgumentException: Setter not found for property class My xhtml <a4j:status onstart="#{rich:component('statPane')}.show()" onstop="#{rich:component('statPane')}.hide()" /> <h:form id="form"> <rich:dataScroller for="dataTableId" maxPages="8" /> <rich:extendedDataTable id="dataTableId" rows="200"