This content has been marked as final.
Show 1 reply
-
1. Re: tabpanel selection without backing bean
mars1412 Mar 7, 2008 6:51 AM (in response to mars1412)I didn't figure out how to do that without a backing bean.
so my workaround is this helper bean:@Name("richTabPanelHelper") @Scope(ScopeType.PAGE) public class RichTabPanelHelper implements Serializable { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L; private String selectedTab; public String getSelectedTab() { return selectedTab; } public void setSelectedTab(String selectedTab) { this.selectedTab = selectedTab; } }
and in pages.xml I set the initial value:<param name="selectedTab" value="#{richTabPanelHelper.selectedTab}" />
where selectedTab is the URL parameter