I have a page where I switch between panels by making one of them visible and using a radio button as following:
radioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() { /** * */ private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { if (panelSelection.equals(currentPanelSelection)) { return; } if (panelSelection.equals(PanelSelection.AGENTS)) { ldapPanel.setVisible(false); agentPanel.setVisible(true); } else { ldapPanel.setVisible(true); agentPanel.setVisible(false); } target.add(ldapPanel); target.add(agentPanel); target.add(FsUserBrowsePage.this); currentPanelSelection = panelSelection; } As you can see that page is added to the target. But this causes the "confirm navigation" type popup dialog box in all the browsers. If I don't include the page to the target then my changes do not happen. Because of the frame work developed here, it seems that I would just have to add the page to the target. I have tried adding following lines to the above method but they do not help: target.prependJavaScript("Wicket.Window.unloadConfirmation = false;"); target.add(ldapPanel); target.add(agentPanel); target.add(FsUserBrowsePage.this); target.getHeaderResponse().renderOnEventJavaScript(target, event, javascript); I had a similar problem with a ModalWindow but target.prependJavaScript("Wicket.Window.unloadConfirmation = false;"); worked. But nothing seems to work with the above problem. Can some one please help avoid the "confirm navigation" popup. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Confirm-Navigation-pop-up-dialog-box-tp4664778.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org