On 9/21/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
On 9/21/06, Aneesha Govil < [EMAIL PROTECTED]> wrote:This works using plain string. Why did the SelectItem not work?On 9/21/06, Gerald Müllan < [EMAIL PROTECTED]> wrote: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;
I have declared this as a SelectItem, any reason why that should not work?
Now navigation is not working. For some reason it always selects the same view to go to.
Thanks a lot.
I know why. The value that I select from the selectOneMenu is not getting submitted to the TableForm. So each time, it shows the same page using the default value "1". How does the value of the selected Item get populated into the bean? Why is this not working in this simple sample?
Please help.
Thanks,
Aneesha

