org.apache.cocoon.woody.formmodel.* // get reference to form and some of the widgets on it Form form = (Form)request.getAttribute("form1"); Field field = (Field)form.getWidget("email"); BooleanField booleanField = (BooleanField)form.getWidget("somebool"); Field field2 = (Field)((Repeater)form.getWidget("contacts")).getWidget(1, "firstname"); email has the following value: field.getValue()
Second person has this firstname: field2.getValue()
The value of the checkbox is: booleanField.getValue()