wicket - Open new Tab when button is clicked -


using wicket want open new tab when button or link clicked, how can achieve it?

what have managed open in pop this:

 popupsettings popupsettings = new  popupsettings("popuppagemap").setleft(0).setheight(500).setwidth(500).setheight(0);      // popup example final link<void> setpopupsettings = new bookmarkablepagelink<void>("searchbtn", homepage.class)    .setpopupsettings(popupsettings); 

but opens in new window.

no problem open link in new tab: add 'target="_blank"' link.

final link<void> link = new bookmarkablepagelink<void>("link", homepage.class){     @override     protected void oncomponenttag(componenttag tag) {         super.oncomponenttag(tag);         tag.put("target", "_blank");     } }; add(link); 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -