I think the correct explanation is what Igor gave: if contents of modal windows is a panel, and not a page, you can only use Ajax components....
Cheers, Ernesto On Wed, Feb 3, 2010 at 9:58 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > hmm, you might be right.. I remember something about a dropdown box and > onchange. Thats certainly not ajax. > > So either use ajax or instead or forward to another page and the return > back > again. I switched to the latter approach at some point for one project. > > 2010/2/3 Ernesto Reinaldo Barreiro <reier...@gmail.com> > > > Hi Nino, > > > > I do use modal windows where parts of them are replaced via AJAX and I do > > not have that issue... What I think it is happening is > > > > -he is using a non AJAX table and when user navigates the table it > triggers > > a page reload > > -onunload display the confirmation. > > -page is reloaded and modal is hidden and if you reopen it by clicking on > a > > link, it will show the table with the right page. > > > > I think using AJAX to navigate the table would solve the problem.... > > > > Best, > > > > Ernesto > > > > > > On Wed, Feb 3, 2010 at 9:41 AM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > > > I think youre wrong, I vaguely remember something about this. That > modal > > > window complains when contents get's updated. But I might be wrong, > it's > > > been a looong time since I had the problem. It was wicket 1.3 so might > be > > > different now. > > > > > > 2010/2/3 Ernesto Reinaldo Barreiro <reier...@gmail.com> > > > > > > > I guess if you use AJAX you wont get that message if only the table, > or > > > the > > > > contents of the modal are reloaded... I think this event is > associated > > to > > > > the onload of the page which is triggered when you try to navigate > away > > > > from > > > > the page.... but I might be wrong;-) > > > > > > > > Best, > > > > > > > > Ernesto > > > > > > > > On Wed, Feb 3, 2010 at 9:31 AM, nino martinez wael < > > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > > > He probably does, there is a setting with modal window to avoid > > getting > > > > the > > > > > message when using ajax.. Just cant remember it right now. > > > > > > > > > > 2010/2/3 Ernesto Reinaldo Barreiro <reier...@gmail.com> > > > > > > > > > > > Why not use an AJAX enabled version of the table, which does not > > > > triggers > > > > > > page reloads... e.g. AjaxFallbackDefaultDataTable > > > > > > > > > > > > Ernesto > > > > > > > > > > > > On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery < > > > dbutt...@bplglobal.net > > > > > > >wrote: > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > > > I'm trying to get a DataTable to work inside of a Modal > window > > > ... > > > > > > > > > > > > > > I have a DefaultDataTable and is added to a panel which is > used > > > as > > > > > the > > > > > > > content of a modal window. Everything renders properly when > the > > > > modal > > > > > is > > > > > > > opened. The problem starts when the user tries to navigate to > > > > another > > > > > > page > > > > > > > of the table. At that point they get the "Do you want to > > navigate > > > > > > away..." > > > > > > > dialog and if they select 'ok' then the modal closes ... > > > Reopening > > > > > the > > > > > > > modal does put them on the correct page but it is not usable to > > > have > > > > > the > > > > > > > modal close each time navigation to another page is requested. > > > > > > > > > > > > > > So... What is the trick to getting the modal to stay open > and > > > > allow > > > > > > the > > > > > > > user to navigate through the pages of the DataTable? > > > > > > > > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >