richfaces

URL rewrite in Wildfly?

筅森魡賤 提交于 2019-12-06 16:32:31
I built up an app using RichFaces, PrimeFaces, and Java in the back. The outcome (mysite.war) I let run within Wildfly 8. Now my pages are like this: www.mysite.com/index.jsf www.mysite.com/report.jsf?no=1 www.mysite.com/report.jsf?no=2 www.mysite.com/report.jsf?no=3 www.mysite.com/report.jsf?no=4 www.mysite.com/legal.jsf I would like to change that to more readable URLs. Especially the reports! Taking the example order, I am looking forward to having something like this: www.mysite.com www.mysite.com/report/turkey www.mysite.com/report/germany www.mysite.com/report/england www.mysite.com

RichFaces rich:columns and sorting

丶灬走出姿态 提交于 2019-12-06 15:40:44
does anyone know how to properly enable sorting on a rich:dataTable with columns generated on the fly using rich:columns tag? Setting sortBy with an expression like #{row[column]} doesn't work for me. I'm using RichFaces 3.3.1GA. Here's the example: <rich:dataTable id="table" value="#{localeHandler.locales}" var="row"> <rich:columns value="#{localeHandler.columns}" var="column" sortBy="#{row[column]}" > <f:facet name="header"> <h:outputText value="#{column}"/> </f:facet> <h:outputText value="#{row[column]}"/> </rich:columns> </rich:dataTable> whereas the localeHandler.locales is an ArrayList

What is the a4j event sequence?

我怕爱的太早我们不能终老 提交于 2019-12-06 15:33:16
问题 What is the event sequence of a a4j:commandLink or a4j:commandButton ? Is it right: onclick -> actionListner -> oncomplete -> reRender ? Is reRender comes before oncomplete ? When action happens? 回答1: The onclick JavaScript is called the first when the enduser clicks the generated HTML element. When the JavaScript code does not return false , then all associated ActionListener implementations in the JSF side will be invoked, in the order of their association with the component. If the

What is the proper way to add a jquery plugin

风格不统一 提交于 2019-12-06 15:26:10
I am using JBOSS 3.01 and JSF 1.2 and RichFaces 3. What is the proper way to add a jquery plugin? <a:loadScript src="/scripts/jquery.cookie.js"/> or <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> I get jQuery.cookie is not a function [Break On This Error] if(jQuery.cookie("cssswitch")) { When I try to use the a:loadScript. Our namespace is a: instead of a4j: this one : <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> ite a basic html element which doesn't need other interpreter . 来源: https://stackoverflow.com/questions/8173441/what-is-the

Warning JSF1095 while using a h:commandLink inside a rich:dataTable

試著忘記壹切 提交于 2019-12-06 13:20:34
问题 I have a h:commandLink inside rich:dataTable . When I click on the command link, I'm adding a FacesMessage to the context and redirecting to the same message. I have a h:messages tag on the page to display any faces messages. I am able to display the message, but I'm getting following warning and the messages are not getting cleared. WARNING: JSF1095: The response was already committed by the time we tried to set the outgoing cookie for the flash. Any values stored to the flash will not be

Possible to have an ApplicationScoped bean that skins a JSF 2 application with a richfaces skin?

梦想与她 提交于 2019-12-06 13:00:57
问题 In production want the user to be able to write a properties file and upload that file to our production server. Once this is in place it will contain the properties needed for a richfaces skin. This file can be named whatever. In development I want the properties file to be read from inside WEB-INF/myprop.properties where all my other properties files are. This file can be named whatever. So far I have done this: @ManagedBean(name="myCustomSkin ") @ApplicationScoped public class MyCustomSkin

Dynamically updating a4j:repeat using data from form

帅比萌擦擦* 提交于 2019-12-06 12:47:53
问题 I have a page where the user can upload a file to the server. He can set which groups/users can read/write (to) the file. This is done by selects. One select holds the names of the groups the user is currently in, and on the same row is a select with options Read and Write. On the second row is the corresponding stuff for selecting users. When the user selects a group and either Read or Write for said group, he then presses a button. After pressing the button I would like to show the user a

How to replace the value of skin parameter on the fly in Richfaces 4.3?

↘锁芯ラ 提交于 2019-12-06 11:31:50
We have 2 applications: client application and admin application. User in admin application can change theme of client application. If theme contains image and skin then it is doable. Image servlet is using for reading image from DB on the fly and skin is changing dynamically. I have already implemented it. Task is more complicated : admin should have the possibility to customize ANY of the skin's parameters. Environment : JSF 2, RichFaces 4.3 We can save parameters and create new skin file, but in that case we need to redeploy the client application (which is not the best solution - already

How to submit a form using a javascript function in JSF w/ Richfaces, w/o the form name or id?

 ̄綄美尐妖づ 提交于 2019-12-06 11:06:33
问题 How would I go about submitting a form in Richfaces without the form name or id from javascript? I was thinking I might be able to use the jsFunction tag, but I haven't been able to figure it out. As a note, I can set the name of the function in jsFunction EDIT RF 3.3, JSF 1.2 回答1: That's not possible without repeating the form ID and without knowing the exact location of the form in the HTML DOM tree as opposed to the element from where you'd like to submit the form. You could at best use

RichFaces rich:panelMenu stops working when a4j:include'd

匆匆过客 提交于 2019-12-06 10:13:28
问题 From this previously asked question, I have noticed that when I move a rich:panelMenu (which works fine when in an index.jsp page) into another.jsp and then include that in index.jsp using an a4j:include tag, the rich:panelMenu functionality stops working. Is this a bug? EDIT 1 In response to code and after some isolation testing, the problem appears to stem from a coexistence of a rich:dataTable in another tab of a rich:tabPanel from the panelMenu. If my index.jsp contains a default simple