JSP code
<t:panelTabbedPane align="left" serverSideTabSwitch="false" styleClass="tabbedPane"
activeTabStyleClass="activeTab" inactiveTabStyleClass="inactiveTab" width="100%" cellpadding="0"
cellspacing="0" tabContentStyleClass="tabContent" style="margin-top:0px;text-align:center"
selectedIndex="#{myBB.selectedTab}">
/*******************************************/
Backing Bean Code:
private int selectedIndex;
public int getSelectedIndex() {
System.out.println("getter of selectedIndexis called "+selectedIndex);
return selectedIndex;
}
public void setSelectedIndex(int selectedIndex) {
System.out.println("Setter of selectedIndexis called "+selectedIndex);
this.selectedIndex= selectedIndex;
}
The backing bean is of session scope. When i change panelTab in the screen and click on submit button, always the default panel is being shown. I checked the console to find the sysout from setter of selectedIndex.But in console it is not being printed which means(I suppose) the selectedIndex is not being posted to the server.I'm using JSF version 1.1. Can any one suggest how to make this work ?