Im using a Tomahawk tabbedPane in my JSP
<t:panelTabbedPane id="tabbedPane" bgcolor="#ffffff" width="650"
serverSideTabSwitch="true" selectedIndex="#{myBackingBean.selectedTab}">
I want to implement a TabChangeListener, to set the "selectedTab" value of
the backing bean. I don't need to change the view of the component at all,
since that's handled automatically. I just need to know what the currently
selected tab is. Looking at the hierarchy, there doesn't seem to be a way
to get my backing bean instance from session to set the value. This is how
I would expect this to be done. Please tell me if I'm way off base or not.
processTabChange(TabChangeEvent tabChangeEvent){
MyBackingBean myBean = [get the bean somehow];
myBean.setSelectedTab(tabChangeEvent.getNewTabIndex());
}
--
View this message in context:
http://www.nabble.com/Getting-a-reference-to-my-backing-bean-in-TabChangeListener-tf2495151.html#a6956185
Sent from the MyFaces - Users mailing list archive at Nabble.com.