Author: mvitenkov
Date: 2008-07-02 05:33:37 -0400 (Wed, 02 Jul 2008)
New Revision: 9356
Modified:
trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2008-07-02
09:31:09 UTC (rev 9355)
+++ trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2008-07-02
09:33:37 UTC (rev 9356)
@@ -4,29 +4,40 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="toolBarPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="Image location:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.location}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick"
reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
+ <h:panelGrid columns="2">
+ <h:outputText value="Image location:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.location}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick"
reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="itemSeparator:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.itemSeparator}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="line" itemValue="line" />
- <f:selectItem itemLabel="square" itemValue="square" />
- <f:selectItem itemLabel="disc" itemValue="disc" />
- <f:selectItem itemLabel="grid" itemValue="grid" />
- <a4j:support event="onclick"
reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="itemSeparator:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.itemSeparator}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="line" itemValue="line" />
+ <f:selectItem itemLabel="square" itemValue="square" />
+ <f:selectItem itemLabel="disc" itemValue="disc" />
+ <f:selectItem itemLabel="grid" itemValue="grid" />
+ <a4j:support event="onclick"
reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
- action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
+ action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getItemSeparator"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
value="#{rich:findComponent('toolBarId').itemSeparator}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file