hello,
I have problem with setting Forms on DataView. I have list of Consumer
objects, each consumer has Set of attributes, I wanted to add
DropDownChoice with all attributes, when pressing Add consumer would
get new attribute to its Set, and will be saved in database. Quite
simply but not form me
Oh I did it ...
The previous code need small changes:
Model model = new Model(new AttributeDescriptor());
addAttributeForm.setModel(model);
DropDownChoice attributeDescriptor = new
DropDownChoice(attributeDescriptors, model,
getAttributeDAO().getAllAttributeDescriptors());
and then we can use: