Author: musachy
Date: Thu Dec 18 11:55:40 2008
New Revision: 727803
URL: http://svn.apache.org/viewvc?rev=727803&view=rev
Log:
Add error field names to the available params
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FieldError.java
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FieldError.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FieldError.java?rev=727803&r1=727802&r2=727803&view=diff
==============================================================================
---
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FieldError.java
(original)
+++
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FieldError.java
Thu Dec 18 11:55:40 2008
@@ -102,6 +102,14 @@
return TEMPLATE;
}
+ @Override
+ protected void evaluateExtraParams() {
+ super.evaluateExtraParams();
+
+ if (errorFieldNames != null)
+ addParameter("errorFieldNames", errorFieldNames);
+ }
+
public void addParameter(Object value) {
if (value != null) {
errorFieldNames.add(value.toString());