Author: mvitenkov
Date: 2008-07-02 08:13:07 -0400 (Wed, 02 Jul 2008)
New Revision: 9371
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
Log:
+findComponent
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-07-02
12:11:02 UTC (rev 9370)
+++
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-07-02
12:13:07 UTC (rev 9371)
@@ -17,7 +17,7 @@
onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}">
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"
id="dsID">
</rich:datascroller>
</f:facet>
<rich:column sortBy="#{dT.data0}" filterBy="#{dT.data0}"
filterEvent="onchange"
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-07-02
12:11:02 UTC (rev 9370)
+++
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-07-02
12:13:07 UTC (rev 9371)
@@ -1,62 +1,78 @@
-<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="datascrollerPropertySubviewID">
+<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="datascrollerPropertySubviewID">
- <h:commandButton action="#{dataScroller.CutArray}"
value="CutArray" />
- <h:commandButton action="#{dataScroller.RestoreArray}"
- value="RestoreArray" />
+ <h:commandButton action="#{dataScroller.CutArray}"
value="CutArray" />
+ <h:commandButton action="#{dataScroller.RestoreArray}"
+ value="RestoreArray" />
- <h:panelGrid columns="2">
- <h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}">
- <a4j:support event="onchange"
reRender="dataScrollerID"></a4j:support>
- </h:inputText>
+ <h:panelGrid columns="2">
+ <h:outputText value="maxPages" />
+ <h:inputText value="#{dataScroller.maxPages}">
+ <a4j:support event="onchange"
reRender="dataScrollerID"></a4j:support>
+ </h:inputText>
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dataScroller.render}"
- onclick="submit();" />
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.render}"
+ onclick="submit();" />
- <h:outputText value="renderIfSinglePage:" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
- onclick="submit();" />
+ <h:outputText value="renderIfSinglePage:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
+ onclick="submit();" />
- <h:outputText value="limitToList:" />
- <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
- onclick="submit();" />
+ <h:outputText value="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
+ onclick="submit();" />
- <h:outputText value="fastControls" />
- <h:selectOneRadio value="#{dataScroller.fastControls}">
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <f:selectItem itemLabel="show" itemValue="show" />
- <f:selectItem itemLabel="hide" itemValue="hide" />
- <a4j:support event="onclick"
reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="fastControls" />
+ <h:selectOneRadio value="#{dataScroller.fastControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick"
reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="align" />
- <h:selectOneRadio value="#{dataScroller.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <a4j:support event="onclick"
reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="sortMode"></h:outputText>
- <h:selectOneRadio value="#{dataScroller.sortMode}">
- <f:selectItem itemLabel="single" itemValue="single"/>
- <f:selectItem itemLabel="multi" itemValue="multi"/>
- <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="sortOrder"></h:outputText>
- <h:selectOneRadio value="#{dataScroller.currentSortOrder}">
- <f:selectItem itemLabel="ASCENDING"
itemValue="ASCENDING"/>
- <f:selectItem itemLabel="DESCENDING"
itemValue="DESCENDING"/>
- <f:selectItem itemLabel="UNSORTED" itemValue="UNSORTED"/>
- <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="selfSorted(1st)"></h:outputText>
- <h:selectBooleanCheckbox value="#{dataScroller.selfSorted}">
- <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
+ <h:outputText value="align" />
+ <h:selectOneRadio value="#{dataScroller.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onclick"
reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="sortMode"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.sortMode}">
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="multi" itemValue="multi" />
+ <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="sortOrder"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.currentSortOrder}">
+ <f:selectItem itemLabel="ASCENDING" itemValue="ASCENDING"
/>
+ <f:selectItem itemLabel="DESCENDING" itemValue="DESCENDING"
/>
+ <f:selectItem itemLabel="UNSORTED" itemValue="UNSORTED" />
+ <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="selfSorted(1st)"></h:outputText>
+ <h:selectBooleanCheckbox value="#{dataScroller.selfSorted}">
+ <a4j:support event="onchange"
reRender="dataTableId,dsID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getPage"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID"
value="#{rich:findComponent('dsID').page}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file