Hi list,

I'd like to add a FieldSet to tab in a TabbedForm, my code looks like this:

TabbedForm form = new TabbedForm("form");
FieldSet protFS = new FieldSet("protocol");
FieldSet dataSet = new FieldSet("data");

... adding fields to dataSet

protFS.add(dataSet); // this crashes
form.addTabSheet(protFS);

The line protFS.add(dataSet) crashes with the following Exception:
java.lang.IllegalArgumentException: Cannot set the FieldSet's form to null

I also tried setting the form manually:
dataSet.setForm(form);

Currently I am using click 2.1.0

Is there any way to add a FieldSet to a tab?

Thanks in advance
SVen

Reply via email to