You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Louis Burroughs <lb...@aholdusa.com> on 2005/11/08 20:46:32 UTC

TabbedPanel state

I am trying to save the state of my tabbed panel, but for some reason my 
tabChageListener is not catching the tab change event.  My 
ProjectPanelListener implements TabChangeListener and I looked for a place 
in my faces-config to register my listener to no avail.  Can someone tell 
me where I went wrong here or if there is a better way to maintain the 
state of my tabbed pane? 

                                <t:panelTabbedPane selectedIndex="
#{project.selectedTab}" >
                                                <t:panelTab title="Info" 
label="Project Info">
                                                        <jsp:include page=
"project.jsp" />
                                                </t:panelTab>
                                                <t:panelTab title=
"Databases" label="Databases">
                                                        <jsp:include page=
"db_view.jsp" />
                                                </t:panelTab>
                                                <t:panelTab title="Notes" 
label="Notes">
                                                        <jsp:include page=
"notes.jsp" />
                                                </t:panelTab>
                                                <t:panelTab title="Issues" 
label="Issues">
                                                        <jsp:include page=
"issues.jsp" />
                                                </t:panelTab>
                                                <t:panelTab title=
"Junctions" label="Junctions">
                                                        <jsp:include page=
"junctions.jsp" />
                                                </t:panelTab>
                                                <t:tabChangeListener type=
"com.xxx.ptw.ui.ProjectPanelListener" />
                                        </t:panelTabbedPane>




Louis M. Burroughs III

AW: TabbedPanel state

Posted by Hans Sowa <ha...@procon.co.at>.
Hi

 

There is no problem with your Listener. The problem is that your
panelTabbedPane works client side and the listener doesn’t work for client
side panelTabbedPane. Change your panelTabbedPane to server side and your
listener will work.

 

 

 

mfg Hans Sowa

PROCON DATA Datenverarbeitung Ges.m.b.H.
 <ma...@procon.co.at> mailto:hans.sowa@procon.co.at
 <http://www.procon.co.at/> http://www.procon.co.at

 

-----Ursprüngliche Nachricht-----
Von: Louis Burroughs [mailto:lburroug@aholdusa.com] 
Gesendet: Dienstag, 08. November 2005 20:47
An: MyFaces Discussion
Betreff: TabbedPanel state

 


I am trying to save the state of my tabbed panel, but for some reason my
tabChageListener is not catching the tab change event.  My
ProjectPanelListener implements TabChangeListener and I looked for a place
in my faces-config to register my listener to no avail.  Can someone tell me
where I went wrong here or if there is a better way to maintain the state of
my tabbed pane?           

                                <t:panelTabbedPane
selectedIndex="#{project.selectedTab}" > 
                                                <t:panelTab title="Info"
label="Project Info"> 
                                                        <jsp:include
page="project.jsp" /> 
                                                </t:panelTab> 
                                                <t:panelTab
title="Databases" label="Databases"> 
                                                        <jsp:include
page="db_view.jsp" /> 
                                                </t:panelTab> 
                                                <t:panelTab title="Notes"
label="Notes"> 
                                                        <jsp:include
page="notes.jsp" /> 
                                                </t:panelTab> 
                                                <t:panelTab title="Issues"
label="Issues"> 
                                                        <jsp:include
page="issues.jsp" /> 
                                                </t:panelTab> 
                                                <t:panelTab
title="Junctions" label="Junctions"> 
                                                        <jsp:include
page="junctions.jsp" /> 
                                                </t:panelTab> 
                                                <t:tabChangeListener
type="com.xxx.ptw.ui.ProjectPanelListener" /> 
                                        </t:panelTabbedPane> 




Louis M. Burroughs III