According to the Stripes book and the online documentation examples I gather
that using <s:errors/> inside a <s:form> will create a block of (rather, dump
out a list of) all the validation errors in a particular form.

But, if we want to have a single field validation, you do something like this:

<s:text name="foo.name"/>
<s:errors field="foo.name"/>

And we only get a single fields worth of validation errors.

This second form is what I want, but it's not what I'm getting. when I use the
first form I get a big red block of validation errors as expected. However, if I
set globalErrorsOnly="true" on the top form errors tag and introduce something
like the above:

<s:text name="foo.name"/>
<s:errors field="foo.name"/>

And the invalid field highlights red, but there is no other markup generated.
I've surfed through the html with firebug just to make sure it's not being
buried and just not showing up, but it just isn't there. I switch back to
globalErrorsOnly="false" and my errors show back up at the top. Is there some
reason why the markup generation for individual fields would be supressed, but
not a global errors?

Thanks in advance,
Dennis


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to