Unfortunately, #{1} will not work.
#{1} will generate a Long, not an Integer.
On Mon, Mar 8, 2010 at 11:20 AM, Jakob Korherr <[email protected]> wrote:
> Hi Sébastien,
>
> It's great that you were able to figure out the real problem :)
>
> To explain it a little further: the <f:selectItem itemValue="1" .../>
> creates a SelectItem with the String value of "1". If you want to provide an
> Integer value you have to provide it via a property in a managed bean that
> returns the integer 1. maybe also #{1} will work, but I'm not really sure...