Aaron J. Garcia <agarcia <at> rentec.com> writes: > > Hi Martin & Sven, > > Thanks for your replies! > > I ended up sending getPage().getPageId(). Is the better practice to use a > PageReference? If so, I'll change my code to use that instead. > > Secondly, I had no idea that you could use a Panel for the contents of a > ModalWindow. I always thought you needed to use setPageCreator() of the > ModalWindow class, and provide a page. > > It would make things cleaner if I could just use a Panel instead. Can you > point me to an example?
The link Martin posted has a setContent() method for the ModalWindow that takes a panel. So I have a different question: When would you use a Page inside a ModalWindow, instead of a Panel? It seems like a Panel would be a better practice in most circumstances... -- Aaron > Thanks again! > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org