The data is in the form's model.

I guess the easiest way to pass it to the rest of the Page is by using
Wicket events:
in YourModalWindowForm#onSubmit(AjaxRequestTarget) do:

MyDomainObject pojo = getModelObject();
send(getPage(). Broadcast.DEPTH, new YourSpecialEventPayload(target, pojo));

This way the Page itself and any component in it will be notified at
Component#onEvent(IEvent).
Check
https://ci.apache.org/projects/wicket/guide/7.x/single.html#_wicket_events_infrastructure
for more.

On Tue, Sep 4, 2018 at 10:41 AM JavaTraveler <meteor.ei...@gmail.com> wrote:

> I see. Thank you. I did that.
> But as I understand it, the content of my modalWindow is another page :
>                   modalWindow.setContent(new
> AjouterArticle(modalWindow.getContentId());
>
> But then how do I get the data from this modal window ?
> I'm sorry if my questions are stupid. But I don't understand.
>
> Thank you in advance
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to