aspose file tools
The moose likes JSF and the fly likes How to determine which tabbed Pane is active in panelTabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to determine which tabbed Pane is active in panelTabbedPane " Watch "How to determine which tabbed Pane is active in panelTabbedPane " New topic
Author

How to determine which tabbed Pane is active in panelTabbedPane

Narendra Payidiparthi
Greenhorn

Joined: Sep 19, 2007
Posts: 10
hi All,
I need help to set the hidden variable with id="prefId" declared down to set to particular value based on the active or selected Tab.

Can you guys help me out how to determine the active tab in
t:panelTabbedPane and correstpondingly set for the hidden field.

I am new to JSF and I know this should be done through java script,

Can anybosy help me out



<f:view<
<html<
<body<
<f:loadBundle basename="com.cci.cz.bundle.CzResources" var="bundle"/<
<h:form id="mainOnlineForm">
<t:panelTabbedPane id="mainFilterPane" bgcolor="#FFFFCC" activeTabStyleClass="editorPane_activeTab" inactiveTabStyleClass="editorPane_inactiveTab" tabContentStyleClass="editorPane_tabContent" <
<t:panelTab id="allResults" label="All Contacts" title="All Contacts" <
<jsp:include page="FilterAllReport.jsp"/<
</t:panelTab<
<t:panelTab id="emailResults" label="Email Contacts" title="Email Contacts" <
<jsp:include page="FilterEmailReport.jsp"/<
</t:panelTab<
<t:panelTab id="faxResults" label="Fax Contacts" title="Fax Contacts" <
<jsp:include page="FilterFaxReport.jsp"/<
</t:panelTab<
<t:panelTab id="hardcopyResults" label="Hardcopy Contacts" title="Hardcopy Contacts" <
<jsp:include page="FilterHardcopyReport.jsp"/<
</t:panelTab<
</t:panelTabbedPane<
<h:inputHidden id="prefId" value="ALL" /<
</h:form<
</body<
</html<
</f:view<
Sachin Satija
Greenhorn

Joined: Aug 24, 2005
Posts: 28
This might help...
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/tabbedpane/HtmlPanelTabbedPane.html#getSelectedIndex()


You can use getComponentById in the backing bean to get the component and dynamically remove/add components to it.


SCJP1.4--91%<br />IBM 399
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to determine which tabbed Pane is active in panelTabbedPane
 
Similar Threads
IExplorer and general troubles... like loss of sanity.
unable to include jsp in tomahawk tab
tab menu
How does tomahawk Tab comp work
t:panelTabbedPane and including jsp on click of the tab