In this exact situation, I ended up "packing" my list in my data-layer
code. Our (home-grown) JPA layer provides for a "beforeSave" hook in
the DAO, so in there I make sure the list is contiguous.



On Wed, Jun 24, 2009 at 7:51 AM, <[email protected]> wrote:
>
> Hi,
>
> I am using list binding with fields like
>
> <input name="foo.bar[0].baz">
>
> I have a javascript solution to adding/removing fields to/from the form and
> render the initial field-sets with JSP based on the object model.
>
> But when I remove some fields with javascript it seems that nothing in the
> binding process removes the corresponding object in the object model?
>
> Which would be the best way to implement this? Something like a @Before
> method that clears the list before binding, so it is re-populated for each
> event invocation?
>
> Thanks,
>
>
> -dennis
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>



-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to