aspose file tools
The moose likes JSF and the fly likes RichFaces conditionally rendered tab actions problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: RichFaces conditionally rendered tab actions problem
 
Similar Threads
rich:comboBox valueChangeListener is not working
AJAX Conditionally Render Components
comboBox onblur event not called
rich:comboBox fails to reRender due to rich:ajaxValidator
How to generate managed bean