Re: close a modal window and setResponsePage

2013-04-02 Thread grazia
Moved the discussion of my issue to here since the problem is not really
setResponsePage, but the callback behavior and how it does not re-read the
model of the modal window: 

http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-td4657672.html



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657685.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: close a modal window and setResponsePage

2013-03-28 Thread grazia
What if one wants to choose whether to redirect to page A or page B ? 
Once the windowClosedCallback is set at modal window creation, how do I
redirect to one place OR another ?
The windowClosedCallback does not seem to lend itself to this. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657629.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: close a modal window and setResponsePage

2013-03-28 Thread Ernesto Reinaldo Barreiro
on onClose (or whatever is called the method) do

onClose(AjaxResquestTarget target) {
   setResponsePage(A or B).
}

On Thu, Mar 28, 2013 at 5:24 PM, grazia grazia.russolass...@gmail.comwrote:

 What if one wants to choose whether to redirect to page A or page B ?
 Once the windowClosedCallback is set at modal window creation, how do I
 redirect to one place OR another ?
 The windowClosedCallback does not seem to lend itself to this.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657629.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Regards - Ernesto Reinaldo Barreiro


close a modal window and setResponsePage

2010-04-28 Thread Fernando Wermus
Hi all,
I have a modal window. There are some image avatars in it, and the user
could click on them. In case the user click it, it should close the modal
window an redirect to antoher page. But, I get the redirected page into the
modal window instead. I am not findind any to solution to this situation.
How come?

myModalWindo.close(target);
getPage().setResponsePage(PaginaAmistades.class);

ps: getPage() returns not the modal window page, but the one which is under.

thanks

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: close a modal window and setResponsePage

2010-04-28 Thread Steve Swinsburg
Hi,

close the modal, then do the setResponsePage in the window closed callback that 
you can provide.

cheers,
Steve



On 29/04/2010, at 7:53 AM, Fernando Wermus wrote:

 Hi all,
I have a modal window. There are some image avatars in it, and the user
 could click on them. In case the user click it, it should close the modal
 window an redirect to antoher page. But, I get the redirected page into the
 modal window instead. I am not findind any to solution to this situation.
 How come?
 
 myModalWindo.close(target);
 getPage().setResponsePage(PaginaAmistades.class);
 
 ps: getPage() returns not the modal window page, but the one which is under.
 
 thanks
 
 -- 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org