Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RichFaces conditionally rendered tab actions problem

 
ashoka tee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic