wood burning stoves*
The moose likes JSF and the fly likes RichFaces conditionally rendered tab actions problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "RichFaces conditionally rendered tab actions problem" Watch "RichFaces conditionally rendered tab actions problem" New topic
Author

RichFaces conditionally rendered tab actions problem

ashoka tee
Greenhorn

Joined: Jul 07, 2009
Posts: 1
Hi there,

I have a Richfaces tabpanel with tabs inside and the switchmode is set to client.

Inside, I have a tab that is conditionally rendered, so that when a button is clicked outside the tabpanel (all interactions are via a4J AJAX), the new tab appears as a condition evaluates to true by a property set on the server using session managed beans.

After the newly rendered tab itself is clicked, the contents of the tab appear fine, however, "transferring data from localhost..." is displayed in the status bar of the browser (in firefox).

After this, no further interactions inside the now rendered tab invoke the actions they are mapped to, and nothing happens.

For example, there is a combobox inside the tab, and I need to invoke an AJAX request everytime the selection changes.

I have tried various combinations of a valueChangedListener and a4J:support tag, but the action does not get invoked via AJAX on the server, setup:

<rich:tabPanel switchType="client" >
<rich:tab rendered="#{bean.searchTabSelected}">

<rich:comboBox value="#{bean.selectedItem}" enableManualInput="false" defaultLabel="Select an option">
<f:selectItems value="#{bean.items}" />
<a4j:support actionListener="#{bean.myActionListenerMethod}" event="onchange" reRender="datatable" limitToList="true" />
</rich:comboBox>

alternatively,

<rich:comboBox value="#{bean.selectedItem}" valueChangedListener="#{bean.myValueChangedActionMethod}" enableManualInput="false" defaultLabel="Select an option">
<f:selectItems value="#{bean.items}" />
<a4j:support event="onviewactivated" reRender="datatable" limitToList="true" />
</rich:comboBox>

Any help would be much appreciated, especially why "transferring data from localhost..." appears in the browser only after the newly rendered tab is clicked.

cheers,

Ashoka.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RichFaces conditionally rendered tab actions problem
 
Similar Threads
How to generate managed bean
rich:comboBox fails to reRender due to rich:ajaxValidator
AJAX Conditionally Render Components
comboBox onblur event not called
rich:comboBox valueChangeListener is not working