On 11/22/06, Ted Husted <[EMAIL PROTECTED]> wrote:
Why not just have html:div and html:span tags then, to stay in line with the spec?
That would work too, although it might seem a little peculiar that they exist solely for the purpose to providing an alternate CSS class in the face of validation failure for some property or another. -- Martin Cooper On 11/22/06, Martin Cooper <[EMAIL PROTECTED]> wrote:
> 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]