Author: mvitenkov
Date: 2008-07-02 04:03:32 -0400 (Wed, 02 Jul 2008)
New Revision: 9347
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
Log:
+findComponent
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-07-02
07:40:44 UTC (rev 9346)
+++
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-07-02
08:03:32 UTC (rev 9347)
@@ -49,7 +49,7 @@
footerClass="#{style.footerClass}"
headerClass="#{style.headerClass}"
rowClasses="#{style.rowClasses}"
activeClass="#{style.activeClass}"
styleClass="#{style.styleClass}" style="#{style.style}"
- selectedClass="#{style.selectedClass}"
+ selectedClass="#{style.selectedClass}"
onRowMouseDown="#{event.onRowMouseDown}"
onRowMouseUp="#{event.onRowMouseUp}"
onselectionchange="#{event.onselectionchange}">
@@ -136,7 +136,7 @@
<h:outputText value="Link"></h:outputText>
</f:facet>
</rich:column>
-
+
<rich:column sortExpression="#{sdt.date0}" sortable="true">
<f:facet name="header">
<h:outputText value="#" />
@@ -146,27 +146,44 @@
<h:outputText value="#" />
</f:facet>
</rich:column>
-
+
<f:facet name="footer">
<h:outputText value="facet footer"></h:outputText>
</f:facet>
</rich:scrollableDataTable>
<h:panelGrid columns="1">
- <h:outputText value="JS API test" style="FONT-WEIGHT:
bold;"></h:outputText>
- <a4j:commandLink
onclick="$('formID:scrollableDataTableSubviewID:sdt').component.collapse(colID)"
value="collapse('colID')"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:scrollableDataTableSubviewID:sdt').component.expand(colID)"
value="expand('colID')"></a4j:commandLink>
+ <h:outputText value="JS API test" style="FONT-WEIGHT:
bold;"></h:outputText>
+ <a4j:commandLink
+ onclick="$('formID:scrollableDataTableSubviewID:sdt').component.collapse(colID)"
+ value="collapse('colID')"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:scrollableDataTableSubviewID:sdt').component.expand(colID)"
+ value="expand('colID')"></a4j:commandLink>
</h:panelGrid>
<f:verbatim>
- <h:outputText value="Component control+JS API"></h:outputText>
- <br />
- <a href="#" id="collapseID">collapseID</a>
- <br />
- <a href="#" id="expandID">expandID</a>
+ <h:outputText value="Component control+JS API"></h:outputText>
+ <br />
+ <a href="#" id="collapseID">collapseID</a>
+ <br />
+ <a href="#" id="expandID">expandID</a>
</f:verbatim>
- <rich:componentControl attachTo="collapseID" event="onclick"
for="sdt" operation="collapse">
- <f:param value="colID" name="colID"/>
+ <rich:componentControl attachTo="collapseID" event="onclick"
for="sdt"
+ operation="collapse">
+ <f:param value="colID" name="colID" />
</rich:componentControl>
- <rich:componentControl attachTo="expandID" event="onclick"
for="sdt" operation="expand">
- <f:param value="colID" name="colID"/>
+ <rich:componentControl attachTo="expandID" event="onclick"
for="sdt"
+ operation="expand">
+ <f:param value="colID" name="colID" />
</rich:componentControl>
+ <br />
+ <br />
+ <rich:scrollableDataTable id="dataList" width="300px"
height="300px" var="data"
value="#{tableBeanScroll.data}">
+ <rich:columns value="#{tableBeanScroll.columnModel}" var="col"
index="index" sortable="no">
+ <f:facet name="header">
+ <a4j:commandLink value="#{col.title}" action="#{col.sort}"
reRender="dataList" />
+ </f:facet>
+ <h:outputText value="#{data.columns[index]}" />
+ </rich:columns>
+ </rich:scrollableDataTable>
+ <br />
</f:subview>
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-07-02
07:40:44 UTC (rev 9346)
+++
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-07-02
08:03:32 UTC (rev 9347)
@@ -8,8 +8,8 @@
<h:outputText value="length:"></h:outputText>
<h:panelGroup>
<h:inputText value="#{scrollableDT.dataLength}"></h:inputText>
- <a4j:commandButton action="#{scrollableDT.addNewItem}"
- reRender="sdt" value="ok" />
+ <a4j:commandButton action="#{scrollableDT.addNewItem}"
reRender="sdt"
+ value="ok" />
</h:panelGroup>
<h:outputText value="rows:" />
<h:inputText value="#{scrollableDT.rows}"
onchange="submit();">
@@ -67,5 +67,16 @@
<f:selectItem itemLabel="multi" itemValue="multi" />
</h:selectOneRadio>
</h:panelGrid>
- <a4j:commandButton value="reRender"
reRender="sdt"></a4j:commandButton>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID"
value="#{rich:findComponent('sdt').value}" />
+ </rich:column>
+ </h:panelGrid>
+ <a4j:commandButton value="reRender"
reRender="dataList"></a4j:commandButton>
</f:subview>
\ No newline at end of file
Show replies by date