On Friday 13 March 2009 20:49:34 Martin Gainty wrote:
>
> as I dont see required attribute (but I do see dynamic attributes=true)
> do you want a required attribute in TextField
> ?
> Martin

Martin, it's there, likely via inheritance. I'm pretty sure it's available on 
all UIBeans. As Dave and I mentioned, it's rendered in controlheader-core.ftl. 
The required parameter is a boolean, and if true, will place an asterisk 
between the label text and label separator. IMO, if it were requested that the 
asterisk be configurable, I'd be somewhat against it. The behavior of adding 
an asterisk seems to be specific to the xhtml theme, and it would be trivial 
to copy the controlheader-core.ftl out of the jar and place it on the 
classpath with something other than an asterisk... Adding another attribute to 
a set of tags that already have so many for such an easy change is overkill 
(of course, that doesn't stop someone else from making the change).

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to