Dear all, I have been having trouble with a page that is heavy in loading, especially at client locations with low bandwidth. The main problem is that fields that are updated by the user before load has completed are not saved in their edited form.
I have made an attempt to solve this problem with a modal window based on this: http://apache-wicket.1842946.n4.nabble.com/opening-ModalWindow-on-page-load-td3055618.html renderHead has been amended to: public void renderHead(IHeaderResponse response) { response.render(OnDomReadyHeaderItem.forScript(getWindowOpenJavaScript())); response.render(OnLoadHeaderItem.forScript(getCloseJavacript())); } However, a problem with this approach is the modal window can be closed by the user at will. This problem, again, I have sought to resolve by amending the close behavior: private void initialize() { setCloseButtonCallback(new CloseButtonCallback() { @Override public boolean onCloseButtonClicked(AjaxRequestTarget target) { return false; } }); This works fine for modal window's case. However, I now suddenly get this message: "The page is asking you to confirm that you want to leave - data you have entered may not be saved." With the options: Leave Page. Stay on Page. This behavior seems to show up no matter what if a new CloseButtonCallback is implemented. If this behavior were non-present, everything would be fine. I just want to disable user activity in the page before the entire page is loaded. I have looked into using an adaptation of the DisableComponentListener: http://wicket.apache.org/guide/guide/chapter17.html#chapter17_6 But I have thus far failed to see how this can be applied when I am not using Ajax in this instance. Any tips that can please be provided for this task to move forward will be greatly appreciated. Thank you very much in advance. Best regards, J.K. Baltzersen -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/user-activity-disabled-during-page-load-tp4662891.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