Author: mvitenkov
Date: 2008-06-18 11:21:17 -0400 (Wed, 18 Jun 2008)
New Revision: 9098
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
Log:
JS API
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-06-18
14:55:09 UTC (rev 9097)
+++
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-06-18
15:21:17 UTC (rev 9098)
@@ -56,7 +56,7 @@
<f:facet name="header">
<h:outputText value="facet header"></h:outputText>
</f:facet>
- <rich:column sortExpression="#{sdt.int0}" sortable="true">
+ <rich:column sortExpression="#{sdt.int0}" sortable="true"
id="colID">
<f:facet name="header">
<h:outputText value="#" />
</f:facet>
@@ -151,4 +151,22 @@
<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: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>
+ </f:verbatim>
+ <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>
</f:subview>
Show replies by date