Hi Francesco, Is it a typo, or do your getter and setter not match the variable declaration. I.E.
private int id_cassa_int = 0; .... public int getId_cassa_fat Note _int on end of variable name, and _fat on end of getter & setter. Regards, Fintan -----Original Message----- From: Francesco Consumi [mailto:[EMAIL PROTECTED] Sent: 19 April 2007 08:05 To: [email protected] Subject: Re: 1.1.5 and t:selectOneMenu Citando Mike Kienenberger <[EMAIL PROTECTED]>: > 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. > a big thanks, but I don't understant what selectItem has to convert: this is the tag: <t:selectOneMenu value="#{mb.id_cassa_int}" > <f:selectItems value="#{mb.dblCasse.rows}"/> </t:selectOneMenu> this is the id_cassa_int declaration: private int id_cassa_int = 0; .... public int getId_cassa_fat() { return id_cassa_fat;} public void setId_cassa_fat(int id_cassa_fat) { this.id_cassa_fat = id_cassa_fat; } selectItems points to an ArrayList of selectItem, filled with strings, where "Value" is converted from Int. So, why does it need to convert something ? really thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133 * ** *** ** * ** *** ** * ** *** ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB. If you have received this email in error please notify the sender. Although ESB scans e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. * ** *** ** * ** *** ** * ** *** ** *

