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 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 have a new problem :) What I
want to do is have a form component with a CompoundPropertyModel. On
this form is a panel and on this panel for example a textfield. When I
use this, the property looked up by the property resolver is the id of
the textfield, but i want it to look up panelid.textfieldid. What I
did was override the onAttach method of the panel with:

        protected void onAttach() {
                this.setModel(new CompoundPropertyModel( this.getModelObject()));
        }

which is kind of stupid because it resets all the raw inputs. Is there
a correct way to achieve property resolving like described?

Ralf


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmdlnk&kid7521&bid$8729&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to