Author: mvitenkov
Date: 2008-07-02 05:31:09 -0400 (Wed, 02 Jul 2008)
New Revision: 9355
Modified:
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-07-02
09:07:48 UTC (rev 9354)
+++
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-07-02
09:31:09 UTC (rev 9355)
@@ -4,28 +4,41 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="togglePanelPropertySubviewID">
- <h:panelGrid columns="2" cellpadding="5px"
cellspacing="5px">
- <h:outputText value="InitialState:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.initialState}">
- <f:selectItem itemLabel="Asus" itemValue="asus" />
- <f:selectItem itemLabel="Benq" itemValue="benq" />
- <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
- <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
+ <h:panelGrid columns="2" cellpadding="5px"
cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="StateOrder:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.stateOrder}">
- <f:selectItem itemLabel="Asus,Benq,Toshiba"
itemValue="asus,benq,toshiba" />
- <f:selectItem itemLabel="Toshiba, Asus, Benq"
itemValue="toshiba,asus,benq" />
- <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba"
+ itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq"
+ itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="switchType:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick"
reRender="panel1,panel2"></a4j:support>
- </h:selectOneRadio>
- </h:panelGrid>
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick"
reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getStateOrder"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('panel2').stateOrder}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file