I've used jasper without using xml (I must change this still) but I have an implementation of a JasperDesign that i make use of ... I create a JRDesignTextField with a JRDesignExpression,
I would like to setup the expression so that I can get jasper to call a method on each element within a JRBeanCollectionDataSource with a integer parameter... currently i can only call methods that returns a value and take in no arguments. The expression for this is shown below:
final JRDesignExpression exp = new JRDesignExpression(); exp.setValueClass(String.class); exp.setValueClassName(String.class.getName()); exp.addFieldChunk("column0");