How to open new tab in java wicket using code -


i have validate code first after clicking on button need open new page new tab in wicket. used target= "_blank" option did't work me.

once have confirmation, can utilize popupsettings open page on different tab:

popupsettings settings = new popupsettings(); settings.settarget(string.format("'%s'", urlfor(anotherpage.class, null))); ajaxrequesttarget.appendjavascript(settings.getpopupjavascript()); 

update: it's browser though, whether new window or new tab opened:

open url in new tab (and not new window) using javascript


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -