Why cant you use <stripes:select> tag for combo?
<stripes:select name="mc.doctor" style="width:267px">
<stripes:option value="-1">Select</stripes:option>
<stripes:options-collection
collection="${actionBean.allDoctors}" label="name" value="name"/>
</stripes:select>
The method "allDoctors" has to be a member of your action class.
2009/4/27 Sneha Manohar <[email protected]>
> Hi all ,
>
> I am trying to set doctor object as the value of combo box .
>
> <select class="select-country" id="mc.doctor" name="mc.doctor">
> <option value="-1" >Select...</option>
> <c:forEach items="${doctorManager.allDoctors}" var="d">
> <option value="${d}">${d.name}</option>
> </c:forEach>
> </select>
>
> It can be seen in page source, but in actionBean
> private MedicalCondition mc ;
> mc.getDoctor is null ,where MedicalCondition is POJO with setter & getter
> for doctor object.
>
> Can you please give some tips .
>
> Sneha
>
>
>
> ------------------------------
> Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition
> * Click
> here!<http://in.rd.yahoo.com/tagline_firefox_1/*http://downloads.yahoo.com/in/firefox/>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Cheers,
Tissen Sebastian
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users