<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wicket: how to write a reusable modal window popup</title>
	<atom:link href="http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/feed" rel="self" type="application/rss+xml" />
	<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 10:58:38 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Colman</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-16966</link>
		<dc:creator>Chris Colman</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:52:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-16966</guid>
		<description>Hmmm, I&#039;m actually overriding the style of the modal form by injecting some different, but standard across the application, CSS to be used by the form. I should be able to override ModalWindow once and create a StyledModalWindow which handles the styling and ALL modals in the app use that instead of ModalWindow.

Then I could possibly make StyledModalWindow&#039;s constructor take a &#039;ContentPanel&#039; base class as the content panel. All content panels then simply extend from ContentPanel (directly or indirectly). Maybe the ContentPanel base class could have some default onSubmit onCancel behaviour.

Hmmm, nice.</description>
		<content:encoded><![CDATA[<p>Hmmm, I&#8217;m actually overriding the style of the modal form by injecting some different, but standard across the application, CSS to be used by the form. I should be able to override ModalWindow once and create a StyledModalWindow which handles the styling and ALL modals in the app use that instead of ModalWindow.</p>
<p>Then I could possibly make StyledModalWindow&#8217;s constructor take a &#8216;ContentPanel&#8217; base class as the content panel. All content panels then simply extend from ContentPanel (directly or indirectly). Maybe the ContentPanel base class could have some default onSubmit onCancel behaviour.</p>
<p>Hmmm, nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daan</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-16962</link>
		<dc:creator>Daan</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:20:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-16962</guid>
		<description>Hi Chris,

Good question!
You can easily create a simple framework with a &#039;generic&#039; Modal Window. You probably do not even need a custom Modal Window, as you can add your MyContentPanel with abstract methods directly to the Modal Window.

-- Daan</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>Good question!<br />
You can easily create a simple framework with a &#8216;generic&#8217; Modal Window. You probably do not even need a custom Modal Window, as you can add your MyContentPanel with abstract methods directly to the Modal Window.</p>
<p>&#8211; Daan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Colman</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-16953</link>
		<dc:creator>Chris Colman</dc:creator>
		<pubDate>Fri, 22 Jan 2010 08:15:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-16953</guid>
		<description>Let&#039;s say we had a need for another modal window. Does this mean that we need to create a new MyModalWindow.java and new MyContentPanel and the corresponding .html for each.

i.e. 4 new artifacts for one new single ModalWindow.

Is it possible to somehow create a framework whereby we only need 2 new wicket artifacts to implement a new modal window i.e. MyContentPanel.java and MyContentPanel.html?</description>
		<content:encoded><![CDATA[<p>Let&#8217;s say we had a need for another modal window. Does this mean that we need to create a new MyModalWindow.java and new MyContentPanel and the corresponding .html for each.</p>
<p>i.e. 4 new artifacts for one new single ModalWindow.</p>
<p>Is it possible to somehow create a framework whereby we only need 2 new wicket artifacts to implement a new modal window i.e. MyContentPanel.java and MyContentPanel.html?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confluence: Altes wiki</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-14513</link>
		<dc:creator>Confluence: Altes wiki</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:57:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-14513</guid>
		<description>&lt;strong&gt;Wissen.wicket.linkListe...&lt;/strong&gt;

Blogs   A Wicket Diary...</description>
		<content:encoded><![CDATA[<p><strong>Wissen.wicket.linkListe&#8230;</strong></p>
<p>Blogs   A Wicket Diary&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confluence: jspwiki</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-14261</link>
		<dc:creator>Confluence: jspwiki</dc:creator>
		<pubDate>Fri, 30 Oct 2009 19:52:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-14261</guid>
		<description>&lt;strong&gt;Wissen.wicket.linkListe...&lt;/strong&gt;

Blogs   A Wicket Diary...</description>
		<content:encoded><![CDATA[<p><strong>Wissen.wicket.linkListe&#8230;</strong></p>
<p>Blogs   A Wicket Diary&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confluence: jspwiki2</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-14258</link>
		<dc:creator>Confluence: jspwiki2</dc:creator>
		<pubDate>Fri, 30 Oct 2009 18:06:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-14258</guid>
		<description>&lt;strong&gt;Wissen.wicket.linkListe...&lt;/strong&gt;

Blogs   A Wicket Diary...</description>
		<content:encoded><![CDATA[<p><strong>Wissen.wicket.linkListe&#8230;</strong></p>
<p>Blogs   A Wicket Diary&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daan</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-13916</link>
		<dc:creator>Daan</dc:creator>
		<pubDate>Fri, 23 Oct 2009 19:14:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-13916</guid>
		<description>Hi Buddyprav,

Please see comment #23 for a method to redirect to another page. Let me know if it works for you.

- Daan</description>
		<content:encoded><![CDATA[<p>Hi Buddyprav,</p>
<p>Please see comment #23 for a method to redirect to another page. Let me know if it works for you.</p>
<p>- Daan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buddyprav</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-13873</link>
		<dc:creator>buddyprav</dc:creator>
		<pubDate>Wed, 21 Oct 2009 14:04:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-13873</guid>
		<description>Hi Daan,

This demo is pretty good.But while working with different pages.Giving browser specific message &quot;Are you sure you want to navigate away from this page?&quot;. Could you please gimme hint how to avoid this alert message.

regards,
Buddyprav</description>
		<content:encoded><![CDATA[<p>Hi Daan,</p>
<p>This demo is pretty good.But while working with different pages.Giving browser specific message &#8220;Are you sure you want to navigate away from this page?&#8221;. Could you please gimme hint how to avoid this alert message.</p>
<p>regards,<br />
Buddyprav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-13395</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 16 Sep 2009 07:44:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-13395</guid>
		<description>Ohhh yaeee I found it....

I added .setPageMapName(&quot;zzz&quot;) to the ModalWindows now it works!!!
But I dont know what setPageMapName really does, only it got somthin to do when u got more then one Modal. Anyone knows and can explain???</description>
		<content:encoded><![CDATA[<p>Ohhh yaeee I found it&#8230;.</p>
<p>I added .setPageMapName(&#8221;zzz&#8221;) to the ModalWindows now it works!!!<br />
But I dont know what setPageMapName really does, only it got somthin to do when u got more then one Modal. Anyone knows and can explain???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup/comment-page-1#comment-13381</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 15 Sep 2009 11:04:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-13381</guid>
		<description>Hi Daan,

I got some strange behavior.. I have a page displaying a panel where an hibernate Entity A is shown for editing. This entity also got a OneToMany relation to another Entity B (load this into an ArrayList), so i have to put this in an ListView. In this ListView i put Links to open a ModalWindow (each link for one List entry). In this ModalWindow you can edit Entity B which got an compound PrimaryKey. To search for one of its parts i use a second ModalWindow. This works fine the Window opens i do some searching, chose one, the window is closed an the field is set in the first Modal. Back on the First modal i may do some other entries to Entity A... so now i hit ok and the onOk(AjaxRequestTarget target, AEntity aEntity); is called, which adds the entity to the ArrayList... now it gets strange when i syser.out this ArrayList at this moment everthing is fine the entity is added, but then it calls close(target) which lead to the setWindowClosedCallback... where i repaint the ListView.. and here the new Entry in the  ArrayList is missing....

I dont know whats wrong here an where the entry is gone.. Any idea? Is it some Wicket problem or my fault???

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Daan,</p>
<p>I got some strange behavior.. I have a page displaying a panel where an hibernate Entity A is shown for editing. This entity also got a OneToMany relation to another Entity B (load this into an ArrayList), so i have to put this in an ListView. In this ListView i put Links to open a ModalWindow (each link for one List entry). In this ModalWindow you can edit Entity B which got an compound PrimaryKey. To search for one of its parts i use a second ModalWindow. This works fine the Window opens i do some searching, chose one, the window is closed an the field is set in the first Modal. Back on the First modal i may do some other entries to Entity A&#8230; so now i hit ok and the onOk(AjaxRequestTarget target, AEntity aEntity); is called, which adds the entity to the ArrayList&#8230; now it gets strange when i syser.out this ArrayList at this moment everthing is fine the entity is added, but then it calls close(target) which lead to the setWindowClosedCallback&#8230; where i repaint the ListView.. and here the new Entry in the  ArrayList is missing&#8230;.</p>
<p>I dont know whats wrong here an where the entry is gone.. Any idea? Is it some Wicket problem or my fault???</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
