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/[email protected]/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. Nice Long-term solution: submit a patch for Tomahawk selectItem so that it automatically coerces the type like the old f:selectItem component used to do. On 4/18/07, Francesco Consumi <[EMAIL PROTECTED]> wrote:
Hi all, we've an annoying problem with new myfaces 1.1.5. 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. suggestions ? -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133

