Author: mvitenkov
Date: 2008-07-02 05:36:11 -0400 (Wed, 02 Jul 2008)
New Revision: 9357
Modified:
trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-07-02
09:33:37 UTC (rev 9356)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-07-02
09:36:11 UTC (rev 9357)
@@ -73,10 +73,13 @@
<h:outputText value="Style:"></h:outputText>
<h:selectOneRadio value="#{tooltip.style}">
<f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="border:3px; font:bold 14px;"
itemValue="border:3px; font:bold 14px;" />
- <f:selectItem itemLabel="border:green 3px solid;
background-color:yellow;"
+ <f:selectItem itemLabel="border:3px; font:bold 14px;"
+ itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem
+ itemLabel="border:green 3px solid; background-color:yellow;"
itemValue="border:green 3px solid; background-color:yellow;" />
- <f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+ <f:selectItem
+ itemLabel="border:green 2px solid; font-family:monospace;"
itemValue="border:green 2px solid; font-family:monospace;" />
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectOneRadio>
@@ -91,4 +94,15 @@
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectBooleanCheckbox>
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tooltipID').value}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file