Author: mvitenkov
Date: 2008-07-02 03:09:28 -0400 (Wed, 02 Jul 2008)
New Revision: 9342
Modified:
trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2008-07-02
07:04:14 UTC (rev 9341)
+++ trunk/test-applications/jsp/src/main/webapp/PanelBar/PanelBarProperty.jsp 2008-07-02
07:09:28 UTC (rev 9342)
@@ -4,31 +4,44 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="panelBarPropertySubviewID">
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Label: "></h:outputText>
- <h:inputText valueChangeListener="#{panelBar.makeLabels}">
- <a4j:support event="onchange"
reRender="pBId"></a4j:support>
- </h:inputText>
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panelBar.width}">
- <a4j:support event="onchange"
reRender="pBId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panelBar.height}">
- <a4j:support event="onchange"
reRender="pBId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{panelBar.rendered}">
- <a4j:support event="onchange" reRender="pBId" />
- </h:selectBooleanCheckbox>
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{panelBar.doStyles}"
value="#{panelBar.btnLabel}" />
-
- <h:outputText value="Binding test:" />
- <a4j:commandButton value="Go"
actionListener="#{panelBar.actionListener}"></a4j:commandButton>
- </h:panelGrid>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}"
+ value="#{panelBar.btnLabel}" />
+
+ <h:outputText value="Binding test:" />
+ <a4j:commandButton value="Go"
+ actionListener="#{panelBar.actionListener}"></a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSelectedPanel"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('pBId').selectedPanel}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file