Author: vbaranov
Date: 2008-03-06 05:11:59 -0500 (Thu, 06 Mar 2008)
New Revision: 6581
Modified:
trunk/samples/richfaces-art-datatable/src/main/java/org/rf/datatable/ExpenseReport.java
trunk/samples/richfaces-art-datatable/src/main/webapp/pages/columnsSorting.jsp
Log:
Update samples to test
http://jira.jboss.com/jira/browse/RF-1834
Modified:
trunk/samples/richfaces-art-datatable/src/main/java/org/rf/datatable/ExpenseReport.java
===================================================================
---
trunk/samples/richfaces-art-datatable/src/main/java/org/rf/datatable/ExpenseReport.java 2008-03-05
23:37:52 UTC (rev 6580)
+++
trunk/samples/richfaces-art-datatable/src/main/java/org/rf/datatable/ExpenseReport.java 2008-03-06
10:11:59 UTC (rev 6581)
@@ -119,6 +119,11 @@
rec.getItems().add(new
ExpenseReportRecordItem("30-Aug-97",100.50,80.0,32.0));
rec.getItems().add(new
ExpenseReportRecordItem("31-Aug-97",180.00,80.0,32.0));
records.add(rec);
+ rec = new ExpenseReportRecord();
+ rec.setCity("New York");
+ rec.getItems().add(new
ExpenseReportRecordItem("01-Sep-97",120.40,104.0,50.00));
+ rec.getItems().add(new
ExpenseReportRecordItem("02-Sep-97",110.50,104.0,50.0));
+ records.add(rec);
}
public String sortCityNames(){
Modified: trunk/samples/richfaces-art-datatable/src/main/webapp/pages/columnsSorting.jsp
===================================================================
---
trunk/samples/richfaces-art-datatable/src/main/webapp/pages/columnsSorting.jsp 2008-03-05
23:37:52 UTC (rev 6580)
+++
trunk/samples/richfaces-art-datatable/src/main/webapp/pages/columnsSorting.jsp 2008-03-06
10:11:59 UTC (rev 6581)
@@ -11,7 +11,7 @@
<f:view>
<h:outputText value="RichFaces dataTable Article. Example #6. Sorting
Rows."/>
<h:form>
- <rich:dataTable value="#{expenseReport.records}" var="record"
id="table">
+ <rich:dataTable value="#{expenseReport.records}" var="record"
id="table" rows="2">
<h:column>
<f:facet name="header">
<a4j:commandLink value="City Name"
action="#{expenseReport.sortCityNames}" reRender="table"
ajaxSingle="true"/>
@@ -50,6 +50,9 @@
<f:convertNumber pattern="$####.00" />
</h:outputText>
</h:column>
+ <f:facet name="footer">
+ <rich:datascroller for="table" rendered="true" />
+ </f:facet>
</rich:dataTable>
<a4j:status startText="Sorting in progress" stopText=" "
startStyle="color:red">
</a4j:status>