Any example of using DataView with Forms?

2007-12-07 Thread Java Programmer
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

Re: Any example of using DataView with Forms?

2007-12-07 Thread Java Programmer
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: