Hi, The behavior fires the Ajax call only when the same page instance is loaded in two tabs/windows. That is both tabs should have the same pageId in the url query string, e.g. ?3&another=parameter, here '3' is the page id.
On Fri, May 10, 2013 at 11:03 AM, iamrakesh <[email protected]>wrote: > Hi, > > I've a WicketPage implementation to which I've added > AjaxNewWindowNotifyingBehavior, as shown below > > public class MyPage extends WicketPage { > public MyPage() { > add(new AjaxNewWindowNotifyingBehavior() { > protected void onNewWindow(AjaxRequestTarget target) { > setResponsePage(NotSupportedPage.class); > } > }); > } > ..... > } > > but onNewWindow() never gets called when I open a link in a new Tab/Window, > I checked the generated value for 'window.name' it is same for both > tabs/windows. > > Is there anything else I need to do? > > Regards, > Rakesh.A > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Problem-with-window-name-generated-using-AjaxNewWindowNotifyingBehavior-in-wicket-6-5-0-tp4658703.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov Wicket Training & Consulting http://jWeekend.com <http://jweekend.com/>
