[ 
http://www.stripesframework.org/jira/browse/STS-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-172.
----------------------------

    Resolution: Fixed
      Assignee: Ben Gunter

Fixed for 1.5. Added a new EL function hasErrors(ActionBean bean, String field) 
that can be used like
<c:if test="${s:hasErrors(actionBean, 'foo')}">...</c:if>

> Indexed ValidationErrors properties on ActionBean
> -------------------------------------------------
>
>                 Key: STS-172
>                 URL: http://www.stripesframework.org/jira/browse/STS-172
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Formatting, Tag Library
>            Reporter: Brian Nørremark
>            Assignee: Ben Gunter
>            Priority: Minor
>             Fix For: Release 1.5
>
>
> There are situations where the <stripes:errors>, and related tags, simply 
> isn´t enough - they need help in form of a way to determin if a field has 
> validationerrors or not.
> Example
> With no validationerrors the field is rendered like this:
> <div class="required">
> <label for="first_name">First Name:</label>
> <input type="text" name="first_name" id="first_name" class="inputText" 
> size="10" maxlength="100" value="" />
> </div>
> Upon validationerror the field should be rendered like this:
> <div class="required error">
> <p class="error">Required.</p>
> <label for="first_name">First Name:</label>
> <input type="text" name="first_name" id="first_name" class="inputText" 
> size="10" maxlength="100" value="" />
> </div>
> It could be done by adding an indexed property to actionbean - something like 
> actionBean.validationerrors.first_name.hasErrors

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to