Hi,
I wonder what is the best/correct way to dynamically set the fields of a form? I normally do the following:
List<FormItem> items = new ArrayList<FormItem>();
items.add(formItem_1);
items.add(formItem_2);
myForm.setItems(items.toArray(new FormItem[0]));
Is there a better way to do the above?
Regards,
I wonder what is the best/correct way to dynamically set the fields of a form? I normally do the following:
List<FormItem> items = new ArrayList<FormItem>();
items.add(formItem_1);
items.add(formItem_2);
myForm.setItems(items.toArray(new FormItem[0]));
Is there a better way to do the above?
Regards,