Scrive "Korhonen, Kalle" <[EMAIL PROTECTED]>:
> I'm porting an intranet app from 1.0.7 to 1.0.8. > I've got a problem with SelectOneMenu. Here is the code: > <h:selectOneMenu id="cmbOre" value="#{mb.prenots.currentRow.ID_ORA}"> > <f:selectItems id="cmbOreI" value="#{mb.arrOre}"/> > </h:selectOneMenu> > "arrOre" is an arrayList of SelectItems, filled by a function with I've noticed that the selectOneMenu works well if the underlying variable is a String instead of an int. Why doesn't work anymore with integers ?
Yeah, selectItems derived components don't work properly with any other value types than String (still a problem in MyFaces, version last updated a week ago from CVS).
For us, these components have been working fairly until 1.0.7. We usually link
integer values to selectOneMenu, because in our databases we use a lot of
"service" tables with only "ID" and "NAME" fields, related to "main" tables
having ad integer field instead to varchar. So, in our forms there are a lot of
SelectOneMenu components.
In version 1.0.8 this morning I saw this mechanism didn't work anymore: the
selectOneMenu get right value only from strings, even if it's able to set value
in integers variables. Consequently, initial value of SelectOneMenu is never
set.
is it possible to re-set the previous behaviour of component ?
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

