You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by michen <mi...@zynga.com> on 2012/01/25 02:07:35 UTC
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to refresh frame2 with an Ajax submit button in frame1 for
a page using frameset?
Posted by michen <mi...@zynga.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to refresh frame2 with an Ajax submit button in frame1 for
a page using frameset?
Posted by "robert.mcguinness" <ro...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to refresh frame2 with an Ajax submit button in frame1 for a
page using frameset?
Posted by Martin Grigorov <mg...@apache.org>.
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 <mi...@zynga.com> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to refresh frame2 with an Ajax submit button in frame1 for
a page using frameset?
Posted by michen <mi...@zynga.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org