Author: mvitenkov
Date: 2008-07-02 08:04:42 -0400 (Wed, 02 Jul 2008)
New Revision: 9368
Modified:
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-02
12:03:21 UTC (rev 9367)
+++
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-02
12:04:42 UTC (rev 9368)
@@ -1,32 +1,50 @@
-<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="dataDefinitionListPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="title" />
- <h:inputText value="#{dataDefinitionList.title}" >
- <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="first" />
- <h:inputText value="#{dataDefinitionList.first}" >
- <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rows" />
- <h:inputText value="#{dataDefinitionList.rows}" >
- <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="dir" />
- <h:selectOneRadio value="#{dataDefinitionList.dir}">
- <f:selectItem itemValue="LTR" itemLabel="LTR"/>
- <f:selectItem itemValue="RTL" itemLabel="RTL"/>
- <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
- </h:selectOneRadio>
+<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="dataDefinitionListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}">
+ <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}"
onchange="submit();" />
-
- <h:commandButton actionListener="#{dataDefinitionList.checkBinding}"
value="Binding"></h:commandButton>
- <h:outputText
value="#{dataDefinitionList.bindLabel}"></h:outputText>
- </h:panelGrid>
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}">
+ <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}">
+ <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ <a4j:support event="onchange"
reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}"
+ onchange="submit();" />
+
+ <h:commandButton actionListener="#{dataDefinitionList.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText
value="#{dataDefinitionList.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('ddListID').rowCount}"
/>
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file