Aren't you missing a : modalContentWindow.show(target)
in the onClick callback ? 2010/1/25 Chris Colman <chr...@stepaheadsoftware.com> > Searching Nable shows this question has been asked before but there none > of the solutions proposed there work for me. > > I have a link in PanelA that, when clicked, should cause PanelB to > display in the same ModalWindow (PanelB replaced PanelA). > > The onClick event handler does something like the following: > > add > ( > new AjaxLink("selectionLink") > { > public void onClick(AjaxRequestTarget target) > { > PanelB panelB = new > PanelB(modalContentWindow.getContentId()); > > modalContentWindow.setContent(panelB); > modalContentWindow.setTitle("Hi, I'm PanelB"); > target.addComponent(panelB); > } > } > ); > > When the link is pressed the panel A content disappears (popup content > goes blank) but the panel B content does not appear. > > Should this work or have I missed something? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >