richfaces

Using a Enum with a ActionParam

筅森魡賤 提交于 2019-12-12 04:42:52
问题 I am using the following piece of code in my JSF 2.0 with RichFaces 4.0. I have a managed bean that has an enum. Now i want to assign the value of the enum via an ActionParam. How can I do this? Here is the code: <a4j:commandLink id="pendingTransactions" action="#{tellerBean.getPendingTransactions}" value="Show Pending" styleClass="button category-btn"> <a4j:actionparam name="first" value="" assignTo="" /> </a4j:commandLink> and my managed bean: @ManagedBean @SessionScoped public class

jsf2 search bean request scope is not displaying results

蹲街弑〆低调 提交于 2019-12-12 04:09:16
问题 Here is my code, search.xhtml page <h:form id="searchform"> <h:inputText id="deptId" value="#{searchBean.departmentId}"></h:inputText> <h:inputText id="deptName" value="#{searchBean.deparmentName}"></h:inputText> <h:commandButton value="Click to Search" action="#{searchBean.searchEmployees}"> </h:commandButton> </h:form> searchresults.xhtml page <rich:dataTable value="#{searchBean.employeeList}" var="e" id="table"> <rich:column> <f:facet name="header"> <h:outputText value="FNAME"/> </f:facet>

Filter Facet is not working in Richface 4.3x

≯℡__Kan透↙ 提交于 2019-12-12 02:48:50
问题 In the Code below, You can observe two things: 1) Default sorting is getting utilized. 2) Image based custom filter is used. Problem I am facing : When I click on filter image default sorting is getting triggered. Need a way by which If I click on filter, default sorting doesn't get triggered. (This was achieved in Richface 3.3 by putting this custom filter in filter facet.) Any help or hint would be greatly appreciated. <rich:column sortBy="#{model.modVal}" label="Model Value" sortable="true

java.lang.IllegalStateException after adding rich faces libraries to pom.xml

ⅰ亾dé卋堺 提交于 2019-12-12 01:42:02
问题 I am trying to run my first JSF application using RichFaces. Unfortunately the error below is being thrown. There is no bean added to my project. Also, there's no tags added yet. Just trying to run simple empty xhtml file. What is the problem? I'm using Eclipse Luna 4.4.2, GlassFish 4, and OSX. 2016-02-03T00:34:59.661+0200|Warning: StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalStateException at com.sun.faces.context

Error rich:panelMenu example showcase doesn't render

浪子不回头ぞ 提交于 2019-12-12 01:35:22
问题 Hi i can't replicate the example in the richfaces 4.3.0.Final showcase: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=panelMenu&skin=blueSky Specifically in the rich:panelMenu component, when i run the code the panelMenu doesn't responde,and the panelMenuItem doesn't show, I change the code like this: <rich:panelMenu style="width:200px" itemMode="ajax" groupMode="ajax"> to <rich:panelMenu style="width:200px" mode="ajax"> and the panelMenuItems show and working, but this

Rich:Calendar backed by String throws Exception

核能气质少年 提交于 2019-12-12 01:28:59
问题 I have the following RichFaces (3.3.3) : <rich:calendar id="richCal1" value="#{user.CreateDate}" popup="true" mode="client" inputSize="20" datePattern="dd/M/yyyy HH:mm" enableManualInput="true" buttonIcon="/images/calendar.gif"> <f:convertDateTime type="date" pattern="dd/MM/yyyy HH:mm" /> <a4j:support bypassUpdates="true" event="oninputblur" ajaxSingle="true" /> <a4j:support bypassUpdates="true" event="onchanged" ajaxSingle="true" /> </rich:calendar> The backbean Variable Type is String as

h:graphicImage not reRender

故事扮演 提交于 2019-12-11 23:17:55
问题 i have a jsf file where i have selectOneMenu and a h:graphicImage.Now the problem is when i send onchange request through selectOneMenu and want to reRender the h:graphicImage and want to show and hide boolean in action bean.But not work properly. Actully first i investigate it very carefully that when i send action through selectOneMenu the boolean value set correctly in bean but not set the reRender value properly.If i refresh page then it work properly.Anyone who i can solve it if i want

Rich Faces dataTable StyleClass Issue

时间秒杀一切 提交于 2019-12-11 21:32:07
问题 Version : Apache MyFaces 2.1.14 Rich Faces 4.3.5 Issue : We are migrating from JSF1.2 to JSF2. The issue is the style for headerClass is not getting applied correctly for rich:dataTable. When debugged , it seems that rich faces overrides the headerClass style with its own styles. The syle selector .rf-dt-hdr-c of rich faces overrides the custom style sheet selector. (We want to replace the colour of header with custom header image) Finally , when rich faces supplied style (.rf-dt-hdr-c) is

Richfaces 4.1 push without JMS?

百般思念 提交于 2019-12-11 21:12:46
问题 I used a4j:push in the RF3.2 branch but with RF4.1 it seems to be a bit more complicated. Esspecially the demand for a JMS system is something that needs some studying. While studying I read that JMS is no longer needed but I can't find any demo's. I located the how-to and the demo code in the nightly build but they all seem to use JMS. Without JMS seems to be a lot simpler :) Any suggestions? Thanks, Milo van der Zee 回答1: From the Richfaces 4.1 Component Reference: 3.8.6. Using Push without

Check All box for Richfaces Treenode

两盒软妹~` 提交于 2019-12-11 19:38:25
问题 Trying to create a checkbox to check all items in a treenode. I'm kind of new to JSF so I'm pretty stumped as how to implement this on a tree instead of a table. This is the current code: <rich:panel style="width:400px;"> <h:selectBooleanCheckbox id="vehicleAll" onclick="selectAllModel(this.checked);"> </h:selectBooleanCheckbox> <h:outputText value=" ALL"/> <rich:tree id="vehicleTree" switchType="client" value="#{applicationScope.demoModelGrpList}" var="node" ajaxKeys="#{null}" binding="#