Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by MaximeCapelle:
http://wiki.apache.org/tapestry/Tapestry5SelectObject

The comment on the change is:
toValue doesn't work with Double (e.g). access.get() must be casted in String

------------------------------------------------------------------------------
  
         public T toValue(String string) {
                 for (T obj : list) {
+                        if (toClient(obj).equals(string)) return obj;
-                        if (fieldName == null) {
-                                if ((obj + "").equals(string)) {
-                                        return obj;
-                                }
-                        } else {
-                                if (access.get(obj, fieldName).equals(string)) 
{
-                                        return obj;
-                                }
-                        }
                 }
                 return null;
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to