Author: mvitenkov
Date: 2008-07-01 14:27:19 -0400 (Tue, 01 Jul 2008)
New Revision: 9338
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
Log:
+findComponent
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp 2008-07-01
18:16:51 UTC (rev 9337)
+++
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp 2008-07-01
18:27:19 UTC (rev 9338)
@@ -8,7 +8,8 @@
<h:outputText value="Enter quantity of lines" />
<h:panelGroup>
<h:inputText value="#{orderingList.lenght}" />
- <a4j:commandButton action="#{orderingList.addNewItem}"
reRender="orderingListID" value="ok" />
+ <a4j:commandButton action="#{orderingList.addNewItem}"
+ reRender="orderingListID" value="ok" />
</h:panelGroup>
<h:outputText value="controlsType" />
@@ -74,7 +75,8 @@
</h:selectBooleanCheckbox>
<h:outputText value="fastOrderControlsVisible" />
- <h:selectBooleanCheckbox
value="#{orderingList.fastOrderControlsVisible}">
+ <h:selectBooleanCheckbox
+ value="#{orderingList.fastOrderControlsVisible}">
<a4j:support event="onclick"
reRender="orderingListID"></a4j:support>
</h:selectBooleanCheckbox>
@@ -84,7 +86,19 @@
</h:selectBooleanCheckbox>
<h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{orderingList.rendered}"
onclick="submit();">
+ <h:selectBooleanCheckbox value="#{orderingList.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="getActiveItem"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
value="#{rich:findComponent('orderingListID').activeItem}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Show replies by date