[ http://mc4j.org/jira/browse/STS-172?page=all ]
Tim Fennell updated STS-172:
----------------------------
Fix Version/s: Release 1.5
There needs to be some work to pull this off. Primarily there needs to be a
way to grab the ActionBeanContext from within an EL function, which probably
means sticking it in a ThreadLocal somewhere...
> Indexed ValidationErrors properties on ActionBean
> -------------------------------------------------
>
> Key: STS-172
> URL: http://mc4j.org/jira/browse/STS-172
> Project: Stripes
> Issue Type: Improvement
> Components: Tag Library, Formatting
> Reporter: Brian Nørremark
> Assigned To: Tim Fennell
> 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://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development