Re: Ajax-refreshing parent page from modal window with Page content
Alright, It worked for me using nested Panel-based modal windows. I had a problem with nested forms inside the modal windows, and one of these forms required setting it multipart. Also, I needed to move the modal window divs inside the forms for all nested modal windows and forms. Hopefully this will help someone :) Again, thanks for pointing me in the right direction Martin! Thanks, Lunchbox -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-refreshing-parent-page-from-modal-window-with-Page-content-tp3765286p3768298.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
Ajax-refreshing parent page from modal window with Page content
Hi all, This question has been asked here several times before but there is really no satisfactory answer. I have a modal window using PageCreator, and I need to ajax-refresh some components on the parent page from where the modal window is opened, when it is closed. I'm have a markup container on the parent page which I add to the AjaxRequestTarget when closing the modal window from an ajax link. However, when the modal window uses a PageCreator, I see from the Javascript console it will not find the container, probably because the container lives in a separate Document. When the modal window uses a Panel instead of Page, it works correctly. Here is the error you get when using a Page: ERROR: Component with id [[container4]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. I need a Page since the modal window will contain other modal windows. Usually the proposed solution is to add container.setOutputMarkupId(true); this is indeed a requirement but it will simply not help when using a Page (instead of Panel) for the modal window. *Please, how can I get the parent page's container ajax-refreshed when closing the modal window (which contains a Page)?* Thank you, Lunchbox Please see: http://apache-wicket.1842946.n4.nabble.com/modal-window-with-iframe-ajax-refresh-on-parent-page-td1878881.html http://apache-wicket.1842946.n4.nabble.com/Updating-Main-Page-From-Modal-Using-AJAX-td1874542.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-refreshing-parent-page-from-modal-window-with-Page-content-tp3765286p3765286.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
Re: Ajax-refreshing parent page from modal window with Page content
Hi Martin, Thank you for your reply. I cannot recall what problem there was nesting Panel-based modal windows, but there was something :( Let me try that solution -- I'll get right back with my findings for any extra advice. A small POC seemed to work OK though. Thanks, Lunchbox -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-refreshing-parent-page-from-modal-window-with-Page-content-tp3765286p3765550.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
Re: Ajax-refreshing parent page from modal window with Page content
Hi again Martin, I tried using Panels now, it seems I get some other problem now: 78Wicket.Ajax: Wicket.Ajax.Call.submitFormById: Trying to submit form with id 'form3b' that is not in document. This is not the problem I ran into before though :[ I'm finished for today so I'll have to get back to this tomorrow. But thanks for your advice, and hopefully you will have some time tomorrow to check my progress :) Best regards, Lunchbox -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-refreshing-parent-page-from-modal-window-with-Page-content-tp3765286p3765615.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