richfaces

JSF-2 Select/Unselect all the list of checkboxes with single checkbox

别等时光非礼了梦想. 提交于 2019-12-25 19:56:12
问题 I have list of check boxes inside rich:dataTable and I want to check all the boxes at once with a single check box from header column. <rich:column id="includeInWHMapping" > <f:facet name="header"> <h:selectBooleanCheckbox value="#{checkallbox.selectAll}"> <f:ajax actionListener="#{checkallbox.selectAllBox}" render="selectedForWHProcess" /> </h:selectBooleanCheckbox> </f:facet> <h:selectBooleanCheckbox id="selectedForWHProcess" value="#{checkallbox.checked[data]}"> <f:ajax actionListener="#

Richfaces tree is giving me an “Uncaught ReferenceError tree is not defined”

大憨熊 提交于 2019-12-25 12:53:09
问题 I believe my problem is in a settings file somewhere, but I have no idea what file/setting that would be. I have a standalone project with a working tree, but when I try to integrate it with my real project I start getting the mentioned error. That's what makes me think I have a setting somewhere that's off. I'm using JSF1.2 and richfaces 3.3.3. Here's my JSP file. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%-- jsf:pagecode language="java" location="/src/java/pagecode

rich:select shows “Value is not valid option” after selecting and converting the item to an object

久未见 提交于 2019-12-25 11:56:33
问题 I list a collection of elements of type Test (from my domain) in a rich:select using the following code: test.xtml <rich:select value="#{testBean.test}" id="cmbTest" converter="#{testConverter}" enableManualInput="false"> <f:selectItems value="#{testBean.all}" var="test" itemLabel="#{test.name}" /> </rich:select> <rich:message for="cmbTest" /> <h:commandButton id="btnSave" action="#{testBean.save}" value="Save" /> I also have a custom jsf-converter to convert the select string values into

error@malformedXML with ajax requests in JSF

早过忘川 提交于 2019-12-25 09:26:11
问题 Context : Weblogic 12.2.1 / JSF 2.1.6 / Richfaces 4.2.2 / Primefaces 3.4 I have a JSF application that was on Weblogic 10.3.6 and that I successfully deploy on Weblogic 12.2.1. I am facing the following error after each ajax request : Received 'error@malformedXML' event from <input ... [200] undefined: undefined This error usually occurres when the component to be rendered is not present in the page but as you'll see in the following pieces of code, this is not the case : Java private int

RichFaces: How to reset page in datascroller after changes of values in dataTable

我的未来我决定 提交于 2019-12-25 06:47:14
问题 I have rich:datascroller for my rich:dataTable which is working well except that when I am on any page number (let say 5) and do a search operation (or any operation which renders the dataTable). Pagination will still show page 5, but I want it to be reset to 1. page when the operation happens. In this image, when I am going to Page 5 and hit Search again or do a clear and search again, the pagination is still set to Page 5, not back to Page 1. Here's my code snippet: <rich:datascroller id=

jsf clearing the form

只愿长相守 提交于 2019-12-25 05:25:16
问题 I need help. I'm new to JSF and im using JSF2 and richfaces in my project. I want to clear the form for which I'm using <f:ajax render="@form"/> in refresh button. I have an ADD button on that screen which adds one record and I hit refresh then it's going to the default page. But when I once again go to enter a record then those values which I entered earlier remain in the form fields. Can anyone please help me out with this issue? 回答1: Assuming that you mean the browser's refresh button when

In Rich:ExtendedTable tag, how can I set the drag-and-drop property for the columns as false?

纵然是瞬间 提交于 2019-12-25 05:08:12
问题 I have a very specific requirement: the headers in the rich-extended data-table should not be draggable . I searched for the RichFaces classes and found about the rf-edt-rsz class, which can be used to disable the column resizing property, which I did. But the last thing of the task, disabling drag-n-drop property for the columns is what I'm looking for. If anyone can provide me some assistance on this task, I would be grateful. 来源: https://stackoverflow.com/questions/41549922/in

ELResolver cannot handle a null base Object - Weblogic 10.3.x, Facelets 1.1.14, RichFaces 3.3.2

岁酱吖の 提交于 2019-12-25 04:47:04
问题 I'm having trouble using RichFaces 3.3.2 and Facelets 1.1.14 under Weblogic 10.3.4 and 10.3.5 (aka 11g). I have an xhtml file with the expression #{empty messages} , and on the console I get the following exception: SEVERE: Error Rendering View[/index.xhtml] javax.el.ELException: //media/DADOS/data/java/wl1034/user_projects/domains/wlrep1034/autodeploy/SimpleJSFa/index.xhtml: ELResolver cannot handle a null base Object with identifier 'messages' at com.sun.facelets.compiler.TextInstruction

JSF1064: Unable to find or serve resource, jquery.js Tomcat 7 + RichFaces 4

﹥>﹥吖頭↗ 提交于 2019-12-25 01:39:13
问题 I've been using RichFaces 4 with Tomcat 7. There are no errors when Cleaning and Building the app (NetBeans). When the app is deployed, everything works fine but from time to time the following exception is thrown and I don't know where or what could be the error: This is the Stack Trace of Tomcat's catalina.log may 07, 2012 3:36:43 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource WARNING: JSF1064: Unable to find or serve resource, jquery.js. may 07, 2012 3:36:43

rich:dataTable paging - marking visited pages of rich:datascroller

时间秒杀一切 提交于 2019-12-25 00:08:54
问题 Is it possible to mark visited page numbers in the paging footer of rich:dataTable? If so, how exactly? The footer is rich:datascroller. 回答1: You can use the <f:facet name="pages"> facet inside your rich:datascroller to display the individual page links your own way. In the backing bean record the visited pages, apply a css class to the visited pages. See an example here: http://livedemo.exadel.com/richfaces-demo/richfaces/dataTableScroller.jsf?tab=scrollerfacets (click on view source) 回答2: