myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: selectOneMenu and selectItem sample
Date Thu, 21 Sep 2006 15:21:24 GMT
You don`t need the immediate attribute in this simple usecase. Just
declare the value attribute of the selectOneMenu in the bean and give
it the type corresponding to the "value"
type of the SelectItem. In your case is this a String.

private String selectedTable = null;

You have also permuted the "label" and the "value" attribute when
creating the SelectItem.
The fist argument is the value (hidden on the page, this is the value
which is set to the value of the selectOneMenu) and the second one the
label (can be seen in the drop down).

And in your getPagetoDisplay() method, place the condition of which
value the selectedTable is.

Any further help needed?

cheers,

Gerald

On 9/21/06, Aneesha Govil <popcorn09@gmail.com> wrote:
>
>
> On 9/21/06, Sanoop Kuniel <sanoop@kuniel.net> wrote:
> >
> >
> >
> >
> > Try removing immediate="true" on your JSF page
> >
> >
> >
> > - Sanoop
> It doesn't work with that. The action doesn't seem to get executed. Control
> stays on the same page and the next jsp is not loaded, just the dropdown
> changes.
>
> Aneesha
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message