Author: mvitenkov
Date: 2008-07-02 09:21:14 -0400 (Wed, 02 Jul 2008)
New Revision: 9397
Modified:
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml 2008-07-02
13:19:57 UTC (rev 9396)
+++
trunk/test-applications/facelets/src/main/webapp/Separator/SeparatorProperty.xhtml 2008-07-02
13:21:14 UTC (rev 9397)
@@ -1,43 +1,61 @@
-<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="SeparatorPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="Width (px or %): "></h:outputText>
- <h:inputText value="#{separator.width}">
- <a4j:support event="onchange"
reRender="separatorId"></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="SeparatorPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Width (px or %): "></h:outputText>
+ <h:inputText value="#{separator.width}">
+ <a4j:support event="onchange"
reRender="separatorId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{separator.height}">
- <a4j:support event="onchange"
reRender="separatorId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{separator.height}">
+ <a4j:support event="onchange"
reRender="separatorId"></a4j:support>
+ </h:inputText>
- <h:outputText value="LineType:"></h:outputText>
- <h:selectOneRadio value="#{separator.lineType}"
layout="pageDirection">
- <f:selectItem itemLabel="beveled" itemValue="beveled" />
- <f:selectItem itemLabel="dotted" itemValue="dotted" />
- <f:selectItem itemLabel="dashed" itemValue="dashed" />
- <f:selectItem itemLabel="double" itemValue="double" />
- <f:selectItem itemLabel="solid" itemValue="solid" />
- <a4j:support event="onclick"
reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="LineType:"></h:outputText>
+ <h:selectOneRadio value="#{separator.lineType}"
layout="pageDirection">
+ <f:selectItem itemLabel="beveled" itemValue="beveled" />
+ <f:selectItem itemLabel="dotted" itemValue="dotted" />
+ <f:selectItem itemLabel="dashed" itemValue="dashed" />
+ <f:selectItem itemLabel="double" itemValue="double" />
+ <f:selectItem itemLabel="solid" itemValue="solid" />
+ <a4j:support event="onclick"
reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneRadio value="#{separator.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick"
reRender="separatorId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneRadio value="#{separator.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick"
reRender="separatorId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{separator.title}">
- <a4j:support event="onchange"
reRender="separatorId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{separator.title}">
+ <a4j:support event="onchange"
reRender="separatorId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{separator.rendered}"
onclick="submit()"></h:selectBooleanCheckbox>
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{separator.rendered}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{separator.doStyles}"
value="#{separator.btnLabel}" />
- </h:panelGrid>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{separator.doStyles}"
+ value="#{separator.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getHeight"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID"
+ value="#{rich:findComponent('separatorId').height}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file