Binding value to drop down list

View: New views
3 Messages — Rating Filter:   Alert me  

Binding value to drop down list

by Rahul-36 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Binding value to drop down list

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Binding value to drop down list

by Rahul-36 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


yes.. that helped .. thanks Geert

On Apr 7, 10:29 am, Geert Bevin <gbe...@...> 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
> RIFE Java application framework -http://rifers.org
> Flytecase Band -http://flytecase.be
> Music and words -http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web