Re: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?
Thanks a lot for your information. I have modified my application to use frameless implementation, and the problem went away. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4408435.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: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?
Example of monkey patching wicket 1.3 javascript to support dom find/replacement across iFrames and window.opener, maybe this will give you some ideas. https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/pages/rm3.js#L17 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4327268.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: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?
Hi, Why did you choose iframes ? Using plain div backed by Wicket's Panel will make it much easier to manage. The problem is that when the Ajax response is sent to the browser Wicket uses Wicket.$(oldComponentId) (which delegates to document.getElementByid(oldComponentId)) to find the component to replace. In your case you need something like: document.getElementById('rightFrameId').contentWindow.document.getElementById(oldComponentId). You can try to make it work by monkey-patching Wicket.$() on the fly. With target.prependJavaScript execute some JS code that backs up the old impl of Wicket.$ and replaces it with the one that works with iframes. With appendJavaScript revert that temporary change. Good luck! On Wed, Jan 25, 2012 at 3:38 AM, michen wrote: > More specifically, I would like to refresh a grid table in my frame2 after > submit button in frame1 is clicked. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4326091.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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?
More specifically, I would like to refresh a grid table in my frame2 after submit button in frame1 is clicked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4326091.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
How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?
Hi there, I am building a Wicket application with a frame layout, where leftFrame contains a form with an AjaxSubmit button displaying user search criteria, and rightFrame shows the search result. How can I code my onSubmit call for my AjaxSubmit button to refresh the rightFrame to show the content after performing the search? Your help is greatly appreciated. Thanks -min -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4326014.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