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") If I change getLanguage() to this, public String getLanguage() { String result = "esperanto"; try { result = getLocale().getCountry(); } catch (Exception e) { return result; } return result; } then it works fine. The html ends up <input type="radio" name="language" value="Swedish" />, even though getLanguage() was called and returned "esperanto". I had expected that the html would've been name="esperanto". It seems to me that if getLanguage() is going to be called, it should end up in the html. Is this a bug, or a feature? Is my approach to getLanguage() the best solution in this case, or am I missing some already established best practice? -Robert ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork