You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/09/10 16:20:36 UTC

svn commit: r1382865 - /pivot/branches/2.0.x/tutorials/www/lists.xml

Author: smartini
Date: Mon Sep 10 14:20:36 2012
New Revision: 1382865

URL: http://svn.apache.org/viewvc?rev=1382865&view=rev
Log:
update lists tutorial, to add more info on how the default renderer uses element beans to display text (for any element, inside the list)

Modified:
    pivot/branches/2.0.x/tutorials/www/lists.xml

Modified: pivot/branches/2.0.x/tutorials/www/lists.xml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tutorials/www/lists.xml?rev=1382865&r1=1382864&r2=1382865&view=diff
==============================================================================
--- pivot/branches/2.0.x/tutorials/www/lists.xml (original)
+++ pivot/branches/2.0.x/tutorials/www/lists.xml Mon Sep 10 14:20:36 2012
@@ -262,5 +262,16 @@ limitations under the License.
         <p>
             The Java code for the example is the same seen in the previous sample.
         </p>
+
+<br/>
+<br/>
+
+        <p>
+            In case your <tt>ListView</tt> contains a bean instance, for example a <tt>Contact</tt> for any element,
+            the default renderer uses (as last option) the toString method on list elements,
+            so override it to return whatever you want to display in the ListView,
+            or implement your own custom renderer.
+        </p>
+
     </body>
 </document>