You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2007/08/31 19:59:34 UTC
[jira] Closed: (WW-2143) Add cssErrorClass to input tags
[ https://issues.apache.org/struts/browse/WW-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes closed WW-2143.
----------------------------
Resolution: Duplicate
> Add cssErrorClass to input tags
> -------------------------------
>
> Key: WW-2143
> URL: https://issues.apache.org/struts/browse/WW-2143
> Project: Struts 2
> Issue Type: New Feature
> Components: Views
> Affects Versions: 2.0.9
> Reporter: Matt Raible
> Priority: Minor
>
> Spring MVC has this feature and it's a nice way to decorate fields with validation errors. Spring MVC example:
> <form:input path="phoneNumber" id="phoneNumber" cssClass="text medium" cssErrorClass="text medium error"/>
> To improve upon the above example, I think Struts 2 should allow you to only specify cssErrorClass="error" to render class="text medium error". It's more likely you're going to want to append css classes rather than replace them IMO.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.