myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Tomahawk 1.1.4 to 1.1.5" by PaulSpencer
Date Thu, 19 Apr 2007 02:06:05 GMT
Dear Wiki user,

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

The following page has been changed by PaulSpencer:
http://wiki.apache.org/myfaces/Tomahawk_1%2e1%2e4_to_1%2e1%2e5

New page:
----
=== "Invalid Option" errors when submitting a form. ===
Almost every  selectOneMenu with integer as value doesn't work anymore after upgrade  from
1.1.4. They say "Invalid Option" at every form submit.  SelectItems are populated from database,
and converted to string.

Short answer:  Old behavior was broken.  New behavior matches the spec.
Long answer:  Read through this thread, probably starting at the
beginning (postings after the one below probably aren't relevent to
your issue):

http://www.mail-archive.com/users@myfaces.apache.org/msg34395.html

Solution:  Make sure that your itemValue attributes have value
bindings that return the correct type.   If your value points to a
Long, this can be as simple as using "#{3}" to return a Long 3.
Otherwise, you'll have to convert or fetch the correct value type
yourself. 
----

Mime
View raw message