[richfaces-svn-commits] JBoss Rich Faces SVN: r1973 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Aug 1 07:12:47 EDT 2007


Author: vkukharchuk
Date: 2007-08-01 07:12:47 -0400 (Wed, 01 Aug 2007)
New Revision: 1973

Added:
   trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
Modified:
   trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
Log:
http://jira.jboss.com/jira/browse/RF-450

Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml	2007-08-01 10:48:45 UTC (rev 1972)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml	2007-08-01 11:12:47 UTC (rev 1973)
@@ -421,7 +421,50 @@
         
         <para>To change the style of particular suggestionbox components define your own style classes in the corresponding suggestionbox attributes. </para>
     </section>
-        
+
+	<section>
+	<para>
+There is possibility to define what be shown if the autocomplete returns empty list.
+Attribute "nothingLabel" or facet with the same name could be used for it.
+	</para>
+        <para>
+            <emphasis role="bold">Example:</emphasis>
+        </para>				
+        <programlisting role="XML"><![CDATA[...
+    <rich:suggestiobox nothingLabel="Empty" for="test" suggestionAction="#{bean.autocomplete}" var="cit"> 
+        <h:column>
+            <h:outputText value="#{cit.text}"/>
+        </h:column>
+    </rich:suggestionbox>
+...
+]]></programlisting>
+		<para>
+            <emphasis role="bold">Example:</emphasis>
+        </para>
+        <programlisting role="XML"><![CDATA[...
+<rich:suggestiobox for="test" suggestionAction="#{bean.autocomplete}" var="cit"> 
+	<facet name="nothingLabel">
+		<h:outputText value="Empty"/>
+	</facet>		
+	<h:column>
+		<h:outputText value="#{cit.text}"/>
+	</h:column>
+</rich:suggestionbox>
+...
+]]></programlisting>				
+	</section>
+	
+    <para>It looks on the page in the following way:</para>       
+
+	<figure>
+            <title>SuggestionBox with empty list</title>
+            <mediaobject>
+                <imageobject>
+                    <imagedata fileref="images/suggestionbox5.gif"/>
+                </imageobject>
+            </mediaobject>
+        </figure>	
+	
     <section>
         <title>Relevant resources links</title>
         <para>

Added: trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
===================================================================
(Binary files differ)


Property changes on: trunk/docs/userguide/en/src/main/resources/images/suggestionbox5.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the richfaces-svn-commits mailing list