maybe a behavior
final AbstractDefaultAjaxBehavior behaviour = new
AbstractDefaultAjaxBehavior(){
@Override
protected void respond(AjaxRequestTarget target) {
}
@Override
public void renderHead(IHeaderResponse response) {
response.renderJavascript( "window.open ('"+
getRequestCycle().urlFor(TestPage.class,null) +"','mywindow'); " , "test");
}
};
You must change the getRequestCycle).urlFor to you page. The second
parameter takes a Parameters object.
You can also implement IHeaderContributor and add a javascript there.
--
View this message in context:
http://www.nabble.com/Help%3A-Open-file-in-new-window-if-specified.-----SEC%3DUNCLASSIFIED--tp24402604p24404066.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]