richfaces

JSF 1.2 app not working with GlassFish v3

Hey! Migrating to GlassFish v3 / JDK6u18 / NB6.8 makes me a lot of headscratching, and I'm quite confused now. My project (JSF, RichFaces, Spring) works fine with GlassFish v2 + JDK6u17. I'm using the same JAR's, and the same JSF version. One of my JSP's contains a <rich:tree>, this renders just fine, but if I post the values on this p...

RichFaces rich:panelMenu from RF demo causes error

Hello, I've got the RichFaces demo panelMenu source verbatim in an index.jsp page. As the demo doesn't supply any backing bean code to support this source, I created these methods in panelMenu.java: public void updateCurrent(String n) { logger.info("updateCurrent called with " + n); setCurrent(n); } public String getCurrent(...

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

Hello, 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 tes...

How to embed an image with text in an RichFaces a4j:commandButton

Hello I would like to have both an image and text (from the value attribute) in an a4j:commandButton in my JSF page, is this possible? Thanks ...

Request-scoped beans and datamodel initialization?

UPDATE II: OK, I managed to narrow it down a little. I have a page with a datatable with sorting and filtering functionalities, both taking place in the DB. In other words, I do not use the embedded functionality of the rich:datatable I use, but rather let the DB do the work. I work with request-scoped beans. The only session-scoped be...

Extend Richfaces components - for example customize Datatable component for specific implementation

Hi, How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an example if at it is available. Thanks Soma ...

How to hide RichFaces component on load?

Hi All, I would like to hide selected rendered component (for example: label) on page load. This gives mi opportunity to subsequently show component after user action (for example: when user clicks link). Here is example: <a4j:outputPanel id="myPanel"> <h:outputText value="Text 1" /> <h:outputText value="Text 2" /> </a4j:out...

how can I add event to richfaces fileUpload "on clear"

there are clear, clear all buttons on richfaces fileUpload component. <rich:fileUpload id="quoteFile" tabindex="10" listHeight="80" maxFilesQuantity="1" onuploadcanceled="" clearControlLabel="" clearAllControlLabel="" acceptedTypes="xml" fileUploadListener="#{loadSaveQuotes.uploadListener}"> <a4j:support event="onuploadcance...

How to use RichFaces a4j:commandButton not using submit

Hello, I have an a4j:commandButton which looks like this <a4j:commandButton id="stopBtn" type="button" reRender="lastOp" action="#{MyBacking.stop}" value="Stop" /> </a4j:commandButton> When the app is deployed, and the button clicked, the stop() method is not being called. All the a4j:commandButton examples refer to forms, b...

Nesting h:form tags in RichFaces a4j:included content

Hello How is it possible to enclose ajax-related elements with h:form tags in a jsp file which I want to then a4j:include in another jsp file given the suggestion (EDIT 3) to fix another problem by enclosing my a4j:include in an h:form tag? If my included code also has forms in that would suggest a nested form structure which will li...

in JSF - How to rerender a component on button press. (The smart way?)

Hi, I have a simple HTMLCommandButton that I want to cause a rerender to another component. I know of a simple way to do that - add an ajax support object and have it run on "onclick" event and rerender. <h:commandButton value="Submit" action="#{actions.submitToDB}"> <a4j:support event="onclick" reRender="Button0" /> </h:commandButto...

JSF: How to invalidate an user session when he logs twice with the same credentials

I'm using JSF 1.2 with Richfaces and Facelets. I have an application with many session-scoped beans and some application beans. The user logs in with, let's say, Firefox. A session is created with ID="A"; Then he opens Chrome and logs in again with the same credentials. A session is created with ID="B". When the session "B" is created...

CSS rollover effects with RichFaces a4j:commandButton

Hello I've not seen a useful, authoritative web resource which says how to reliably enable rollover effects on a4j:commandButton elements in RichFaces JSF content. I have found plenty of css resources re buttons, but then when they start talking about html I start wondering what the equivalent is in more recent web technologies. Basic...

RichFaces PickList problem with vertical-align: baseline

We're using RichFaces PickList control on several pages. Our GUI designer has put in the rule vertical-align: baseline for most basic elements: html, body, div, p, and all table tags. On our target browser, FireFox 3.5, when a picklist box is empty, either the source or target, it floats above the other box and the controls. I don't wa...

Changing font universally - richfaces

i was wondering is there a way to change font universally for richfaces irrespective of what skin i am using. ...

Using java to create a dynamic rich:panelMenu

Hail This attempt at using component libs to access a Map<String, ArrayList<String>> <rich:panelMenu style="width:35%" mode="ajax" iconExpandedTopGroup="/img/logListIcon.png" iconCollapsedTopGroup="/img/logListIcon.png" iconCollapsedGroup="/img/logListFolderIconClosed.png" iconExpandedGroup="/img/logLi...

Building an XML editor in java and RichFaces

Hello I'm building an XML editor using the above technologies. In essence, I want to read in a whole XML file to a java object, and refer using this object to each element in the XML node tree (grouped into entries) to display the content locked, have separate padlocks for the user to click to 'unlock' an entry allow overwriting of the...

Problem regarding listShuttle component in richFaces ?

I am a newbee for Richfaces components, When i am using the <rich:listShuttle> the Arraylist specified in the targetValue is now getting updated with the latest data? Kindly help MyJSF File <a4j:region> <rich:listShuttle sourceValue="#{bean.selectItems}" id="one" targetValue="#{bean.selectItemsone}" var="items" listsHeight="150" sou...

RichFaces demo dataTableScrollerBean.java location

Hello, I've noticed from here that the contents is only the header Revision 16532: /tags/3.3.2.SR1/samples/richfaces-demo/src/main/java/org/richfaces/demo/dataTableScroller and no listing of the dataTableScrollerBean.java file which the Edit Table/Modal Panel demo JSF code refers to. Where can I access it? I'd like to try the demo ...

JBoss RichFaces vs IceFaces vs Apache Trinidad - JSF component libraries comparison

What do you think/use for interface layer? The "backing" layer will be Spring 3. The criteria are : Your private opinion Components Documentation AJAX Integration Browser support Community Tool support (Eclipse, NetBeans) I found some comparison topics but it was about 2007 and old versions. ...