History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1044
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: tm_jee
Reporter: tm_jee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

Add a fielderror tag to display field errors if exist

Created: 22/Dec/05 06:20 PM   Updated: 23/Dec/05 10:16 PM
Component/s: Views
Affects Version/s: 2.2
Fix Version/s: 2.2


 Description  « Hide
Add a fielderror tag to display field errors if exist eg.

<ww:fielderror /> --> display all field errors

<ww:fielderror>
   <ww:param name="field1" />
   <ww:param name="field2" />
</ww:fielderror>

display field error message for field1 and field2 only

 All   Comments   Change History      Sort Order:
tm_jee - [23/Dec/05 10:16 PM ]
changes:
src/java/com/opensymphony/webwork/components/FieldError.java
src/java/com/opensymphony/webwork/views/jsp/FieldErrorTag.java
src/java/template/simple/fielderror.ftl
src/java/template/xhtml/fielderror.ftl
src/test/com/opensymphony/webwork/views/jsp/ui/FieldErrorTagTest.java
src/test/com/opensymphony/webwork/views/jsp/ui/fielderror-1.txt
src/test/com/opensymphony/webwork/views/jsp/ui/fielderror-2.txt
src/test/com/opensymphony/webwork/views/jsp/ui/fielderror-3.txt
src/test/com/opensymphony/webwork/views/jsp/ui/fielderror-4.txt
src/test/com/opensymphony/webwork/views/jsp/ui/fielderror-5.txt

usage:
<!-- display all field errors -->
<ww:fielderror />

<!-- display 'field1' and 'field2' field error only -->
<ww:fielderror>
     <ww:param>%{'field1'}</ww:param>
     <ww:param>%{field2'}</ww:param>
</ww:fielderror>