Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Igor Vaynberg
something cleaner like:class MiddlemanPanel extends Panel {   private transient IModel myModel;   IModel getModel() {  if (myModel==null) {    myModel=new CompoundPropertyModel(new PropertyModel( super.getModel(), getId()); } return myModel;   }or do this in the constructor instead

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Igor Vaynberg
i think what you need to set on the panel is:new CompoundPropertyModel(new PropertyModel( modelFromParent, this.getId() ))-IgorOn 5/26/06, Ralf Ebert <[EMAIL PROTECTED]> wrote: Hi,> give the panel a model?> that sits inbetween?that's what I'm doing with the overwritten onAttach method. I found noo

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Ralf Ebert
Hi, give the panel a model? that sits inbetween? that's what I'm doing with the overwritten onAttach method. I found no other place to do this, because I want to get the modelobject from the parent compoundpropertymodel and that's not possible in the constructor (because it hasn't been added to

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Johan Compagner
give the panel a model?that sits inbetween?johanOn 5/26/06, Ralf Ebert <[EMAIL PROTECTED] > wrote:Hi,> use the bounded compound property model?> Then the give give the panel a string on which its textfield should be > bound.no, that's not the problem (I think). An example: I have a form with 3panel

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Ralf Ebert
Hi, use the bounded compound property model? Then the give give the panel a string on which its textfield should be bound. no, that's not the problem (I think). An example: I have a form with 3 panels (_same general panel class_, no difference between them). Let's say they are called house, win

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Johan Compagner
use the bounded compound property model?Then the give give the panel a string on which its textfield should be bound.On 5/26/06, Ralf Ebert < [EMAIL PROTECTED]> wrote:Hi,> I want it just like you described it, getting the event without > loosing any form input. But if I don't call Form.process(), I

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Ralf Ebert
Hi, I want it just like you described it, getting the event without loosing any form input. But if I don't call Form.process(), I loose form input, although this should not happen according to your description. I will debug that to see what's happpening... damn, this was my own fault. But now I

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-26 Thread Ralf Ebert
Hi, I don't get what you really want Do you want that a onChange (onClick of a Check component) does a real submit? It only does a "fake" submit and calls your onSelectionChanged method. You shouldn't loose any input because everything is stored in the rawinput of the formcomponents All other

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-24 Thread Johan Compagner
I don't get what you really wantDo you want that a onChange (onClick of a Check component) does a real submit?It only does a "fake" submit and calls your onSelectionChanged method.You shouldn't loose any input because everything is stored in the rawinput of the formcomponents All other formcomponen

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-24 Thread Ralf Ebert
Hi, yes. sometime back we had it working like what you want, but too many users complained that it was not what they wanted so we changed it. unfortunatly, this pushes the values to the model and forces validation. I think something else is not working with my form, because when a field doesn't

Re: [Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-24 Thread Igor Vaynberg
yes. sometime back we had it working like what you want, but too many users complained that it was not what they wanted so we changed it.-IgorOn 5/24/06, Ralf Ebert <[EMAIL PROTECTED]> wrote: Hi,when I use a CheckBox with roundtrip on a form, by default I lose allchanges which have been done by th

[Wicket-user] CheckBox.wantOnSelectionChangedNotifications

2006-05-24 Thread Ralf Ebert
Hi, when I use a CheckBox with roundtrip on a form, by default I lose all changes which have been done by the user in other form components. The only thing which seems to help is calling getForm().process() in the onSelectionChanged method of the checkbox. Is this intentional and should be done i