Author: nbelaevski
Date: 2007-06-25 14:43:42 -0400 (Mon, 25 Jun 2007)
New Revision: 1310
Modified:
trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp
Log:
Skin switching added
Modified: trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp 2007-06-25
18:41:43 UTC (rev 1309)
+++ trunk/sandbox-samples/panelmenu-sample/src/main/webapp/pages/index.jsp 2007-06-25
18:43:42 UTC (rev 1310)
@@ -9,34 +9,38 @@
</head>
<body>
<f:view>
- <pm:panelMenu>
- <pm:panelMenuGroup label="Group 1" iconExpanded="disc"
iconCollapsed="chevron">
- <pm:panelMenuItem value="Item 1" icon="chevronUp">
- </pm:panelMenuItem>
- <pm:panelMenuItem value="Item "/>
- <pm:panelMenuGroup label="Group 2" >
- <pm:panelMenuItem icon="triangleDown">
- <f:verbatim>Item 3</f:verbatim>
+ <h:form>
+ <h:selectOneRadio binding="#{skinBean.component}" />
+ <h:commandLink action="#{skinBean.change}" value="set skin"
/>
+
+ <pm:panelMenu>
+ <pm:panelMenuGroup label="Group 1" iconExpanded="disc"
iconCollapsed="chevron">
+ <pm:panelMenuItem value="Item 1" icon="chevronUp">
</pm:panelMenuItem>
- <pm:panelMenuGroup label="Group 33" expanded="true">
+ <pm:panelMenuItem value="Item "/>
+ <pm:panelMenuGroup label="Group 2" >
<pm:panelMenuItem icon="triangleDown">
- <f:verbatim>Item 3333</f:verbatim>
+ <f:verbatim>Item 3</f:verbatim>
</pm:panelMenuItem>
+ <pm:panelMenuGroup label="Group 33" expanded="true">
+ <pm:panelMenuItem icon="triangleDown">
+ <f:verbatim>Item 3333</f:verbatim>
+ </pm:panelMenuItem>
+ </pm:panelMenuGroup>
</pm:panelMenuGroup>
</pm:panelMenuGroup>
- </pm:panelMenuGroup>
- <pm:panelMenuGroup label="Group 3">
- <pm:panelMenuItem value="Item 4" >
- </pm:panelMenuItem>
- </pm:panelMenuGroup>
- <pm:panelMenuGroup label="Group 4" disabled="true">
- <pm:panelMenuItem value="Item 5" disabled="true"/>
- <pm:panelMenuItem value="Item 66" mode="server" />
- </pm:panelMenuGroup>
- <pm:panelMenuItem value="Top item"/>
- <pm:panelMenuItem value="Top item2" disabled="true"/>
- </pm:panelMenu>
-
+ <pm:panelMenuGroup label="Group 3">
+ <pm:panelMenuItem value="Item 4" >
+ </pm:panelMenuItem>
+ </pm:panelMenuGroup>
+ <pm:panelMenuGroup label="Group 4" disabled="true">
+ <pm:panelMenuItem value="Item 5" disabled="true"/>
+ <pm:panelMenuItem value="Item 66" mode="server" />
+ </pm:panelMenuGroup>
+ <pm:panelMenuItem value="Top item"/>
+ <pm:panelMenuItem value="Top item2" disabled="true"/>
+ </pm:panelMenu>
+ </h:form>
</f:view>
Show replies by date