struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <>
Subject Re: [s1.3.6]: New label tag
Date Sat, 25 Nov 2006 20:03:23 GMT
On 11/23/06, Paul Benedict <> wrote:
> Based on the discussions, I propose the following additional tag
> libraries then:
> <html:span> and <html:div> that will output their respective HTML tags.
> These tags will be tied to a specified name/property, have their
> errorStyleXXX properties available, and an optional flag to skip the
> body if there is no error:
> <html:span property="firstName" errorStyle="error">

You meant 'errorStyleClass' here, right?

  <label>First Name</label>
> </html:span>
> should output on an error:
> <span class="error"><label>First Name</label></span>
> But perhaps you want to output some prolog after the label on an error:
> <label>First Name
>   <html:span property="firstName" errorStyle="error"
> errorSkip="true">(oops)</html:span>

Now we're adding more functionality that's quite different from what we've
been talking about up to now. I'd prefer to leave this out and either
suggest that people use a JSTL conditional for this, or provide a separate
tag that does something akin to the JSTL 'if' tag based on a property value.

> This will only output "(oops)" inside the label if the firstName
> property is in error.

Well, the span would still be there, right? (But see my comment above about
having this at all.)

Martin Cooper

Is this acceptable? Feedback desired.
> Paul
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message