Author: mvitenkov
Date: 2008-07-02 08:11:02 -0400 (Wed, 02 Jul 2008)
New Revision: 9370
Modified:
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-07-02
12:09:19 UTC (rev 9369)
+++
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-07-02
12:11:02 UTC (rev 9370)
@@ -1,45 +1,63 @@
-<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="dataOrderedListPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="title" />
- <h:inputText value="#{dataOrderedList.title}" >
- <a4j:support event="onchange"
reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="first" />
- <h:inputText value="#{dataOrderedList.first}" >
- <a4j:support event="onchange"
reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rows" />
- <h:inputText value="#{dataOrderedList.rows}" >
- <a4j:support event="onchange"
reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="dir" />
- <h:selectOneRadio value="#{dataOrderedList.dir}">
- <f:selectItem itemValue="LTR" itemLabel="LTR"/>
- <f:selectItem itemValue="RTL" itemLabel="RTL"/>
- <a4j:support event="onchange"
reRender="doListID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="type" />
- <h:selectOneMenu value="#{dataOrderedList.type}">
- <f:selectItem itemValue="1" itemLabel="1"/>
- <f:selectItem itemValue="A" itemLabel="A"/>
- <f:selectItem itemValue="a" itemLabel="a"/>
- <f:selectItem itemValue="I" itemLabel="I"/>
- <f:selectItem itemValue="i" itemLabel="i"/>
- <f:selectItem itemValue="disc" itemLabel="disc"/>
- <f:selectItem itemValue="circle" itemLabel="circle"/>
- <f:selectItem itemValue="square" itemLabel="square"/>
- <a4j:support event="onchange"
reRender="doListID"></a4j:support>
- </h:selectOneMenu>
+<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="dataOrderedListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}">
+ <a4j:support event="onchange"
reRender="doListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}"
onchange="submit();"/>
-
- <h:commandButton actionListener="#{dataOrderedList.checkBinding}"
value="Binding"></h:commandButton>
- <h:outputText
value="#{dataOrderedList.bindLabel}"></h:outputText>
- </h:panelGrid>
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}">
+ <a4j:support event="onchange"
reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}">
+ <a4j:support event="onchange"
reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ <a4j:support event="onchange"
reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1" />
+ <f:selectItem itemValue="A" itemLabel="A" />
+ <f:selectItem itemValue="a" itemLabel="a" />
+ <f:selectItem itemValue="I" itemLabel="I" />
+ <f:selectItem itemValue="i" itemLabel="i" />
+ <f:selectItem itemValue="disc" itemLabel="disc" />
+ <f:selectItem itemValue="circle" itemLabel="circle" />
+ <f:selectItem itemValue="square" itemLabel="square" />
+ <a4j:support event="onchange"
reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}"
+ onchange="submit();" />
+
+ <h:commandButton actionListener="#{dataOrderedList.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText
value="#{dataOrderedList.bindLabel}"></h:outputText>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('doListID').rowCount}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file