Binding value to drop down list

9 views
Skip to first unread message

Rahul

unread,
Apr 7, 2009, 1:13:07 AM4/7/09
to rife-users
I am trying to bind the value selected in the drop down to the command
bean i.e form bean like this

<select name="room_type" id="room_type">
<option value="${v PARAM:room_type}${/v}">Deluxe</option>
<option value="${v PARAM:room_type}${/v}">Executive</option>
<option value="${v PARAM:room_type}${/v}">Suite</option>
</select>

where room_type has appropriate getter n setter in the form bean.
After submitting the form
i am able to bind the selected value to the form bean's getter n
setter.

Any sugesstions?

Geert Bevin

unread,
Apr 7, 2009, 1:29:21 AM4/7/09
to rife-...@googlegroups.com
This should help you:
http://rifers.org/wiki/display/RIFE/Forms#Forms-select

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com

Rahul

unread,
Apr 7, 2009, 1:47:36 AM4/7/09
to rife-users
yes.. that helped .. thanks Geert

On Apr 7, 10:29 am, Geert Bevin <gbe...@uwyn.com> wrote:
> This should help you:http://rifers.org/wiki/display/RIFE/Forms#Forms-select
>
> On 07 Apr 2009, at 07:13, Rahul wrote:
>
>
>
>
>
> > I am trying to bind the value selected in the drop down to the command
> > bean i.e form bean like this
>
> > <select name="room_type" id="room_type">
> >      <option value="${v PARAM:room_type}${/v}">Deluxe</option>
> >      <option value="${v PARAM:room_type}${/v}">Executive</option>
> >      <option value="${v PARAM:room_type}${/v}">Suite</option>
> > </select>
>
> > where room_type has appropriate getter n setter in the form bean.
> > After submitting the form
> > i am able to bind the selected value to the form bean's getter n
> > setter.
>
> > Any sugesstions?
>
> --
> Geert Bevin
> Terracotta -http://www.terracotta.org
> Uwyn "Use what you need" -http://uwyn.com
Reply all
Reply to author
Forward
0 new messages