-
FEATURED COMPONENTS
First time here? Check out the FAQ!
<window id="loginwin" title="Login Window" border="normal" width="50%"
use="tw.com.twm.ntportal.control.LoginWindow" >
in my "LoginWindow" (my control class)
I know to use Executions.sendRedirect("conference.zul"); to redirect to another page.
But how can I keep my older page , and just open a new window ?
Use Execution.sendRedirect(java.lang.String uri, java.lang.String target)
Parameters:
uri - the URI to redirect to, or null to reload the same page
target - the name of the browser window that send-redirect will load the sepcified URI, or null if the current browser window is used.
e.g. Excutions.getCurrent().sendRedirect("conference.zul", "New Window")
thank you for answer , I learn from ZK knowledge from you. :)
But my requirement is that, the "conference.zul" should like popup under the same page.
I had try about win.doPopup, but when my mouse move out the page, and just click, the conference.zul page is disappear !
This is not what I want :(
I wnat the popup window more like a "normal" window.
did you try Executions.createComponents( file, parent, params ), like this?:
try { win = (Window)Executions.createComponents( filename, null, params ) ; win.addEventListener( "onClose", this ) ; win.setParent( event.getTarget() ) ; win.doOverlapped() ; } catch(Exception exc) { logger.error( "onOpenWindow:: error opening window", exc ) ; error = exc.getMessage() ; if ( win != null ) { win.detach() ; } }
Asked: 2009-07-03 08:39:19 +0800
Seen: 885 times
Last updated: Jul 05 '09