<ww:set name="description" value="'description Text'" /> <ww:textfield label="'label'" name="'name'" />
and in the templates add: $stack.findValue("#description")
its not as clean but it works.
Taavi Tiirik wrote:
I would like to add optional "description" attribute to the input fields. Field description could be included in the label or it could be described by a custom tag that is placed just before or after the input field tag but I feel it makes sense to add this to the tag itself as a separate optional attribute.
Take a look at the added picture of input fields that are rendered using tags like this: #tag( TextField "label='Field label'" "name='text'" "value=text" "description='Description text explaining what kind of input is expected in this field'")
This requires adding getter and setter methods to the AbstractUITag, modifying taglib for jsp tags and modifying controlheader or controlfooter template as well. And of course this feature would be entirely optional.
Well, what do you think? After all, we all want to create better user interfaces for our apps.
taavi.
------------------------------------------------------------------------
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork