> -----Original Message-----
> From: Francesco Consumi [mailto:[EMAIL PROTECTED] 
> Subject: 1.0.8: first try, first problem: update
> Scrive Francesco Consumi <[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). In most cases, the problem is that the
visible html component isn't initialized with the default value of the
value binding (if binding is returning some other type than String).
Changing/setting the value works correctly though. Anyway, I thought
this was a known issue, in fact I remember seeing some bugs open on that
in Sourceforge, but didn't check JIRA for it. Anyone have any better
insight on this?

Kalle

Reply via email to