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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo