a) wicket supports embedded forms and will handle that for you.
b) there is no need to have the form inside addresspanel, you can have
formcomponents only and then put the addresspanel into a form.

-igor

On Mon, Nov 23, 2009 at 8:37 AM, Arnaud Garcia <arn...@imagemed-87.com> wrote:
> Hello,
>
> Suppose that you have a simple one to one relationship for example:
> Patient has an Address.
> Since an Address can be used somewhere else in the code, for adding a
> new one, you  have to create a simple AdressPanel with a form
> inside...
>
> So, how can I reuse this component in the PatientPanel ? because in
> this Panel I will also have a form, with also a submit button..
> For the model, I think I can do something like
> add(new AddressPanel(new PropertyModel(patientModel,"address"))
>
> but how the form can be merged ?
>
> Thanks for help
>
> Arnaud
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to