On 11/23/06, Paul Benedict <[EMAIL PROTECTED]> 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.

</label>

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to