Author: nbelaevski
Date: 2007-08-29 19:59:20 -0400 (Wed, 29 Aug 2007)
New Revision: 2593
Modified:
trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
Log:
http://jira.jboss.com/jira/browse/RF-750
Modified: trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-08-29 23:59:15 UTC
(rev 2592)
+++ trunk/samples/tabPanelDemo/src/main/webapp/pages/index.jsp 2007-08-29 23:59:20 UTC
(rev 2593)
@@ -9,7 +9,6 @@
<title></title>
<style type="text/css">
-
</style>
</head>
<body bgcolor="white">
@@ -29,12 +28,24 @@
<f:selectItem itemLabel="canon" itemValue="canon" />
<f:selectItem itemLabel="olympus" itemValue="olympus" />
<f:selectItem itemLabel="nikon" itemValue="nikon" />
+ <f:selectItem itemLabel="none" itemValue="none" />
</h:selectOneMenu>
-
- <h:commandLink value="apply" />
+
+ <h:commandLink value="switch" />
</h:form>
<h:form>
+ <h:selectOneMenu value="#{bean.disabledTabName}">
+ <f:selectItem itemLabel="canon" itemValue="canon" />
+ <f:selectItem itemLabel="olympus" itemValue="olympus" />
+ <f:selectItem itemLabel="nikon" itemValue="nikon" />
+ <f:selectItem itemLabel="none" itemValue="none" />
+ </h:selectOneMenu>
+
+ <h:commandLink value="disable" action="#{bean.disableTab}"
/>
+ </h:form>
+
+ <h:form>
<tabs:tabPanel valueChangeListener="#{bean.valueChanged}"
headerSpacing="5px" immediate="false" tabClass="tabClass"
activeTabClass="italic" width="100%" switchType="client"
binding="#{bean.tabPanel}" selectedTab="#{bean.currentTab}"
id="tab_panel" headerAlignment="left">
<f:valueChangeListener type="org.richfaces.TabChangeListener"/>