Author: mvitenkov
Date: 2008-07-02 09:24:37 -0400 (Wed, 02 Jul 2008)
New Revision: 9399
Modified:
trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml 2008-07-02
13:23:10 UTC (rev 9398)
+++
trunk/test-applications/facelets/src/main/webapp/Spacer/SpacerProperty.xhtml 2008-07-02
13:24:37 UTC (rev 9399)
@@ -1,5 +1,9 @@
-<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
id="spacerPropertySubviewID">
+<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
id="spacerPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="Width (px or %):"></h:outputText>
<h:inputText value="#{spacer.width}">
@@ -24,4 +28,16 @@
<a4j:commandButton id="btn" action="#{spacer.doStyle}"
value="#{spacer.btn}" reRender="spacerId,
btn"></a4j:commandButton>
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID"
+ value="#{rich:findComponent('spacerId').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file