<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bandos&#039; Arcade &#187; Web Designing &amp; Development</title>
	<atom:link href="http://www.nuwanbando.com/category/web-designing-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nuwanbando.com</link>
	<description>&#34;It&#039;s not about how it is, but how I see it &#34; - Stranger Than Fiction</description>
	<lastBuildDate>Mon, 07 Jun 2010 04:55:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Few productive days in a dreamy vacation</title>
		<link>http://www.nuwanbando.com/2008/07/few-productive-days-in-a-dreamy-vacation/</link>
		<comments>http://www.nuwanbando.com/2008/07/few-productive-days-in-a-dreamy-vacation/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 14:14:40 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Designing & Development]]></category>

		<guid isPermaLink="false">http://www.nuwanbando.com/?p=86</guid>
		<description><![CDATA[Well, not hoping to write about my dreamy vacation, so will just tip off the few productive days. Yeah so i was doing some work for Archmage last few days, gave life to a dead project, played with joomla, wordpress and osCommerce. After much research and hacking me and few of my friends at Archmage [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F07%2Ffew-productive-days-in-a-dreamy-vacation%2F&title=Few+productive+days+in+a+dreamy+vacation&related=no" ><span style="display:none">Well, not hoping to write about my dreamy vacation, so will just tip off the few productive days. Yeah so i was doing some work for Archmage last few days, gave life to a dead project, played with joomla, wordpress and osCommerce. After much research and hacking me and few of my friends at Archmage [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F07%2Ffew-productive-days-in-a-dreamy-vacation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F07%2Ffew-productive-days-in-a-dreamy-vacation%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, not hoping to write about my dreamy vacation, so will just tip off the few productive days. <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Yeah so i was doing some work for <a href="http://www.archmage.lk" target="_blank">Archmage</a> last few days, gave life to a <a href="http://www.successlands.com">dead project</a>, played with <a href="http://www.joomla.org/" target="_blank">joomla</a>, <a href="http://wordpress.org" target="_blank">wordpress</a> and <a href="http://www.oscommerce.com/" target="_blank">osCommerce</a>.</p>
<p>After much research and hacking me and few of my friends at Archmage thought of using Joomla and WordPress as core CMSes for our web development tasks, to make the work more rapid and easy. So yeah am hacking and looking for plugins and modules that i can use on joomla. Since last two weeks i was working on a real estate project and an e-commerce one. i was looking for resources on them. so yeah if you are looking for something similar try <a href="http://www.eaimproved.eu/" target="_blank">Estate Agent Improved</a> for real estate and <a href="http://virtuemart.net/" target="_blank">Virtuemart</a> for E-Commerce. both are nicely made, Joomla plugins. With a little bit of customization they can be used like a charm.</p>
<p>OH and yeah today i gave a new look to my blog. <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  last night i updated to <span style="text-decoration: line-through;">WordPress 2.5.1 ( yeah I know FINALLY!! <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</span> <strong>Edit</strong>:<em> I updated it again today (16th June) to WP 2.6 <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em> .  Many thanks goes to <a href="http://blog.andrastudio.com/" target="_blank"><span class="headline-desc">Andrayogi</span></a> for a pretty neat template. Added some plugins, had some problems with the DIGG IT icon. My firebug started giving a javascript error &#8220;unterminated string literal&#8221; and finally found a fix.. well its simple just edit the plugin and add</p>
<p><code>digg_bodytext = '&lt;?php echo trim(preg_replace('/\s/', ' ', get_the_excerpt())); ?&gt;';</code></p>
<p>instead of</p>
<p><code>digg_bodytext = '&lt;?php get_the_excerpt(); ?&gt;';</code></p>
<p>That will fix the error. yeah so the site looks pretty neat. am sure many over the net uses this theme. even tried some different colors and combinations but thought this is the best combination so kept it in original.</p>
<p>Soo yeah will write some thing with more value soon.</p>
<p>cheers !</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/07/few-productive-days-in-a-dreamy-vacation/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/07/few-productive-days-in-a-dreamy-vacation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Select Many Problem : JSF</title>
		<link>http://www.nuwanbando.com/2008/02/select-many-problem-jsf/</link>
		<comments>http://www.nuwanbando.com/2008/02/select-many-problem-jsf/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 09:59:06 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=76</guid>
		<description><![CDATA[After few days, got some time to write a post&#8230; well as i promised in my earlier post.. I thought of writing about the Annoying problem anybody will face while using selectMany component in JSF. At 1st with out any experience what any one would do is writing both assessor and mutator methods to return [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F02%2Fselect-many-problem-jsf%2F&title=Select+Many+Problem+%3A+JSF&related=no" ><span style="display:none">After few days, got some time to write a post&#8230; well as i promised in my earlier post.. I thought of writing about the Annoying problem anybody will face while using selectMany component in JSF. At 1st with out any experience what any one would do is writing both assessor and mutator methods to return [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F02%2Fselect-many-problem-jsf%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F02%2Fselect-many-problem-jsf%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>After few days, got some time to write a post&#8230; well as i promised in my earlier post.. I thought of writing about the Annoying problem anybody will face while using selectMany component in JSF.</p>
<p>At 1st with out any experience what any one would do is writing both assessor and mutator methods to return and set A LIST of selected objects. some thing like</p>
<blockquote><p>private List&lt;myClass&gt; selectList;</p>
<p>public List&lt;myClass&gt; getSelectList() {<br />
return selectList;<br />
}</p>
<p>public void setSelectList(List&lt;myClass&gt; selectList) {<br />
this.selectList =  selectList;<br />
}</p></blockquote>
<p>Even though this is the straight forward way, For some reason JSF implementation does not support it. In many places over the NET and in JSF forums, people have advised to use String Arrays, Saying you cannot use Java Collections in this scenario.</p>
<p>But Use of String Arrays are very much annoying and makes your work very messy. After some testing and trying I found this work around to take the selected objects as it is, not just the label string, Its pretty simple. Instead of using String arrays, Just use an array of your own class. Something like this</p>
<blockquote><p>private myClass[] selectList;</p>
<p>public myClass[] getSelectList() {<br />
return selectList;<br />
}</p>
<p>public void setSelectList(myClass[] selectList) {<br />
this.selectList =  selectList;<br />
}</p></blockquote>
<p>Of-cause you have to use a converter in this case but not difference out there its just a normal converter for your class. So hope this tip will help</p>
<p>cheers !!</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/02/select-many-problem-jsf/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/02/select-many-problem-jsf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Validation Error: Value is not valid&#8221; famous validation error, when using custom converters in JSF.</title>
		<link>http://www.nuwanbando.com/2008/01/validation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf/</link>
		<comments>http://www.nuwanbando.com/2008/01/validation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 09:27:15 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=75</guid>
		<description><![CDATA[This is one problem i faced when i worked with select-many and select-one menus in Java Server Faces. For any one who have worked with JSF knows that you have to use custom converters in order to populate select-many and select-on menus with ur own data types. if i elaborate on this a little bit, [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fvalidation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf%2F&title=%26%238220%3BValidation+Error%3A+Value+is+not+valid%26%238221%3B+famous+validation+error%2C+when+using+custom+converters+in+JSF.&related=no" ><span style="display:none">This is one problem i faced when i worked with select-many and select-one menus in Java Server Faces. For any one who have worked with JSF knows that you have to use custom converters in order to populate select-many and select-on menus with ur own data types. if i elaborate on this a little bit, [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fvalidation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fvalidation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is one problem i faced when i worked with select-many and select-one menus in Java Server Faces. For any one who have worked with <span class="misspell" suggestions="SF,NSF,J'S">JSF</span> knows that you have to use custom converters in order to populate select-many and select-on menus with <span class="misspell" suggestions="Ur,Ir,UAR,Ru,U">ur</span> own data types.</p>
<p>if i elaborate on this a little bit, Select menus are not just there to show simple value-label pairs. you can give directly an object to its value and one of its fields as the label. for an example,</p>
<blockquote><p>public <span class="misspell" suggestions="Array List,Array-List,Aerialist,Realist,Arabist">ArrayList</span>&lt;<span class="misspell" suggestions="Select Item,Select-Item,Selected">SelectItem</span>&gt; <span class="misspell">getLandSelectList</span>() {<br />
if (<span class="misspell">landSelectList</span> != null) {<br />
return <span class="misspell">landSelectList</span>;<br />
}<br />
<span class="misspell">    landSelectList</span> = new <span class="misspell" suggestions="Array List,Array-List,Aerialist,Realist,Arabist">ArrayList</span>&lt;<span class="misspell" suggestions="Select Item,Select-Item,Selected">SelectItem</span>&gt;();<br />
List&lt;Land&gt; <span class="misspell" suggestions="land List,land-List,landless,landslid,Landsat">landList</span> = this.<span class="misspell">getLandList</span>();<br />
for (int i = 0; i &lt; <span class="misspell" suggestions="land List,land-List,landless,landslid,Landsat">landList</span>.size(); i++) {<br />
<span class="misspell">        landSelectList</span>.add(new <span class="misspell" suggestions="Select Item,Select-Item,Selected">SelectItem</span>(<span class="misspell" suggestions="land List,land-List,landless,landslid,Landsat">landList</span>.get(i), <span class="misspell" suggestions="land List,land-List,landless,landslid,Landsat">landList</span>.get(i)<br />
.<span class="misspell">getLandsName</span>_DE()));<br />
}<br />
return <span class="misspell">landSelectList</span>;<br />
}</p></blockquote>
<p>The returning Select list can be taken to a select one or a select many list box like..</p>
<blockquote><p>&lt;h:<span class="misspell" suggestions="selectmen,selectman">selectOneMenu</span> id=&#8221;<span class="misspell">listBoxLand</span>&#8221;<br />
value=&#8221;#{<span class="misspell">userManagerBean</span>.land}&#8221; required=&#8221;true&#8221;&gt;<br />
&lt;f:<span class="misspell" suggestions="select Items,select-Items">selectItems</span> value=&#8221;#{<span class="misspell">userManagerBean</span>.<span class="misspell">landSelectList</span>}&#8221; /&gt;<br />
&lt;/h:<span class="misspell" suggestions="selectmen,selectman">selectOneMenu</span>&gt;<br />
&lt;h:message for=&#8221;<span class="misspell">listBoxLand</span>&#8221; /&gt;</p></blockquote>
<p>This component will set the selected land object directly to the backing bean. If you used simple value(some text or the id) &#8211; label pair. you should again query for the object from the selected id and save in the backing bean. but in this way that extra trouble will be handled by <span class="misspell" suggestions="SF,NSF,J'S">JSF</span>.</p>
<p>The problem is if you do it just like this with out anything else.. you will get a wired validation error saying &#8220;<strong>Validation Error: Value is not valid</strong>&#8220;. This is where you start googling and debugging. Well after some hours of googling..(couldn&#8217;t do much debugging because this is a exception thrown by <span class="misspell" suggestions="SF,NSF,J'S">JSF</span> framework) and reading about 10 to 20 forums i found out that the object which is loaded and the object <span class="misspell" suggestions="which,witch,winch,wish,Mich">wich</span> was selected will be compared when setting to the backing bean. So if your object&#8217;s Class has not overridden the equals method this error message is shown.</p>
<p>So what you have to do is. if you are using your own data Objects for the select menus or in that case for any other <span class="misspell" suggestions="SF,NSF,J'S">JSF</span> tag where you will use converters. You have to override the Equals method. Probably do the comparison with the Id, or with some unique value in that data Object. That&#8217;s it.. The problem solved. In my case the equals methods looks like</p>
<blockquote><p>// overridden equals method<br />
public <span class="misspell" suggestions="Boolean,boo lean,boo-lean,Boleyn,Boole">boolean</span> equals(Object obj) {<br />
if (!(obj <span class="misspell" suggestions="instance of,instance-of,instanced,instance,instances">instanceof</span> Land)) {<br />
return false;<br />
}<br />
Land land = (Land) obj;</p>
<p>return (this.id == land.id);</p>
<p>}</p></blockquote>
<p>Yeah hope this will be useful to some one.. !! I will write another post on how to use Java Collections when working with Select-Many menus.</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/01/validation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/01/validation-error-value-is-not-valid-famous-validation-error-when-using-custom-converters-in-jsf/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Joomla Hack! Automated Joomla user registration via JSF form</title>
		<link>http://www.nuwanbando.com/2008/01/joomla-hack-automated-joomla-user-registration-via-jsf-form/</link>
		<comments>http://www.nuwanbando.com/2008/01/joomla-hack-automated-joomla-user-registration-via-jsf-form/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 18:42:39 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=74</guid>
		<description><![CDATA[Well this post is some what continuation of my last post. What is the use of single sign on if you have to register in two different sites ? yeah this is the solution for that&#8230; What i wanted to do is, when a user registers in my java web application i wanted to register [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjoomla-hack-automated-joomla-user-registration-via-jsf-form%2F&title=Joomla+Hack%21+Automated+Joomla+user+registration+via+JSF+form&related=no" ><span style="display:none">Well this post is some what continuation of my last post. What is the use of single sign on if you have to register in two different sites ? yeah this is the solution for that&#8230; What i wanted to do is, when a user registers in my java web application i wanted to register [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjoomla-hack-automated-joomla-user-registration-via-jsf-form%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjoomla-hack-automated-joomla-user-registration-via-jsf-form%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Well this post is some what continuation of my last post.<br />
What is the use of single sign on if you have to register in two different sites ? yeah this is the solution for that&#8230; What i wanted to do is, when a user registers in my java web application i wanted to register the same user in the <span class="misspell" suggestions="PHIP,PP,PH,HP,PHI">PHP</span> app. Since these two applications have different user data-tables (well in my project i cannot merge these tables or use one database. if that is your case just ignore this post.)</p>
<p>When a new user registers in my JAVA web app am taking that user form data and insert those to the <span class="misspell" suggestions="Jamal,Romola,Jammal,Joela,Kamila">joomla</span> database. <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Yup I know.. What is there to blog about this ?)<br />
But what went wrong is <span class="misspell" suggestions="Jamal,Romola,Jammal,Joela,Kamila">joomla</span> use some extra data from 2 other different tables other than <span class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span>_users (in joomla database).</p>
<p>those tables are <span style="font-style: italic" class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span><span style="font-style: italic">_core_</span><span style="font-style: italic" class="misspell" suggestions="ACLU,Cal,cal,AC,AL">acl</span><span style="font-style: italic">_</span><span style="font-style: italic" class="misspell" suggestions="Ari,Ario,Afro,Aron,Argo">aro</span><span style="font-style: italic"> </span>and <span style="font-style: italic; font-weight: bold" class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span><span style="font-style: italic; font-weight: bold">_core_</span><span style="font-style: italic; font-weight: bold" class="misspell" suggestions="ACLU,Cal,cal,AC,AL">acl</span><span style="font-style: italic; font-weight: bold">_groups_</span><span style="font-style: italic; font-weight: bold" class="misspell" suggestions="Ari,Ario,Afro,Aron,Argo">aro</span><span style="font-style: italic; font-weight: bold">_map</span> so when you are inserting the data to the <span style="font-style: italic" id="bad_word" class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span><span style="font-style: italic">_users</span> table.. also save the data in to the other two tables as well.<br />
there are foreign key constrains over these tables. so</p>
<p>1- Insert the user to the <span class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span>_users<br />
2<span class="misspell" suggestions="ND,Nd,Ned,nod,MD"></span>- take the user id from a select query and insert that user to the <span class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span>_core_<span class="misspell" suggestions="ACLU,Cal,cal,AC,AL">acl</span>_<span class="misspell" suggestions="Ari,Ario,Afro,Aron,Argo">aro</span><br />
3- takes <span class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span>_core_<span class="misspell" suggestions="ACLU,Cal,cal,AC,AL">acl</span>_<span class="misspell" suggestions="Ari,Ario,Afro,Aron,Argo">aro</span> id from a select query and insert it in to the <span class="misspell" suggestions="Jo's,Jose,Josi,Josy,joys">jos</span>_core_<span class="misspell" suggestions="ACLU,Cal,cal,AC,AL">acl</span>_groups_<span class="misspell" suggestions="Ari,Ario,Afro,Aron,Argo">aro</span>_map</p>
<p>take a look at the three tables then you will realize what you should do.</p>
<p>The other task is password encryption. well <span class="misspell" suggestions="Jamal,Romola,Jammal,Joela,Kamila">Joomla</span> 1.5 uses <span class="misspell" suggestions="MD,Md,mad,med,mid">md</span>5 encryption mechanism to hash the passwords.  When a password is created, it is hashed with a 32 character salt that is appended to the end of the password string.  The password is stored as {TOTAL HASH}:{ORIGINAL SALT}.</p>
<p>you can see this method at <span class="misspell" suggestions="plug ins,plug-ins,polygons,plugs,plugging">plugins</span>/authentication/<span class="misspell" suggestions="Jamal,Romola,Jammal,Joela,Kamila">joomla</span>.<span class="misspell" suggestions="Phip,PP,pH,pp,HP">php</span> lines 80-116.</p>
<p>So what you have to do is take your password and make a {TOTAL HASH}:{ORIGINAL SALT} from it and save the created string. I found this information also in a <a href="http://forum.joomla.org/index.php?topic=207689.0;wap2" title="discussion forum" id="n.k5">discussion forum</a>. which had shown a java class to do this task.. so yeah it was quite useful..</p>
<p>so that&#8217;s all about behind the seen registration <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Have fun !</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/01/joomla-hack-automated-joomla-user-registration-via-jsf-form/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/01/joomla-hack-automated-joomla-user-registration-via-jsf-form/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Single Sign-On between Joomla (PHP) and a custom JSF / JSP login (JAVA)</title>
		<link>http://www.nuwanbando.com/2008/01/single-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java/</link>
		<comments>http://www.nuwanbando.com/2008/01/single-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 15:08:15 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[TCP/UDP]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=72</guid>
		<description><![CDATA[Single sign-on (SSO) is a method of access control, that enables a user to authenticate once, and gain access to the resources of multiple software systems. Well in my case, the task i have given is to authenticate a user in a PHP and a JAVA (Web) system simultaneously. My PHP web application is the [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fsingle-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java%2F&title=Single+Sign-On+between+Joomla+%28PHP%29+and+a+custom+JSF+%2F+JSP+login+%28JAVA%29&related=no" ><span style="display:none">Single sign-on (SSO) is a method of access control, that enables a user to authenticate once, and gain access to the resources of multiple software systems. Well in my case, the task i have given is to authenticate a user in a PHP and a JAVA (Web) system simultaneously. My PHP web application is the [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fsingle-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fsingle-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Single sign-on</strong> (SSO) is a method of access control, that enables a user to authenticate once, and gain access to the resources of multiple software systems. Well in my case, the task i have given is to authenticate a user in a PHP and a JAVA (Web) system simultaneously.</p>
<p>My PHP web application is the well known Joomla CMS, and my JAVA web application is based on JSF and custom built. After some thinking and research I found several resources which are worth reading (<a href="http://www.josso.org/" title="JOSSO" id="kv-6">JOSSO</a>, <a href="http://www.imprivata.com/onesign_sso" title="One Sign" id="vwpy">OneSign</a> ), but i couldn&#8217;t take any help from them, mostly those SSO frameworks are complex ( yeah <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I couldn&#8217;t understand ) and aimed on a general pourpose and most of them are not for free.</p>
<p>So yeah I thought of doing some Hack to joomla and also make some changes in my Java web app&#8217;s authentication method. After talking with some of my geeky Friends (<a href="http://www.sandaru1.com/" title="Sandaruwan" id="who9">Sandaruwan</a> and Anjana). I came up with two approaches. both are involved in handling the cookies manually up to certain extent.</p>
<p>The 1st approach is (Which i didn&#8217;t try and had to give up due to the reason that I am using JSF as the web application framework) to log-in to the Joomla site and after loged in to Joomla create a random named temp file in the server  (possibly in /home/secrets with 777) with the user-name  (if a valid log in) and set a cookie using set_cookie(&#8220;name&#8221;,$filename) and direct to a jsp page to do the java side authentication.</p>
<p>in this JSP, page read the secret file name from the cookie and read the file from the http server in-order to take the username of the loged-in user. By passing this to the authentication method of the java web app, the java side also can be authenticated.</p>
<p>yup it is pretty simple, but i had to give it up mainly because I use JSF. if I do the user authentication in the above way in the java side. I cannot add the user object to the FacesContext which will be used by my other java side components. so even though i log in. later on in other jsf pages my loged user cannot be found. (Shortly my java login process is not happening according to the JSF implementation procedures.) and secondly i had to give up this method because my Project manger didn&#8217;t like the idea of saving temp files in the server. <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So the Second and the method which i have implemented is, automating the Joomla log-in process by making an http request to the http server from my JSF backing bean. and set the PHP cookie manually via Http Servlet response.</p>
<p>before i explain this method more broadly i have to mention about two nice tools which helped me to monitor the http requests and response.<br />
<a href="http://ws.apache.org/commons/tcpmon/" title="Apache TCP Monitor" id="belg">Apache TCP Monitor</a><br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/3829" title="Live Http headers (FireFox ad-on)" id="vem7">Live Http headers (FireFox ad-on)</a></p>
<p><strong><u>Architecture</u></strong></p>
<p><img src="http://docs.google.com/File?id=ddv87v2p_21dpsn2kwh" style="width: 365px; height: 245px" /></p>
<p><span style="font-weight: bold">Implementation</span></p>
<p>There are two different scenarios.<br />
1. User can visit teh home page of the joomla site 1st and the PHP Cookie is already set.<br />
2. User visit the Java site PHP Cookie is not available.</p>
<p><span id="more-72"></span><span style="font-weight: bold"></span></p>
<p>Since anyhow we are using the java login form for the username and password in put. the Signing in for both sites will be done from the java side. (If its the PHP side same problem with the JSF session)</p>
<p>I created a link in the joomla home to the JSF login form. and made the joomla login form invisible to the user.</p>
<pre id="line123">&lt;<span class="start-tag">form</span><span class="attribute-name"> action</span>=<span class="attribute-value">"/joomla/index.php" </span><span class="attribute-name">method</span>=<span class="attribute-value">"post" </span><span class="attribute-name">name</span>=<span class="attribute-value">"login" </span><span class="attribute-name"></span></pre>
<pre id="line123"><span class="attribute-name">					id</span>=<span class="attribute-value">"form-login" </span>&gt;
    &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"option" </span><span class="attribute-name">value</span>=<span class="attribute-value">"com_user" </span><span class="error"><span class="attribute-name">/</span></span>&gt;
    &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"task" </span><span class="attribute-name">value</span>=<span class="attribute-value">"login" </span><span class="error"><span class="attribute-name">/</span></span>&gt;
    &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"return" </span><span class="attribute-name"></span></pre>
<pre id="line123"><span class="attribute-name">		value</span>=<span class="attribute-value">"aHR0cDovL2xvY2FsaG9zdC9qb29tbGEvaW5kZXgucGhw" </span><span class="error"><span class="attribute-name">/</span></span>&gt;
    &lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name"></span></pre>
<pre id="line123"><span class="attribute-name">		name</span>=<span class="attribute-value">"4c8b847e06d9cfc211c7c0547d8b0e82" </span><span class="attribute-name">value</span>=<span class="attribute-value">"1" </span><span class="error"><span class="attribute-name">/</span></span>&gt;
&lt;/<span class="end-tag">form</span>&gt;</pre>
<p>I removed the input text fields for username and password but kept the four hidden fields as shown above. it is very important to keep these hidden fields hence, when login, joomla is checking for these randomly generated (generated in the server and dynamically added to the form) values. to remove the visible input text fields you have to hack in to thejoomla template.<br />
Now there is no login form in the Joomla home (not invisible). Once you click the Login Link the user will be forward to a java (JSF) login form and asked to insert the username and password. these values are taken in to the Backing bean (Normal JSF procedure). and make the JAVA side authentication.</p>
<p>If the user is authenticated, what you have to do is make two UrlConnection to the HTTP server in order to authenticate Joomla. the 1st UrlConnection is to read the main page (or the page where joomla has its dynamically generated Login form)</p>
<p>you have to read four hidden fields in the form and take them to variables and create a request string, and make the 2nd request to the same page (Due to Joomla&#8217;s design pattern). you should not forget to send the cookie that you received with the 1st request. Once you did this you are authenticated in thephp side too. The next step is adding the cookie to the HttpServletResponce. (Make sure u set the path of the cookie.. I had to debug for hours forgetting that part <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>The above mentioned is the 1st scenario if there are no cookies in the client side (if the user haven&#8217;t requested the home page ofjoomla). the 2nd scenario is if the user has a cookie, then when ur making the request u have to get the cookies from the HttpServletRequest and append it to the request header. Simply what you have to do is get all the cookies and append them. the rest of it is same.</p>
<p>So that&#8217;s it.. you&#8217;re authenticated in both web apps. With the post i will attach the Java Source code i used to do this task.</p>
<p><a href="http://nuwanbando.com/wp-content/uploads/2008/01/authjoomla.zip" title="Joomla Auth Source Code">Joomla Auth Source Code</a></p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/01/single-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/01/single-sign-on-between-joomla-php-and-a-custom-jsf-jsp-login-java/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>JSF : Setting a custom message from a backing bean</title>
		<link>http://www.nuwanbando.com/2008/01/jfs-setting-a-custom-message-from-a-backing-bean/</link>
		<comments>http://www.nuwanbando.com/2008/01/jfs-setting-a-custom-message-from-a-backing-bean/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 17:29:22 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=71</guid>
		<description><![CDATA[So yeah !! I thought of writing something about JSF. Since am working with it for Nealy 3 months now. So how about custom message handling for starters !! JSF message tag is pretty useful in many places. for an example, for the use of validators. but what i wanted to write here is, not [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjfs-setting-a-custom-message-from-a-backing-bean%2F&title=JSF+%3A+Setting+a+custom+message+from+a+backing+bean&related=no" ><span style="display:none">So yeah !! I thought of writing something about JSF. Since am working with it for Nealy 3 months now. So how about custom message handling for starters !! JSF message tag is pretty useful in many places. for an example, for the use of validators. but what i wanted to write here is, not [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjfs-setting-a-custom-message-from-a-backing-bean%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2008%2F01%2Fjfs-setting-a-custom-message-from-a-backing-bean%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So yeah !! I thought of writing something about JSF. Since am working with it for Nealy 3 months now.  So how about custom message handling for starters !! <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>JSF message tag is pretty useful in many places. for an example, for the use of validators. but what i wanted to write here is, not how a message is shown after validation.</p>
<p>Think after some database transaction you wanted to say &#8220;Transaction is successful or not successful&#8221; or in some random scenario if you wanted to show a message in anywhere in your web-page at anytime, you can do that from your backing bean with out much effort.</p>
<p>I will take the tomahawk fileupload tag as an example JSF tag. so in the JSP side it will look like<br />
<code></code></p>
<pre lang="html">

<h:outputlabel for="fileupload" value="File :"></h:outputlabel>
	<t:inputfileupload id="fileupload" accept="image/*" size="50">
               value="#{bbaBean.theFile}" storage="file"
               styleClass="fileUploadInput"
               required="true"&gt;
        </t:inputfileupload>
<h:message for="fileupload" showdetail="true">
               errorstyle="Color: red;"&gt;
</h:message>

<h:commandbutton value="Datei Hochladen">
                 action="#{bbaBean.uploadFile}" styleclass="linkbox"&gt;
</h:commandbutton></pre>
<p>And when the upload button is clicked the uploadFile method will be invoked in our backing bean. which will look like..<br />
<code></code></p>
<pre line="1" lang="java">
public String uploadFile throws IOException {

       FacesMessage messageErr =
               new FacesMessage(FacesMessage.SEVERITY_ERROR,
                     "ERROR : ",
                     "XML File you have uploaded is not compatible");

       FacesMessage messageSuc = new FacesMessage(
              "The XML File You have uploaded is successfully
                                           added to the Database");

       FacesContext fc = FacesContext.getCurrentInstance();

       try {
              //TODO: Transaction or logic....
               fc..addMessage("form1:fileupload", messageSuc);
       } catch(Exception e) {
               fc.addMessage("form1:fileupload", messageErr);
       }
}</pre>
<p>Simply that is it. So when an exception occurs your JSP page shows the custom error message. One other thing is you can set the message type too. if its and error message as i have shown make it&#8217;s SEVERITY to ERROR. and add an error style class for the tag. so your error message will be shown different than the other messages..</p>
<p>so yeah enjoy..</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2008/01/jfs-setting-a-custom-message-from-a-backing-bean/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2008/01/jfs-setting-a-custom-message-from-a-backing-bean/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JEvents Hack &#8211; Integrating JEvents with Google calender</title>
		<link>http://www.nuwanbando.com/2007/10/jevents-hack-integrating-jevents-with-google-calender/</link>
		<comments>http://www.nuwanbando.com/2007/10/jevents-hack-integrating-jevents-with-google-calender/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 09:12:49 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=64</guid>
		<description><![CDATA[As i promised today I got some time to write about some PHP programming i did few weeks ago. I had to integrate Google calender with the Sensoria web site, so that the events published in the sensoria site will be automatically published in Sensoria&#8217;s public Google calender. Sensoria Site is created using a famous [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F10%2Fjevents-hack-integrating-jevents-with-google-calender%2F&title=JEvents+Hack+%26%238211%3B+Integrating+JEvents+with+Google+calender&related=no" ><span style="display:none">As i promised today I got some time to write about some PHP programming i did few weeks ago. I had to integrate Google calender with the Sensoria web site, so that the events published in the sensoria site will be automatically published in Sensoria&#8217;s public Google calender. Sensoria Site is created using a famous [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F10%2Fjevents-hack-integrating-jevents-with-google-calender%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F10%2Fjevents-hack-integrating-jevents-with-google-calender%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>As i promised today I got some time to write about some PHP programming i did few weeks ago. I had to integrate Google calender with the <a href="http://www.sensoria-ist.eu/">Sensoria</a> web site, so that the events published in the sensoria site will be automatically published in Sensoria&#8217;s public Google calender.</p>
<p>Sensoria Site is created using a famous CMS called <a href="http://www.mamboserver.com/">Mamb</a><a href="http://www.mamboserver.com/">o</a>, in Mambo one can install plug-ins for many usage for the customized site they are creating. In this case Sensoria was using Mambo Events Component or now available to download as JEvents in Joomla CMS.</p>
<p>What I did was a small code hack in the eventmanager.php file in com_eventmanager folder in the components directory of Mambo. Its was a pretty easy task, but i had problems while testing. I was behind a proxy and the Zend framework gave a huge trouble when connecting to Google Via an HTTPS connection. After some descutions on <a href="http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/725f73252e76851c">Google calender forums</a>.. I found out that it is a bug in the Zend Farmework (Which i could not find a solution and didn&#8217;t bother or had time to spend on fixing it). So i had to test it in a live server.</p>
<p>Any how now its all working.. I will publish the code out here.. so anyone who wants to do the same.. please feel free to use it..</p>
<p><a href="http://nuwanbando.com/wp-content/uploads/2007/10/eventmanager.zip" title="eventmanager.php">eventmanager.php</a></p>
<p>cheers !!</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2007/10/jevents-hack-integrating-jevents-with-google-calender/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2007/10/jevents-hack-integrating-jevents-with-google-calender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AcSO version 1.0 Beta is released for Microsoft Imagine Cup</title>
		<link>http://www.nuwanbando.com/2007/05/acso-version-10-beta-is-released-for-imagine-cup/</link>
		<comments>http://www.nuwanbando.com/2007/05/acso-version-10-beta-is-released-for-imagine-cup/#comments</comments>
		<pubDate>Sun, 20 May 2007 02:11:29 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[imagine cup]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=31</guid>
		<description><![CDATA[As my fellow team mate kasun had blogged&#8230; yeah after some long sleepless nights, we finally, able to produce a functional version of our great idea, &#8220;All in One&#8221; . AcSO is our web development entry for Microsoft Imagine Cup now competing on the second round. Why am saying its version 1.0 and Beta because, [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F05%2Facso-version-10-beta-is-released-for-imagine-cup%2F&title=AcSO+version+1.0+Beta+is+released+for+Microsoft+Imagine+Cup&related=no" ><span style="display:none">As my fellow team mate kasun had blogged&#8230; yeah after some long sleepless nights, we finally, able to produce a functional version of our great idea, &#8220;All in One&#8221; . AcSO is our web development entry for Microsoft Imagine Cup now competing on the second round. Why am saying its version 1.0 and Beta because, [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F05%2Facso-version-10-beta-is-released-for-imagine-cup%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F05%2Facso-version-10-beta-is-released-for-imagine-cup%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>As my fellow team mate <a href="http://www.kasun.info">kasun</a> had blogged&#8230; yeah after some long sleepless nights, we finally, able to produce a functional version of our great idea, &#8220;All in One&#8221;  . AcSO is our web development entry for Microsoft Imagine Cup now competing on the second round. Why am saying its version 1.0 and Beta because, there are many more features yet to add in it., to achieve our All In One goal. How ever if it gets in to the final six, (as I think it will <img src='http://www.nuwanbando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) you will see the next generation academic organizer, another great web 2.0 work.</p>
<p>you can vist AcSO on :</p>
<p><a href="http://team4366.webdev07.imaginecup.com">http://team4366.webdev07.imaginecup.com</a></p>
<p>Great work Team Enterprise !!!</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2007/05/acso-version-10-beta-is-released-for-imagine-cup/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2007/05/acso-version-10-beta-is-released-for-imagine-cup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free ASP.net Shopping cart &amp; a simple web site</title>
		<link>http://www.nuwanbando.com/2007/04/free-aspnet-shopping-cart-a-simple-web-site/</link>
		<comments>http://www.nuwanbando.com/2007/04/free-aspnet-shopping-cart-a-simple-web-site/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 15:02:30 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[VB.net]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=29</guid>
		<description><![CDATA[During Last two days I was engaged with some charity work or rather IT related charity work, doing a Shopping cart using ASP.net. I had to use VB.net which i was not familiar with before, SO i got the chance in feeling the VB.net environment. VB is not a hard language to catch up when [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Ffree-aspnet-shopping-cart-a-simple-web-site%2F&title=Free+ASP.net+Shopping+cart+%26%23038%3B+a+simple+web+site&related=no" ><span style="display:none">During Last two days I was engaged with some charity work or rather IT related charity work, doing a Shopping cart using ASP.net. I had to use VB.net which i was not familiar with before, SO i got the chance in feeling the VB.net environment. VB is not a hard language to catch up when [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Ffree-aspnet-shopping-cart-a-simple-web-site%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Ffree-aspnet-shopping-cart-a-simple-web-site%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>During Last two days I was engaged with some charity work or rather IT related charity work, doing a Shopping cart using ASP.net. I had to use VB.net which i was not familiar with before, SO i got the chance in feeling the VB.net environment. VB is not a hard language to catch up when you do know the principals of programming plus when you have plenty of online help.</p>
<p>Also Visual Studio is one great development environment to engage in any kind of development (large or small). Database connectivity, data handling and debugging is amazingly easy using this powerful CASE tool.</p>
<p>Since I did this project for my own satisfaction I thought of uploading it for the use of anyone who needs a shopping cart or a related example.</p>
<p>You can <a href="http://www.nuwanbando.com/aspSite.rar">download</a> it and use it for your own purpose&#8230;<br />
cheers</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2007/04/free-aspnet-shopping-cart-a-simple-web-site/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2007/04/free-aspnet-shopping-cart-a-simple-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Placing DHTML layers over the FLASH content</title>
		<link>http://www.nuwanbando.com/2007/04/placing-dhtml-layers-over-the-flash-content/</link>
		<comments>http://www.nuwanbando.com/2007/04/placing-dhtml-layers-over-the-flash-content/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 05:55:55 +0000</pubDate>
		<dc:creator>Nuwan Bandara</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Designing & Development]]></category>
		<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://nuwanbando.com/?p=25</guid>
		<description><![CDATA[Adobe (Macromedia) Flash is one of the technologies we use to add fancy eye catching animations to our web sites. But after the resent development of Ajax, developers tend to blend CSS and JavaScript effects with those flash animations making their sites look more new or rather web 2.0 (ish). For some time i was [...]]]></description>
			<content:encoded><![CDATA[		<div style="float:right;margin:0px 0px 10px 10px;">
			<a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Fplacing-dhtml-layers-over-the-flash-content%2F&title=Placing+DHTML+layers+over+the+FLASH+content&related=no" ><span style="display:none">Adobe (Macromedia) Flash is one of the technologies we use to add fancy eye catching animations to our web sites. But after the resent development of Ajax, developers tend to blend CSS and JavaScript effects with those flash animations making their sites look more new or rather web 2.0 (ish). For some time i was [...]</span></a>		
		</div>		
		<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Fplacing-dhtml-layers-over-the-flash-content%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.nuwanbando.com%2F2007%2F04%2Fplacing-dhtml-layers-over-the-flash-content%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Adobe (Macromedia) Flash is one of the technologies we use to add fancy eye catching animations to our web sites. But after the resent development of Ajax, developers tend to blend CSS and JavaScript effects with those flash animations making their sites look more new or rather web 2.0 (ish).</p>
<p>For some time i was searching for a method to place DHTML layers over the Flash objects, yet i couldn&#8217;t find an article regarding this matter or rather i didn&#8217;t spend much time sweeping the NET regarding this. How ever For a web site I was doing recently I had to use the <a href="http://www.huddletogether.com/projects/lightbox/">lightbox.js effect</a> But again I met the problem of laying the DHTML layer over my flash content, Luckily in the troubleshooting part in the lightbox web page i found the path directing to the Adobe official site where this problem is wildly discussed.</p>
<p>As it says &#8220;Use the WMODE parameter to allow layering of Flash content with DHTML layers. The WMODE parameter can be &#8216;window&#8217; (default), &#8216;opaque&#8217;, or &#8216;transparent&#8217;. Using a WMODE value of &#8216;opaque&#8217; or &#8216;transparent&#8217; will prevent a Flash movie from playing in the topmost layer and allow you to adjust the layering of the movie within other layers of the HTML document.&#8221;</p>
<p>You can gather more details at <a href="http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523">http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523</a></p>
<p>Cheers..</p>
<div id="fb-root"></div>
       <script>
       window.fbAsyncInit = function() {
       FB.init({appId: "108492862525832", status: true, cookie: true,
             xfbml: true});
        };
     (function() {
      var e = document.createElement("script"); e.async = true;
     e.src = document.location.protocol +
       "//connect.facebook.net/en_US/all.js";
     document.getElementById("fb-root").appendChild(e);
   }());
   </script><div class = "fb-div"><fb:like href="http://www.nuwanbando.com/2007/04/placing-dhtml-layers-over-the-flash-content/" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" /></div>]]></content:encoded>
			<wfw:commentRss>http://www.nuwanbando.com/2007/04/placing-dhtml-layers-over-the-flash-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
