On 7/18/07, salmas <[EMAIL PROTECTED]> wrote:
>
>
>
> I am within the right frame of a frameset. The frameset has a tree in the
> left frame. When the user clicks most of the links in the tree I want to
> refresh the right frame. However, sometimes I want to navigate to a
> frameless page (tree gone and show another frame in the app). I don't know
> that I need to do this until I am inside the right frame and check a
> setting. I should do this automatically and not have a user click a link
> or
> something. When I do setResponsePage(MyPage.class);  from within the right
> frame only the right frame refreshes. How can I replace the entire
> frameset
> with MyPage.class?


so you dont want to append target="top" to the link but decide this after
link has been clicked?

toppagerequesttarget implements requesttarget {
  private final Class<? extends Page> pageClass;
  respond(requestcycle rc) {
    rc.getresponse().write("<html><head>window.top.location='
"+rc.urlfor(pageClass);+"';</head></html>");
  }
}

then instead of setResponsePage(MyPage.class) do
getRequestCycle().setRequestTarget(new toppagerequesttarget(MyPage.class);

-igor






Thanks
> --
> View this message in context:
> http://www.nabble.com/navigating-up-from-a-frame-tf4104180.html#a11671602
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to