On 11/21/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
Martin, Are you looking for a <html:any> tag that simply passes through all parameters, and you name the element to be created?
You must be new around here. ;-) That is actually something that I have been in ardent opposition to for years. So no, that's not what I'm suggesting. What I was thinking of was a tag that you could wrap around other content to provide an error style, instead of applying the style to arbitrary other tags such as a label tag. I don't have a great name for such a tag, but here's the rough idea: <html:block property="firstName" styleClass="normalStyle" errorStyleClass="errorStyle"> <label for="firstName">First Name</label> </html:block> This would render as a div or span (we'd probably need an attribute to specify which) and with the appropriate style depending on the validity of the specified property. This way, you can wrap whatever you want with this tag, be it a label, the text element itself, or whatever, and the contents will pick up the style from that container. -- Martin Cooper Paul