Hi all. I'm using Velocity with WW2 for the first time, and it's not going groovy for me. With the following radio tag, I am getting an OGNL exception because getLanguage gets called, and it throws and error because getLanguage is dependent on setLanguage being called first.
getLanguage(){ return getLocale().getCountry(); }
#tag( Radio "label=Language" "name=language" "list=languages")
I believe you also need to set the listValue and listKey fields. For an example of this in action, see the webwork-example. There's a page that has all the ui tags using velocity and using jsps.
To address your current issue though.
* getLanguage should not throw an exception. Although setLanguage should be called first, remember that this might be the users first visit to the page, so there won't have been an opportunity to call setLanguage. you code should take this into account.
* getLanguages should return a list of Language (or whatever) objects that includes your representation of "esperanto"
Life should be good then.
Cheers!
M
------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork