<?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: Struts 2 AJAX Tutorial &#8211; Dojo Autocompleter Example</title>
	<atom:link href="http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/</link>
	<description>The software development weblog of Benjamin McCann.</description>
	<lastBuildDate>Wed, 17 Mar 2010 12:45:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-19827</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 27 Jan 2010 09:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-19827</guid>
		<description>Delph, you cannot directly extend from two packages. Extending from json-default should be sufficient in this example.  If I remember correctly, json-default extends from struts-default.</description>
		<content:encoded><![CDATA[<p>Delph, you cannot directly extend from two packages. Extending from json-default should be sufficient in this example.  If I remember correctly, json-default extends from struts-default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Delph</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-19825</link>
		<dc:creator>Delph</dc:creator>
		<pubDate>Wed, 27 Jan 2010 08:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-19825</guid>
		<description>Hi,
I&#039;m newwbie and I have a question.
The default package in struts.xml already extends struts-default, so how can I extends json-default too??

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m newwbie and I have a question.<br />
The default package in struts.xml already extends struts-default, so how can I extends json-default too??</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Waqar Baig</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-19755</link>
		<dc:creator>Muhammad Waqar Baig</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-19755</guid>
		<description>Anusha: Gilbert:
You would require a little knowledge of Dojo &#039;Topics&#039; and AJAX enabled struts tags (like div etc). Rest is pretty simple.
For a demo, you can follow the example given at:

http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html.

Like this tutorial, that example was also made in Struts 2.0.x and needs some fixing to work with Struts 2.1.4+ libraries. Fortunately, someone has commented on the example given steps in making the example up-to-date. Should get you up and running in no time. I got that example working for me with Struts 2.1.6 (just in case any one needs a working code).

Regards.</description>
		<content:encoded><![CDATA[<p>Anusha: Gilbert:<br />
You would require a little knowledge of Dojo &#8216;Topics&#8217; and AJAX enabled struts tags (like div etc). Rest is pretty simple.<br />
For a demo, you can follow the example given at:</p>
<p><a href="http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html" rel="nofollow">http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html</a>.</p>
<p>Like this tutorial, that example was also made in Struts 2.0.x and needs some fixing to work with Struts 2.1.4+ libraries. Fortunately, someone has commented on the example given steps in making the example up-to-date. Should get you up and running in no time. I got that example working for me with Struts 2.1.6 (just in case any one needs a working code).</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilbert Grape</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-19383</link>
		<dc:creator>Gilbert Grape</dc:creator>
		<pubDate>Mon, 18 Jan 2010 13:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-19383</guid>
		<description>as am starter in Ajax(with Struts), please help me with loading a select box, based on the radio button selected, can any body send the sample code to do this..?</description>
		<content:encoded><![CDATA[<p>as am starter in Ajax(with Struts), please help me with loading a select box, based on the radio button selected, can any body send the sample code to do this..?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anusha</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-18112</link>
		<dc:creator>Anusha</dc:creator>
		<pubDate>Fri, 18 Dec 2009 05:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-18112</guid>
		<description>My query is similar to that of julloa

I want to load classes based on the selection of department &amp; then subclasses based on class selection. Can someone please mail me a smaple code to do this?</description>
		<content:encoded><![CDATA[<p>My query is similar to that of julloa</p>
<p>I want to load classes based on the selection of department &amp; then subclasses based on class selection. Can someone please mail me a smaple code to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Waqar Baig</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-17993</link>
		<dc:creator>Muhammad Waqar Baig</dc:creator>
		<pubDate>Tue, 15 Dec 2009 10:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-17993</guid>
		<description>You&#039;re most welcome. Just trying to give something back.</description>
		<content:encoded><![CDATA[<p>You&#8217;re most welcome. Just trying to give something back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-17865</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 11 Dec 2009 21:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-17865</guid>
		<description>Thanks Muhammad.  I really appreciate you sharing this knowledge.</description>
		<content:encoded><![CDATA[<p>Thanks Muhammad.  I really appreciate you sharing this knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Waqar Baig</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-17850</link>
		<dc:creator>Muhammad Waqar Baig</dc:creator>
		<pubDate>Fri, 11 Dec 2009 11:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-17850</guid>
		<description>Oh another thing:

5. Add (preload=&quot;false&quot;) to the autocompleter tag since it is true by default and causes the action to be carried out once on page load only.

I&#039;ve checked and you&#039;ll need to carry out points 2. &amp; 5. to get it to work fully.</description>
		<content:encoded><![CDATA[<p>Oh another thing:</p>
<p>5. Add (preload=&#8221;false&#8221;) to the autocompleter tag since it is true by default and causes the action to be carried out once on page load only.</p>
<p>I&#8217;ve checked and you&#8217;ll need to carry out points 2. &amp; 5. to get it to work fully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Waqar Baig</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-17849</link>
		<dc:creator>Muhammad Waqar Baig</dc:creator>
		<pubDate>Fri, 11 Dec 2009 11:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-17849</guid>
		<description>Very well written, simple but comprehensive article to guide newbies like me introducing many concepts in the way. Highly commendable effort. Took me a couple of days to get all of it working on Struts 2.1.6 (except for the DAO part which I omitted on purpose). Want to provide a little heads-up for people attempting this on newer versions of struts2 to save them from some possible frustration.

0. As pointed out by Benjamin, this example uses the jsonplugin.jar instead of the new json-lib (using which might require another tutorial).
1. Omit (theme=&quot;ajax&quot;) from autocompleter tag in the .jsp file. It is no longer required.
2. Add (loadOnTextChange=&quot;true&quot;) to the tag. The documentation for autocompleter says that this attribute is &#039;true&#039; by default but my experience and experimentation has shown otherwise.
3. Move (method=&quot;getCities&quot;) from the autocompleter tag in the .jsp file to action definition in struts.xml.
4. Also, since 2.0.9, key:value pair order has been reversed and value comes first now, so change the (json.put(Id, CityName)) statement to (json.put(CityName, Id)).

With this working now, I&#039;ll look into adapting to json-lib which is a part of struts2 now.

Again, thanks for the wonderful article.

Have fun.</description>
		<content:encoded><![CDATA[<p>Very well written, simple but comprehensive article to guide newbies like me introducing many concepts in the way. Highly commendable effort. Took me a couple of days to get all of it working on Struts 2.1.6 (except for the DAO part which I omitted on purpose). Want to provide a little heads-up for people attempting this on newer versions of struts2 to save them from some possible frustration.</p>
<p>0. As pointed out by Benjamin, this example uses the jsonplugin.jar instead of the new json-lib (using which might require another tutorial).<br />
1. Omit (theme=&#8221;ajax&#8221;) from autocompleter tag in the .jsp file. It is no longer required.<br />
2. Add (loadOnTextChange=&#8221;true&#8221;) to the tag. The documentation for autocompleter says that this attribute is &#8216;true&#8217; by default but my experience and experimentation has shown otherwise.<br />
3. Move (method=&#8221;getCities&#8221;) from the autocompleter tag in the .jsp file to action definition in struts.xml.<br />
4. Also, since 2.0.9, key:value pair order has been reversed and value comes first now, so change the (json.put(Id, CityName)) statement to (json.put(CityName, Id)).</p>
<p>With this working now, I&#8217;ll look into adapting to json-lib which is a part of struts2 now.</p>
<p>Again, thanks for the wonderful article.</p>
<p>Have fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunflower</title>
		<link>http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/comment-page-1/#comment-15709</link>
		<dc:creator>Sunflower</dc:creator>
		<pubDate>Fri, 16 Oct 2009 09:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/?p=104#comment-15709</guid>
		<description>List (Employee) instead of Map(String, String)</description>
		<content:encoded><![CDATA[<p>List (Employee) instead of Map(String, String)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
