Converter errors and bindings

View: New views
1 Messages — Rating Filter:   Alert me  

Converter errors and bindings

by Lionel-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have an issue when I post an object which contains only one fulfilled
input on which there is an email converter which fails.
This object is never bind and "disapears".


JSP:

<form>

some fields
<br>

c:forEach(child : children) {
    <s:text name="child.name[index]"/>
    <s:text name="child.email[index]"/>
}

</form>


Actionbean:

@ValidateNestedProperties ({
   @Validate(field="name",maxlength=128),
   @Validate(field="email",converter=EmailTypeConverter.class)
})
private List<Child> children= new ArrayList<Child>();


If I submit only an invalid email (empty field name) the child list is empty
in the action bean, making the line disapears from the loop and from the
screen !

If I fulfill another field on the line, everything works fine.

Is there some way to avoid this behaviour ?




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users