Re: shared models - rules

2013-02-23 Thread grazia
Made it, CompoundPropertyModels, used correctly, made things work. On Fri, Feb 22, 2013 at 6:49 PM, Grazia Russo Lassner grazia.russolass...@gmail.com wrote: THank you for the suggestion. It prints the MyClass object but nothing has ben set. Not even the converter of the AUtoCompleteTextFiled

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
On Fri, 22 Feb 2013 12:42:14 -0800 (PST) grazia grazia.russolass...@gmail.com wrote: Say I have a page with several components all sharing the same model; what are the rules of thumb to make sure the same model gets updated byt the different components on the page ? If you only ever pass

Re: shared models - rules

2013-02-22 Thread grazia
If the form contains a panel, and that panels contains a textfield, and all share the same IModelMyClass, this is what I see: the textField model gets updated, but not the panel's model and not the form's model. It seems I am missing something with the panels ... it is as if they were some sort

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
On Fri, 22 Feb 2013 13:23:20 -0800 (PST) grazia grazia.russolass...@gmail.com wrote: If the form contains a panel, and that panels contains a textfield, and all share the same IModelMyClass, this is what I see: the textField model gets updated, but not the panel's model and not the form's

Re: shared models - rules

2013-02-22 Thread grazia
public class RolesAppointment extends MyPage { private final IModelMyClass personnelModel = new CompoundPropertyModelMyClass(new MyClass()) ; final ListString rolesList = new ArrayListString(); public RolesAppointment() { createComponents(); } private void

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
form.add(new Button(appointButton) { public void onSubmit() { System.out.println(HERE = + getModelObject() ); -- whatever it is the choice in the autocomplete which is within the MyPersonnelPanel this is always null } I didn't look

Re: shared models - rules

2013-02-22 Thread grazia
THank you for the suggestion. It prints the MyClass object but nothing has ben set. Not even the converter of the AUtoCompleteTextFiled is being called ... I cannot figure out why ... On Fri, Feb 22, 2013 at 5:08 PM, duesenklipper [via Apache Wicket] ml-node+s1842946n4656705...@n4.nabble.com