Author: ilya_shaikovsky
Date: 2011-05-11 16:46:51 -0400 (Wed, 11 May 2011)
New Revision: 22485
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/arrangeableModel.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/jpaColumn.xhtml
Log:
https://issues.jboss.org/browse/RF-10845 - descriptioon and sources links
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/arrangeableModel.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/arrangeableModel.xhtml 2011-05-11
20:37:14 UTC (rev 22484)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/arrangeableModel.xhtml 2011-05-11
20:46:51 UTC (rev 22485)
@@ -5,7 +5,48 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>DESC</p>
+ <p>That sample shows you <b>ArrangeableModel </b>implementation in
order
+ to perform in-db sorting filtering and paging of the data</p>
+ <p>While exploring sources pay most attention to <b>JPADataModel
</b>which
+ is actually generic abstract model which have most of the functionality
+ implemented.</p>
+ <p><b>PersonBean </b>provides the sorting/filtering controller and
+ instantiates concrete model for Person entity</p>
+ <p>We using JPA and Hibernate entity manager in order to work with
+ the db.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View Page Source" />
+ <ui:param name="hideLabel" value="Hide Page Source" />
+ </ui:include>
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src"
value="/richfaces/dataTable/samples/jpaColumn.xhtml" />
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View jpaColumn.xhtml Source"
/>
+ <ui:param name="hideLabel" value="Hide jpaColumn.xhtml Source"
/>
+ </ui:include>
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src"
+ value="/WEB-INF/src/org/richfaces/demo/arrangeablemodel/JPADataModel.java"
/>
+ <ui:param name="sourceType" value="java" />
+ <ui:param name="openLabel" value="View JPADataModel Source"
/>
+ <ui:param name="hideLabel" value="Hide JPADataModel Source"
/>
+ </ui:include>
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src"
+ value="/WEB-INF/src/org/richfaces/demo/arrangeablemodel/PersonBean.java"
/>
+ <ui:param name="sourceType" value="java" />
+ <ui:param name="openLabel" value="View PersonBean Source" />
+ <ui:param name="hideLabel" value="Hide PersonBean Source" />
+ </ui:include>
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src"
+ value="/WEB-INF/src/org/richfaces/demo/arrangeablemodel/Person.java" />
+ <ui:param name="sourceType" value="java" />
+ <ui:param name="openLabel" value="View Person Source" />
+ <ui:param name="hideLabel" value="Hide Person Source" />
+ </ui:include>
</ui:composition>
</html>
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/jpaColumn.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/jpaColumn.xhtml 2011-05-11
20:37:14 UTC (rev 22484)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/samples/jpaColumn.xhtml 2011-05-11
20:46:51 UTC (rev 22485)
@@ -12,9 +12,8 @@
sortOrder="#{bean.sortOrders[property]}"
filterValue="#{bean.filterValues[property]}"
filterExpression="#{property}">
-
<f:facet name="header">
- <h:commandLink style="color: white;"
action="#{bean.toggleSort}">
+ <h:commandLink action="#{bean.toggleSort}">
#{bean.sortOrders[property]}
<a4j:ajax render="richTable" />
<f:setPropertyActionListener target="#{bean.sortProperty}"
value="#{property}" />
@@ -24,7 +23,6 @@
<a4j:ajax render="richTable@body scroller" event="keyup"
/>
</h:inputText>
</f:facet>
-
<h:outputText value="#{record[property]}" />
</rich:column>
</ui:composition>