bruno 2003/06/26 02:17:37
Modified: src/blocks/woody/java/org/apache/cocoon/woody/samples Form1Handler.java Log: Use proper way to access a widget in a row. Revision Changes Path 1.2 +1 -1 cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form1Handler.java Index: Form1Handler.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form1Handler.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Form1Handler.java 14 May 2003 11:35:38 -0000 1.1 +++ Form1Handler.java 26 Jun 2003 09:17:37 -0000 1.2 @@ -79,7 +79,7 @@ private void removeSelectedContacts() { Repeater repeater = (Repeater)form.getWidget("contacts"); for (int i = repeater.getSize() - 1; i >= 0; i--) { - boolean selected = ((Boolean)repeater.getRow(i).getWidget("select").getValue()).booleanValue(); + boolean selected = ((Boolean)repeater.getWidget(i, "select").getValue()).booleanValue(); if (selected) repeater.removeRow(i); }