Should it be considered a bad design to use callbacks from a modal window? I
use modal windows to edit rows from a grid. On save action I close the modal
window and then call a callback method back in the the calling panel which
makes the grid refresh. Does this approach carry any risk? What
Please file a jira issue and Attach the quickstart. Saves a lot of hunting.
Use the power of jira!
Martijn
On Friday, May 29, 2009, Flavius flav...@silverlion.com wrote:
I put a quickstart build up at http://silverlion.com/tmp2/OutOfMemory.zip.
Just unzip it, change to that dir and run mvn
the problem is the page inside the modal window has a reference to the
outer page - you pass the modal window which has an anonymous close
callback which keeps a reference to the page. so you keep serializing
the entire page with every ajax request as part of the current page.
you dont need the
Thanks Igor. I didn't think about the callback keeping a reference to the
calling page.
I appreciate your help.
igor.vaynberg wrote:
the problem is the page inside the modal window has a reference to the
outer page - you pass the modal window which has an anonymous close
callback which
I put a quickstart build up at http://silverlion.com/tmp2/OutOfMemory.zip.
Just unzip it, change to that dir and run mvn jetty:run and go to
http://localhost:8080/OutOfMemory
It has just one page, one modal window, one border, and one panel.
The steps to repro this are there on the home page.
The sample I posted only has the single page with a link to the ModalWindow.
The modal window keeps a reference to the ModalWindow param passed in
to the constructor. That's only used to close the window when the
AjaxRequestTarget is passed from the AjaxLink.
When the
there is too much going on in the sample you posted. if you want you
can create a quickstart with the minimal amount of code necessary to
reproduce this and i will take a look.
-igor
On Thu, May 28, 2009 at 2:12 PM, Flavius flav...@silverlion.com wrote:
The sample I posted only has the single
make sure you dont keep page references across pages. that may be it.
-igor
On Wed, May 27, 2009 at 1:41 PM, Flavius flav...@silverlion.com wrote:
I ran into an issue where I'm getting an OutOfMemory error using
autocomplete textbox functionality.
I haven't nailed down the root culprit, but