Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
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.netwrote:

 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!




Re: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
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!
 
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
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!
  
  
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
There it was:

http://old.nabble.com/Ajax-%2B-DropDownChoice-%2B-ModalWindow-td23292894.html#a23298945

   script language=javascript type=text/javascript
   jQuery(document).ready(function(){
   if (typeof Wicket != 'undefined' 
Wicket.*Window*)
   Wicket.*Window*.unloadConfirmation =
false;
   });
   /script

2010/2/3 nino martinez wael nino.martinez.w...@gmail.com

 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!
 
 





Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
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!


   
  
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
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!
 
 

   
  
 



Using a DataTable inside a Modal window

2010-02-02 Thread Dennis Buttery
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!