hi all,
I am facing problem with remembering of selected tab panel.I have use selectedTab attribute to assign the current tab.my code is as follows,but its not working.
<rich:tabPanel switchType="client" rendered="#{!itShipmentOrderAction.managed}" selectedTab="#{myBean.selectTab}">
<rich:tab label="#{messages['com.infyz.toms.entity.Party']} #{messages['com.infyz.toms.label.Details']}" name="partyTab">
<rich:dataTable id="shipmentPartyListTable" var="_shipmentParty" rows="20" >
<a:commandButton action="#{itShipmentPartyAction.addNewShipmentParty}"
reRender="shipmentPartyListTable" >
</rich:dataTable>
</rich:tab>
<rich:tab label="#{messages['com.infyz.toms.entity.Party']} #{messages['com.infyz.toms.label.Details']}" name="cargoTab">
<rich:dataTable id="shipmentPartyListTable" var="_shipmentParty" rows="20" >
<a:commandButton action="#{itShipmentPartyAction.addNewShipmentDetail}"
reRender="shipmentPartyListTable" >
</rich:dataTable>
</rich:tab>
</rich:tabPanel>
session bean method:
private selectTag;
setters and getters
public String addNewShipmentParty() {
setSelectTab("partyTab");
}
public String addNewShipmentDetail() {
setSelectTab("cargoTab");
}
but its not workingggggggggggggggggggggggggggggggggggggggg.
i am sturcked with this for last 2 days.can anyone help meeeeeeeeeeeeeeeee.
thanking u
you setting the selectTab in itShipmentOrderAction bean but defining as myBean.selectTab?