I figured it out.

For who is interested:

The first getPage().addOrReplace replaced the middlepanel which was also the current changepasswordpanel. The second call on getParent() can only yield null because the panel in question was already swapped.

So there are two valid solutions:

first use the var-arg:

getPage().addOrReplace( new MiddleInfoPanel("middle"),new LoginPanel("right"));

second, swap first the right panel, then the middle panel

getPage().addOrReplace(new LoginPanel("right"));
getPage().addOrReplace(new MiddleInfoPanel("middle"));

both solutions works and my faith in wicket is saved

silly me

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

Reply via email to