<?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: Repainting only newly-created repeater items via ajax</title>
	<atom:link href="http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/</link>
	<description>A comprehensive guide for Java developers building Wicket-based web applications</description>
	<lastBuildDate>Wed, 07 Jul 2010 23:51:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ivaynberg</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-562</link>
		<dc:creator>ivaynberg</dc:creator>
		<pubDate>Thu, 30 Jul 2009 17:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-562</guid>
		<description>@monika: Based on your table it can be quiet a lot of data. Also based on complexity of the data - you might not want to run the server side code/queries necessary to rebuild that data. Anyways, the point of this article was to demonstrate a partial update to the table, not a partial update to the page which is trivial in Wicket.</description>
		<content:encoded><![CDATA[<p>@monika: Based on your table it can be quiet a lot of data. Also based on complexity of the data &#8211; you might not want to run the server side code/queries necessary to rebuild that data. Anyways, the point of this article was to demonstrate a partial update to the table, not a partial update to the page which is trivial in Wicket.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: monika</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-557</link>
		<dc:creator>monika</dc:creator>
		<pubDate>Tue, 28 Jul 2009 09:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-557</guid>
		<description>A nice tutorial, thanks. However if you want less Javascript magic and more Wicket, then I don&#039;t think you should be doing such a trick to save a few hundred bytes of bandwidth. This blog entry provides a solution for this case:
http://oktech.hu/blog/2009/07/adding-and-removing-rows-in-wicket.html</description>
		<content:encoded><![CDATA[<p>A nice tutorial, thanks. However if you want less Javascript magic and more Wicket, then I don&#8217;t think you should be doing such a trick to save a few hundred bytes of bandwidth. This blog entry provides a solution for this case:<br />
<a href="http://oktech.hu/blog/2009/07/adding-and-removing-rows-in-wicket.html" rel="nofollow">http://oktech.hu/blog/2009/07/adding-and-removing-rows-in-wicket.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-542</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-542</guid>
		<description>For record - maybe I found solution - add them into collection and use fragments for the two different styles of rows.</description>
		<content:encoded><![CDATA[<p>For record &#8211; maybe I found solution &#8211; add them into collection and use fragments for the two different styles of rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-541</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Tue, 30 Jun 2009 14:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-541</guid>
		<description>Note - they cannot be added into the collection of contacts (which works nicely), because they act as subrows - they are little different then the main rows.</description>
		<content:encoded><![CDATA[<p>Note &#8211; they cannot be added into the collection of contacts (which works nicely), because they act as subrows &#8211; they are little different then the main rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-540</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Tue, 30 Jun 2009 14:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-540</guid>
		<description>Hi again, I&#039;m having big problems with refresh.
After adding the rows to dataView (refreshingView in your case), they are displayed correctly. But after F5 (refresh), they disappear. 
I added &#039;expanded&#039; property to model item. And when populating the item (populateItem), I check it. If it is set, I create the new rows with your buildItem method. But as the result, the rows are displayed above the current row, which is logical, but wrong. 
How can the rows be displayed under the current row (with which I work in populateItem method), please?
Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi again, I&#8217;m having big problems with refresh.<br />
After adding the rows to dataView (refreshingView in your case), they are displayed correctly. But after F5 (refresh), they disappear.<br />
I added &#8216;expanded&#8217; property to model item. And when populating the item (populateItem), I check it. If it is set, I create the new rows with your buildItem method. But as the result, the rows are displayed above the current row, which is logical, but wrong.<br />
How can the rows be displayed under the current row (with which I work in populateItem method), please?<br />
Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-539</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Tue, 30 Jun 2009 13:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-539</guid>
		<description>Very nice. But how to get markupId for the remove operation?</description>
		<content:encoded><![CDATA[<p>Very nice. But how to get markupId for the remove operation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Shannon</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-491</link>
		<dc:creator>Matt Shannon</dc:creator>
		<pubDate>Fri, 08 May 2009 06:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-491</guid>
		<description>Nice example, note there is a bug I believe. onSubmit of form, you should create a new contact object and associate it with your form model.  Otherwise, you will continue to re-use the same single contact instance that was supplied on form creation.


I created an ajaxlink to remove that seems to work ...

      add(new AjaxLink(&quot;remove&quot;)
      {
        public void onClick(AjaxRequestTarget target)
        {
          String markupId = ...

          target.prependJavascript(&quot;var item=document.getElementById(&#039;&quot;
            + markupId + &quot;&#039;);Wicket.$(&#039;&quot; + container.getMarkupId()
            + &quot;&#039;).removeChild(item);&quot;);

          contacts.remove(...);
          repeater.remove(...);
        }
      });</description>
		<content:encoded><![CDATA[<p>Nice example, note there is a bug I believe. onSubmit of form, you should create a new contact object and associate it with your form model.  Otherwise, you will continue to re-use the same single contact instance that was supplied on form creation.</p>
<p>I created an ajaxlink to remove that seems to work &#8230;</p>
<p>      add(new AjaxLink(&#8220;remove&#8221;)<br />
      {<br />
        public void onClick(AjaxRequestTarget target)<br />
        {<br />
          String markupId = &#8230;</p>
<p>          target.prependJavascript(&#8220;var item=document.getElementById(&#8216;&#8221;<br />
            + markupId + &#8220;&#8216;);Wicket.$(&#8216;&#8221; + container.getMarkupId()<br />
            + &#8220;&#8216;).removeChild(item);&#8221;);</p>
<p>          contacts.remove(&#8230;);<br />
          repeater.remove(&#8230;);<br />
        }<br />
      });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glenn</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-151</link>
		<dc:creator>glenn</dc:creator>
		<pubDate>Sun, 16 Nov 2008 12:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-151</guid>
		<description>I found this link as helpfulon this. I think I see what i need..
http://donteattoomuch.blogspot.com/2008/04/partial-ajax-update-capable-list-view.html</description>
		<content:encoded><![CDATA[<p>I found this link as helpfulon this. I think I see what i need..<br />
<a href="http://donteattoomuch.blogspot.com/2008/04/partial-ajax-update-capable-list-view.html" rel="nofollow">http://donteattoomuch.blogspot.com/2008/04/partial-ajax-update-capable-list-view.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivaynberg</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-132</link>
		<dc:creator>ivaynberg</dc:creator>
		<pubDate>Fri, 07 Nov 2008 22:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-132</guid>
		<description>@Jeff: It should be possible albeit a little harder. You will have to iterate over all existing items, see which ones have been removed and added and spit out javascript to synchronize server with client. Component#hasBeenRendered() can come in handy when figuring out which items have been left over from the previous request.</description>
		<content:encoded><![CDATA[<p>@Jeff: It should be possible albeit a little harder. You will have to iterate over all existing items, see which ones have been removed and added and spit out javascript to synchronize server with client. Component#hasBeenRendered() can come in handy when figuring out which items have been left over from the previous request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/comment-page-1/#comment-131</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Fri, 07 Nov 2008 21:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=252#comment-131</guid>
		<description>Great example!  Could this be done with a RefreshingView and an AjaxLink?</description>
		<content:encoded><![CDATA[<p>Great example!  Could this be done with a RefreshingView and an AjaxLink?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
