richfaces

Controlling a rich:togglePanel with a select widget

Per this question I tried the following <h:selectOneMenu id="branchSelect" value="#{cloner.branchType}"> <a4j:support event="onchange" ajaxSingle="true" rerender="branchSelect, branchPanel" /> <f:selectItem itemLabel="Constant" itemValue="constant" /> <f:selectItem itemLabel="Pattern" itemValue="pattern" /> </h:selectOneMenu...

How to fix extendedData selection change when not focused.

We have a page in a seam application using richfaces that contains an extendedDataTable plus one or more list boxes. We've found that, once you select something in the extendedDataTable and then switch to one of the list boxes, the extendedDataTable keeps responding to the up and down arrow keys, so if you use them to change the selecti...

Do I have to declare a4j:queue to use named queues?

Hi, I've been using jsFunctions where I specify a queue name, but haven't been delcaring the a4j:queue's themselves. The queuing functionality seems to be working just fine, but should I be creating the a4j:queue tags? Thanks! ...

How do I turn off minified JavaScript under Richfaces?

For the purposes of debugging I need to make Richfaces use non-minified JavaScript. Is there a simple way to accomplish this? ...

Detect page unload with JSF; influencing <body> tag from JSF

Hello I have a JSF web app which, after some user manipulation, opens a connection to an IBM MQ Q Manager, ie does something. When the user navigates away from the page (using FF only) or closes the browser, I would like my app to detect this and close the connection gracefully. All I can find thus far on the web are references to wind...

Richfaces combobox on selection changed event

hello ! 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 ...

ViewExpired exception while trying to load balance http requests

I am trying to run the jboss server (5.1.0) in clustered mode. I am having two nodes in the same host. When i access the two nodes as separate URLs it works well. I am using a Apache HTTP server to load balance my requests using the Proxy balancer (with proxy pass, proxy reverse configurations). When I access the Apache server URL, it t...

How to enable rich:orderingList buttons

How to enable rich:orderingList buttons by default EDIT: The First, Up, Down, Last buttons are not enabled unless an item is selected within the orderingList. But I would like to preferably mimic selecting the first element in the orderingList and enable these buttons on page load. How should I do this? Table 6.222 on the following li...

Hiding an a4j:outputPanel and showing it on submit a4j command button ..

Hello, From now on, I have this : ..... <a4j:commandButton action="#{ChoixContratBean.Submit1}" reRender="suite" value="valider" > </a4j:commandButton> </a4j:outputPanel> <a4j:outputPanel display="none" id="suite"> <jsf:outputText id="reponseeFormule"............ which works. the suite panel is rerendered. But I wo...

How to pass query parameters to the EntityQuery interface

The following link passes query parameters as f:param and they get substituted in Users.page.xml, and these parameters appear as query parameters in the browse URL which we would like to not show to the end user. Is there an alternate mechanism to pass parameters to the entity query bean <rich:menuItem> <s:link value="Users" view="/...

webpage expired when back button pressed on JSF(Richfaces) submit

My title maybe confusing so please read on. I'm using the following technologies if you may. Spring, Hibernate, JSF (RichFaces), MySQL, Internet Explorer. I have a List of items which is displayed in a RichFaces datatable like so: item a item b item c item d item e On the same page I have the following buttons: search, edit, add, de...

Rerendering richfaces rich:columns.

Hi, I have an extendeddatatable with 'rich:columns value=somelist' in my application.The columns are getting displayed properly initially. But when I add one more item to the 'somelist' and rerender the table, the table is not adding the new column.But if I refresh the page the column will be added.What can be the reason? If any one have...

How to display dynamic columns in richfaces datatable

Hello, I am currently trying to come up with the best way to create dynamic columns in a data table using richfaces and was wondering if maybe some out there has done this before or could point me in the right direction. Basically I would like to click some kind of add button and another identical column with input fields appears below ...

modalPanel lazy rendering when displayed

Motivation: I want to reduce the size of the page when is accessed, so I thought that lazy rendering on modalPanels would help. The idea is to render the modalPanel when the user clicks the link that displays it. I want to lazy render on rich:modalPanel when the link to display it is clicked. To achieve this I've found a way: Code of t...

Richfaces: Passing additional parametrs to suggestionbox`s suggest method

I need to pass additional parametrs to my suggest method. For example: I have one selectList in which i choose a country. In another inputfield i have suggestionbox, where i can choose city from that country. So i need to pass to my suggest method 2 values: String, which user has typed in suggestionfield Country, which user has cho...

h:selectBooleanCheckbox of rich:DataTable is selected except the last row when ajaxSingle=true is used for the selectAll button

Hi, I am facing issue related to ajaxSingle for a4j:CommandButton.I have a rich:Datatable with a column of checkboxes(h:selectBooleanCheckbox) and other fields such as firstname, lastname etc. There is a a4j:commandButton selectAll, when that button is clicked all check boxes should get selected.I have used ajaxSingle= true for the comm...

JSF2 Composite component tag incompatibility problem?

This code, a test case for a custom component using JSF2 Just for the record, the file: panel.xhtml , located at /resources/panels/panel.xhtml test.xhtml: <head> </head> <body> <panels:panel/> </body> </html> Returns the following html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/...

Refresh parent page from rich:modalPanel using rich:jQuery

Hi , I am trying to refresh the parent page of rich:modalPanel and keep open the modal panel, somehow the refresh to be done behind modal panel. Basically i am trying to do this having this code: parent page: <a4j:form id="myForm"> ... <a4j:commandLink oncomplete="#{rich:component('myModalPanel')}.show()" ajaxSingle="t...

Detailed Comparison of ICEfaces vs RichFaces?

I've seen a few very brief comparisons of ICEfaces vs. RichFaces, but has anyone written a detailed comparison of the two frameworks? I am particularly interested in detailed comparisons of the implementation details of each framework, but I've seen little more than short opinions from people who have only used one of the two. ...

Getting the PDF created using iText as pop up in JSF

Hi. I want create a pdf using iText. The method which does this is a JSF bean. What I want is, on click of a commandButton in JSF page, the PDF is created. It must then open as popup in a new window(or tab) keeping the JSF page unaltered. How can I accomplish this ? I know there is a way in javascript in which we can open a new window us...