Hi!
Just a small thing a can't resolve right now.
I have a jsp to display a List<Person>, which contains an id, a name, etc.
Each row has a checkbox to mark for suppression (with a sumbit button at the
end).
In my ActionBean I have a List<Person> and a int[] personsIds to store
multiples id from the form.
My handler function seems to be working because sometimes I can delete many
items correctly... But I reach a point where it's just doesn't work anymore:
no error, no exception. The output shows that the ActionBeans is correctly
called but there is nothing more.
Here is how I manage to delete my items (the syntax is voluntary very basic
because I wanted simple things to find the disfunction):
public Resolution supprimer () {
PersonManager pm = new PersonManager ();
int j;
for (j=0; j<contactsIds.length; j++) {
// system output here
Contact c = cm.getContact(contactsIds[j]);
contacts.add (c);
}
for (Contact c : contacts) {
cm.delContact (c);
}
return new RedirectResolution("/list.jsp");
}
Thx ;)
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users