0

Open new window when click a button

asked 2008-10-15 01:10:18 +0800

hello2222 gravatar image hello2222
103 3

Here is the code:
<p:button label="Open">
<p:attribute name="onClick">
//open a new window ".zul" file
</p:attribute>
</p:button>

How do i open a new window when i click the button?

Thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-10-15 01:16:26 +0800

flyworld gravatar image flyworld
155 3

what do you mean "window" ?
i guess you want a new browser window
try this

Executions.getCurrent().sendRedirect("http://www.zkoss.org","_blank");

link publish delete flag offensive edit

answered 2008-10-15 02:13:00 +0800

hello2222 gravatar image hello2222
103 3

works, thanks.

link publish delete flag offensive edit

answered 2008-10-15 09:48:11 +0800

BMInfo gravatar image BMInfo
48

Executions.createComponents("/myWindow.zul", myParentWindow, myParametersHashMap);

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-10-15 01:10:18 +0800

Seen: 403 times

Last updated: Oct 15 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More