Hello all,

I've got a velocity template that uses a webwork select tag.
I want to inline the select <option> values/labels in the tag itself.

I found an example of how to do this in JSP instead of velocity:
<webwork:select label="Answer" name="answer" list="{'Yes' : 'false', 'No', :
'true'}" />

Going from that as an example, I have this for velocity right now:
#tag( Select "label=Answer" "name=answer" "list={'Yes', 'No'}" )

This *mostly* works. My problem is, the same thing is being used for the
option tag's value as well as label:
<option value="Yes">Yes</option>
<option value="No">No</option>

Whereas, I'm trying to get:
<option value="yes">Yes</option>
<option value="no">No</option>

If I try the syntax used in the JSP example (ex: 'Yes' : 'yes') the select
object doesn't even render.

Any ideas how I can do this?

Thanks,

Bryan White




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to