Opening new window in wicket

Sandeep

Can any one please suggest a way to open some pages in a new window in wicket. I am trying to open a new browser window and print using javascript window.print() it content then close and open other and so on after a form is submitted . I am using wicket 1.4.22.

And when i tried it with ModelWindow the window.print() is not printing the model window content but the entire main page.

So i think popupsetting is not suitable for this purpose, and i couldn't find any other option, please help.

Don Roby

For any Link, you can specify PopupSettings, and if you do, the page resulting from clicking that link will be opened in a new window.

There are some examples for this (and other link stuff) which may be helpful. To browse the source code click on the "Source Code" link in the upper right corner.

This is for actually doing it from a click on a link. To do it as a result of a form submission, to trigger a javascript window.print(), and to cycle through multiple invocations of something like this will be more difficult, but this might be useful as a part of your solution.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Wicket - Display a PDF in a new window

From Dev

Window not opening in a new tab

From Dev

opening a link in a new window

From Dev

Opening New Window in Jframe

From Dev

Opening a new terminal window in C

From Dev

Opening new window from ViewModel

From Dev

HTML "mailto:" not opening in new window

From Dev

Opening new window with button in OpenERP

From Dev

Click on link not opening in new window

From Dev

opening new window in PHP not working

From Dev

GUI, JComboBox and opening a new window

From Dev

Opening an SWF file in a new window

From Dev

Wicket why page expires when opening link in new tab?

From Dev

Tweet button opening new window and new tab

From Dev

link opening new window and refreshing current

From Dev

opening a new window based on the current url of the page

From Dev

Opening a new window by clicking <p:commandButton> in JSF

From Dev

Opening a new window with reduced size in grails

From Dev

opening a prism module on new window on a registered region

From Dev

Opening a New Window when Chrome Extension is Uninstalled

From Dev

Opening a new powershell window with a CMD command

From Dev

CakePHP not redirecting after opening new window with JavaScript

From Dev

Portable method of opening a new terminal window?

From Dev

opening a prism module on new window on a registered region

From Dev

Error message when opening new window in Tkinter

From Dev

Error opening a new browser window using javascript

From Dev

Opening a New Window from Unity (Firefox)

From Dev

Opening each link in a each new window

From Dev

opening a new window based on the current url of the page

Related Related

HotTag

Archive