Differences between revisions 1 and 2
Revision 1 as of 2007-04-19 02:06:02
Size: 855
Editor: adsl-219-131-115
Revision 2 as of 2009-09-20 23:01:49
Size: 855
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

"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):


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.

Tomahawk_1.1.4_to_1.1.5 (last edited 2009-09-20 23:01:49 by localhost)