Hi,

I think the best solution would be replace modal window's content instead of closing it and opening a new one. Considering your example you should completely remove notifierWindow. The new code for HomePage would be like this:

public HomePage(final PageParameters parameters) {

        final ModalWindow homeWindow = new ModalWindow("modal");
final FeedbackPanel notifier = new FeedbackPanel(homeWindow.getContentId());
        notifier.setOutputMarkupId(true);

final HomePanel homePanel = new HomePanel(homeWindow.getContentId()) {

            @Override
            public void performAction(AjaxRequestTarget target) {
                replaceWith(notifier);
                target.addComponent(notifier);
                //homeWindow.close(new AjaxRequestTarget(getPage()));
               // notifierWindow.show(target);

            }
        };
//the same code
....


Hope this could help you.

Hi,

I uploaded quickstart that reproduces error to github at
https://github.com/iref/modaltest .

2011/11/2 Andrea Del Bene<adelb...@ciseonweb.it>

Hi,

can you reproduce your problem in a separate project and upload it
somewhere? It would help much to understand if this problem is a bug and to
find a solution.

------------------------------**------------------------------**---------
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.org<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