Title: Another quickie
I don't think you can use the tag that way. The listKey param specifies the name of the property of the objects in the list specified by the list param... see the webwork/docs/tag-doc.htm
 
For some reason that document is not on wiki, at least I have not found it.
 
Jonas
----- Original Message -----
Sent: Thursday, October 02, 2003 6:42 PM
Subject: [OS-webwork] Another quickie

Hi all :)

First, thanks a lot to Jason for answering the previous question (checkbox grouping) so fast. Really helpful! :)

Now I'm creating one more component, a select box for gender, which should render something like this:

    Gender: [Choose one...   ][v]

In my Velocity template, I tried:

#tag(Select
"label=gender" "name=gender" "value=gender"
"listKey={' ', 'M', 'F'}"
"listValue={'Choose one...', 'Male, 'Female'}"
)

But, so far, no-no. I'm almost certain there's something wrong with the OGNL expressions, but reading the OGNL user's guide I couldn't find any evidence proving it. Any ideas? :)

[]'s
-cv

Reply via email to