Author: ilya_shaikovsky
Date: 2008-03-19 08:19:23 -0400 (Wed, 19 Mar 2008)
New Revision: 6941
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
Log:
Pick List example
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-19
12:13:13 UTC (rev 6940)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-19
12:19:23 UTC (rev 6941)
@@ -4,8 +4,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form>
- <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}"
/>
- </h:form>
-
+ <h:form>
+ <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}"
maxFilesQuantity="10"/>
+ </h:form>
</ui:composition>
\ No newline at end of file
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19
12:13:13 UTC (rev 6940)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/examples/items.xhtml 2008-03-19
12:19:23 UTC (rev 6941)
@@ -30,7 +30,7 @@
<rich:column>
<h:outputText value="#{pickList}"/>
</rich:column>
- </rich:dataList>
+ </rich:dataList>
</rich:panel>
</h:panelGrid>
</h:form>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-19
12:13:13 UTC (rev 6940)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-19
12:19:23 UTC (rev 6941)
@@ -8,10 +8,14 @@
<ui:define name="sample">
<p>
- SHORT DESCRIPTION
+ Pick List component is a simple selection component where a set of items can be
+ selected from a list that contains all the available items to a list that
+ contains the selected items.
</p>
-
+ <p>
+ Next example shows simplest declarative definition on the page.
+ </p>
<div class="sample-container" >
<ui:include src="/richfaces/pickList/examples/simple.xhtml"/>
@@ -19,11 +23,26 @@
<ui:param name="sourcepath"
value="/richfaces/pickList/examples/simple.xhtml"/>
</ui:include>
</div>
+
+ <p>
+ Pick List is a simplified variant of ListShuttle component. It not uses custom
model.
+ Instead it uses f:selectItem(s) tags for elements definition, so convertors
creation
+ isn't required for the component.
+ </p>
<p>
- DESCRIPTION
+ Value of the component stores as list which contains select items values.
</p>
-
+
+ <p>
+ Next example shows simple case where the values applied and listed via Ajax.
+ Select items in this example contains USA state names as label for item and
+ corresponding state capitals as value for item.
+ </p>
+ <p>
+ Just move some elements with state names to the result list and corresponding
+ state capitals will appears in the result panel.
+ </p>
<div class="sample-container" >
<ui:include src="/richfaces/pickList/examples/items.xhtml"/>
@@ -31,7 +50,6 @@
<ui:param name="sourcepath"
value="/richfaces/pickList/examples/items.xhtml"/>
</ui:include>
</div>
-
</ui:define>