Author: mvitenkov
Date: 2008-07-02 09:06:39 -0400 (Wed, 02 Jul 2008)
New Revision: 9391
Modified:
trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml 2008-07-02
13:05:02 UTC (rev 9390)
+++ trunk/test-applications/facelets/src/main/webapp/Panel/PanelProperty.xhtml 2008-07-02
13:06:39 UTC (rev 9391)
@@ -1,22 +1,37 @@
-<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="PanelPropertySubviewID">
- <h:panelGrid columns="2" cellpadding="10px">
- <h:outputText value="Title"></h:outputText>
- <h:inputText valueChangeListener="#{panel.makeTitle}">
- <a4j:support event="onchange"
reRender="t1,t2,t3,o1,o2"></a4j:support>
- </h:inputText>
+<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="PanelPropertySubviewID">
+ <h:panelGrid columns="2" cellpadding="10px">
+ <h:outputText value="Title"></h:outputText>
+ <h:inputText valueChangeListener="#{panel.makeTitle}">
+ <a4j:support event="onchange"
reRender="t1,t2,t3,o1,o2"></a4j:support>
+ </h:inputText>
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panel.width}">
- <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
- </h:inputText>
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panel.width}">
+ <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
+ </h:inputText>
- <h:outputText value="Height: "></h:outputText>
- <h:inputText value="#{panel.height}">
- <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
- </h:inputText>
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panel.height}">
+ <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
+ </h:inputText>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{panel.rendered}"
onclick="submit()"></h:selectBooleanCheckbox>
- </h:panelGrid>
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panel.rendered}"
onclick="submit()"></h:selectBooleanCheckbox>
+ </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 id="findID">
+ <h:outputText
value="#{rich:findComponent('panelId').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file