Jason Carreira wrote:
Message
It evaluates them against the value stack...
 
For instance, if you have a property processingAction on your Action, then
 
<ww:form action="" method="'POST'">
 
would call getProcessingAction on your Action instance and use that value. This allows your taglib attributes to be dynamically evaluated while allowing the use of constants by enclosing the values in single quotes.

Hmm...  Is there a way to access the ResourceBundle associated with the Action?

Say I'd like to have

<ww:textfield label="username" name="username"/>

where username evaluates to the username property in the ResourceBundle associated with this Action?


In fact, is there any decent documentation (or examples) available on the use of WebWork2 tags?  The example in CVS uses Velocity tags, which doesn't really help much since I'm not familiar with Velocity.  I've also taken a look at the WW1 docs on the taglib, but that wasn't very helpful either.


Thanks,
-Mark

Reply via email to