struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-771) Add an "errorStyleClass"-like attribute to form element tags
Date Sat, 03 Nov 2007 03:20:41 GMT

    [ https://issues.apache.org/struts/browse/WW-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42515
] 

Don Brown commented on WW-771:
------------------------------

This patch applies fine, but is missing tests.  Could you add a few tests, preferrably one
per tag?

> Add an "errorStyleClass"-like attribute to form element tags
> ------------------------------------------------------------
>
>                 Key: WW-771
>                 URL: https://issues.apache.org/struts/browse/WW-771
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Tags
>            Reporter: Xavier Defrang
>            Priority: Minor
>             Fix For: 2.1.1
>
>         Attachments: css_error_style.zip, css_error_style_patch.txt
>
>
> From Struts HTML taglib documentation about the errorStyleClass attribute:
> <snip>
> CSS stylesheet class to be applied to this HTML element if an error exists for it (renders
a "class" attribute).
> N.B. If present, this overrides the styleClass attribute in the event of an error.
> </snip>
> Translated into WebWork's vocabulary: replace the style class of the element if there's
a fieldError associated with its name.
> Such a feature makes it very easy to highlight the fields having an error using plain
CSS and without any presentation logic involved.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message