setResponsePage(getPage()) or setResponsePage(getPage())

On 4/11/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> setResponsePage(this)
>
>  will send a redirect to the current page
>
>  Martijn
>
>
>  On 4/11/08, Milan Křápek <[EMAIL PROTECTED]> wrote:
>  > Thanks for quick response. But I am not sure, that this what I want. I 
> think it will need a little bit more description.
>  >
>  >  As I said I have table where I listed some objects from database. I have 
> there link which creates new modal window. But I do not give any model to 
> this modal window. In this modal window there is a form which I fill and with 
> the filled parameters I create a new object that I store to database. Than I 
> close the modal window.
>  >
>  >  So in the modal window object I have not any model (ListView or 
> DataTable) that can be refreshed. So I need to refresh the whole parent page.
>  >
>  >  On wiki I found some example:
>  >
>  >  modalWindow.setWindowClosedCallback(new WindowClosedCallback(){
>  >         private static final long serialVersionUID = 1L;
>  >
>  >         @Override
>  >         public void onClose(AjaxRequestTarget target){
>  >                 target.addComponent(parentPage);
>  >         }
>  >  });
>  >
>  >  But I dont know how to create the parentPage object and what is the type 
> of it. I tried to create new page just something like
>  >
>  >  parentPage = new Mypage();
>  >
>  >  but of course this does not work. Than I try this
>  >
>  >  target.addComponent(new WebMarkupContainer("myPage", new Model(new 
> MyPage())));
>  >
>  >  this does not wokrs too. Please any other idea how to reload the WHOLE 
> page.
>  >
>  >  Best regards
>  >
>  >
>  >  Milan
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
> --
>  Buy Wicket in Action: http://manning.com/dashorst
>  Apache Wicket 1.3.2 is released
>  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

Reply via email to