myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Broekelmann, Mathias" <MBroekelm...@PSI.DE>
Subject Better object.toString() instead of cast (String)object
Date Mon, 04 Apr 2005 12:30:24 GMT

To get a string value from a valuebinding the getter methods of the
components always cast the object value to string (ex:

A better way would be to test if the object is null and if it is not
null call object.toString() and return that value.

That would make it possible to use java.lang.CharSequence or any other
object instances to use as a value for the properties.


View raw message