1 Feb 01:55
Cannot detect ModalWindow cancel
Jered Myers <jeredm <at> maplewoodsoftware.com>
2012-02-01 00:55:13 GMT
2012-02-01 00:55:13 GMT
I have a ModalWindow where I need to know if the user saved in the WindowClosedCallback or if they chose to click the X to close the window. To do this in Wicket 1.4, I just set a variable on the page that the ModalWindow gets in the PageCreator and then check the variable in the WindowClosedCallback. When I try this in Wicket 1.5 it doesn't work. My variable retains the value I initialized it to and not the value I updated it to when I submitted the form on the ModalWindow page. I am attaching a quickstart with the 1.5.4 version of Wicket. This is where the bug appears. I updated the POM and a few files to test the same code with 1.4.19 and it works. -- -- Jered Myers
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe <at> wicket.apache.org For additional commands, e-mail: users-help <at> wicket.apache.org
On Wed, Feb 1, 2012 at 3:21 AM, Jenny Brown <jennybrown8 <at> gmail.com> wrote:
> Working on someone else's complex wicket pages can result in a lot of time
> spent hunting for components in the source. What if you could click on an
> item in the web page and jump straight to the line of Java source that
> created it?
>
> The net.ftlines.wicket-source module, plus a couple of plugins, lets you do
> just that. There are three parts - a module for your WicketApplication, a
> Firefox plugin, and an Eclipse plugin.
>
> 1. Wicket module records where in the source code each component is
> constructed and saves it in an HTML attribute.
> 2. Firebug extension displays the html attribute in Firebug's sidebar and
> lets you click to open it in Eclipse. (Chrome extension pending.)
> 3. Eclipse plugin listens for clicks from Firefox and opens the file to
> that line of the Java source.
>
> These three pieces together close the circle from wicket components and
> html rendering, to the browser, and back to the wicket component source,
> speeding work on existing but unfamiliar pages, and making minor wording
> tweaks quick and easy.
>
> For more information and installation, check out
>
RSS Feed