• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

RichFaces conditionally rendered tab actions problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic