incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brunette" <>
Subject Maintaining selected tab
Date Wed, 24 Jan 2007 21:12:50 GMT



     I have two simple pages, both of which have a simple
<tr:panelTabbed /> component showing the exactly same tabs and content.
On the first page, I select a different tab and then click a button that
will navigate me to the second page.  When the second page loads, I
would like to have the selected tab be the same as the one that was
selected when I submitted from the first page.


     I tried to do this by binding the <tr:panelTabbed /> components on
each page to the same property in my session-scoped bean, but when the
second page loads, I am always defaulted to the first tab again.  Does
anybody know how I can keep track of which tab is selected for my
panelTabbed component across different pages?  Thanks...




<tr:panelTabbed binding="#{keepTabStateBean.tabs}" position="above">

      <tr:showDetailItem text="First" immediate="true">

            <tr:outputText value="First Content" />


      <tr:showDetailItem text="Second" immediate="true">

            <tr:outputText value="Second Content" />


      <tr:showDetailItem text="Third" immediate="true">

            <tr:outputText value="Third Content" />




public class KeepTabStateBean {


      private CorePanelTabbed tabs;


      public final CorePanelTabbed getTabs() {

            return tabs;



      public final void setTabs(CorePanelTabbed tabs) {

            this.tabs = tabs;




The information transmitted herewith is sensitive      information of Chordiant Software or
its customers and is intended only for use to the individual or entity to which it is addressed.
If the reader of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other use of, or taking
of any action in reliance upon, this information is strictly prohibited. If you have received
this communication in error, please contact the sender and delete the material from your computer.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message