Author: lfryc(a)redhat.com
Date: 2010-12-02 09:30:09 -0500 (Thu, 02 Dec 2010)
New Revision: 20308
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/selection.xhtml
Log:
extended rich:extendedDataTable selection sample to allow watch both selectionchange and
beforeselectionchange events (RFPL-918)
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/selection.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/selection.xhtml 2010-12-02
14:29:38 UTC (rev 20307)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/selection.xhtml 2010-12-02
14:30:09 UTC (rev 20308)
@@ -70,7 +70,10 @@
value="#{richExtendedDataTableBean.state ?
model.capitals : null}"
var="record"
- <a4j:ajax execute="@this"
event="selectionchange" render="selectionOutput" />
+
+
+ <a4j:ajax execute="@this" event="beforeselectionchange"
render="previousSelection" />
+ <a4j:ajax execute="@this" event="selectionchange"
render="currentSelection" />
<f:facet name="noData">
<h:outputText value="There is no data."
style="color: red;"/>
@@ -113,8 +116,11 @@
</rich:extendedDataTable>
<h:panelGrid columns="2">
- <h:outputLabel value="Selection:" />
- <h:outputText id="selectionOutput"
value="#{richExtendedDataTableBean.attributes['selection'].value}"
/>
+ <h:outputLabel value="Previous Selection:" />
+ <h:outputText id="previousSelection"
value="#{richExtendedDataTableBean.attributes['selection'].value}"
/>
+
+ <h:outputLabel value="CurrentSelection:" />
+ <h:outputText id="currentSelection"
value="#{richExtendedDataTableBean.attributes['selection'].value}"
/>
</h:panelGrid>
</ui:define>