You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Francesco Consumi <co...@istitutodeglinnocenti.it> on 2005/01/13 11:00:44 UTC

1.0.8: first try, first problem

Hi,
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 
values picked
from a table. The first <option> is ever a empty value, in order to let 
user to
left it empty.
"ID_ORA" is an integer value in HashMap "currentRow".

here is the code produced by 1.0.7:

<select name="corpo:_id4:cmbOre" size="1">
<option value=""></option>
<option value="1" selected="selected">13:00:00</option>
<option value="2">13:45:00</option>

and here the output of 1.0.8:

<select id="corpo:_id4:cmbOre" name="corpo:_id4:cmbOre" size="1">
<option value=""></option>
<option value="1">13:00:00</option>
<option value="2">13:45:00</option>
</select>


anybody does know why ?

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


1.0.8: first try, first problem: update

Posted by Francesco Consumi <co...@istitutodeglinnocenti.it>.
Scrive Francesco Consumi <co...@istitutodeglinnocenti.it>:

>
> Hi,
> 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 ?



-- 
Francesco Consumi
Ufficio Sistemi informativi
Istituto degli Innocenti
Piazza SS.Annunziata, 12
50122 Firenze
consumi at istitutodeglinnocenti.it
Tel. +39 055 2037320
ICQ# 12516133