Hi,
On Fri, Feb 12, 2016 at 3:34 PM, Aaron J. Garcia <[email protected]> wrote: > 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... > In some cases I needed the contents of modal to be a page because I wanted to do non-AJAX form summits inside modal... That the only way I know to do that is using a page (which live in an iframe inside modal) -- Regards - Ernesto Reinaldo Barreiro
