<?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>kBLOG</title>
	<atom:link href="http://blog.amr-gawish.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.amr-gawish.com</link>
	<description>because you Kare to learn!</description>
	<lastBuildDate>Sun, 27 Jun 2010 00:44:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Summer Check List</title>
		<link>http://blog.amr-gawish.com/183/summer-check-list/</link>
		<comments>http://blog.amr-gawish.com/183/summer-check-list/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 00:25:41 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=183</guid>
		<description><![CDATA[Since my summer isn&#8217;t really a regular summer, being away from my family and my friends, so I have to do something different Something different that doesn&#8217;t include going to the beach, nor hanging around with my folks and go to movies (KSA doesn&#8217;t have any Cinemas -Believe it-) So here is my initial draft [...]]]></description>
			<content:encoded><![CDATA[<p>Since my summer isn&#8217;t really a regular summer, being away from my family and my friends, so I have to do something different</p>
<p>Something different that doesn&#8217;t include going to the beach, nor hanging around with my folks and go to movies (KSA doesn&#8217;t have any Cinemas -Believe it-)</p>
<p>So here is my initial draft for my To Do Summer list (that is in my spare time as I&#8217;ll be working in summer)</p>
<p>1- Organize my mails, and Finish reading all of them (I have about 515 unread mails)</p>
<p>2- Finish SOA 11g and Oracle IDM books</p>
<p>3- Create Apps (Maybe one for android, If I got my HTC EVO4)</p>
<p>If you have some thoughts, or if you have a plan, u can share it here as I may steal some of ur ideas <img src='http://blog.amr-gawish.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/183/summer-check-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ADF Desktop Integration</title>
		<link>http://blog.amr-gawish.com/181/adf-desktop-integration/</link>
		<comments>http://blog.amr-gawish.com/181/adf-desktop-integration/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:57:35 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[ADF]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=181</guid>
		<description><![CDATA[This is a great news, now you can make an ADF application all within the excel with real life data and actions from ADF and ADF binding. I can&#8217;t wait to test and see how this works check it out http://www.oracle.com/technology/products/adf/adfdi/index.html]]></description>
			<content:encoded><![CDATA[<p>This is a great news, now you can make an ADF application all within the excel with real life data and actions from ADF and ADF binding.</p>
<p>I can&#8217;t wait to test and see how this works</p>
<p>check it out <a href="http://www.oracle.com/technology/products/adf/adfdi/index.html">http://www.oracle.com/technology/products/adf/adfdi/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/181/adf-desktop-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup all your SMS from iPhone in 4 easy steps</title>
		<link>http://blog.amr-gawish.com/176/backup-all-your-sms-from-iphone-in-4-easy-steps/</link>
		<comments>http://blog.amr-gawish.com/176/backup-all-your-sms-from-iphone-in-4-easy-steps/#comments</comments>
		<pubDate>Fri, 14 May 2010 11:12:59 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=176</guid>
		<description><![CDATA[No wonder when you want to change your mobile you want to keep your SMS for history purposes, in my case I want to buy an Android Enabled mobile and sell my iPhone 2G, and I have old SMSs that I want to keep, so I searched a little and here is my solution scenarios. [...]]]></description>
			<content:encoded><![CDATA[<p>No wonder when you want to change your mobile you want to keep your SMS for history purposes, in my case I want to buy an Android Enabled mobile and sell my iPhone 2G, and I have old SMSs that I want to keep, so I searched a little and here is my solution scenarios.</p>
<p><strong>First Scenario</strong></p>
<p>Buy a 1$ app to do that for you!</p>
<p><strong>Second Scenario</strong></p>
<p>Follow the following steps</p>
<p><span id="more-176"></span></p>
<p>Prerequisites:</p>
<ol>
<li><a href="http://code.google.com/p/iphonebrowser/downloads/list">iPhone Browser</a></li>
<li><a href="http://www.sqlite.org/sqlite-3_6_23_1.zip">SQL Lite 3</a></li>
<li><a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad ++</a></li>
</ol>
<p>After downloading all these software, plug your iphone and do the following:</p>
<ol>
<li>First open up iPhone Browser and navigate to User/Library/SMS/sms.db and download it to your pc, lets say on C:\mySMS\sms.db
<p><a href="http://blog.amr-gawish.com/wp-content/uploads/2010/05/iphone-browser.png"><img class="alignnone size-thumbnail wp-image-178" title="iphone-browser" src="http://blog.amr-gawish.com/wp-content/uploads/2010/05/iphone-browser-150x150.png" alt="iphone-browser" width="150" height="150" /></a></li>
<li>open your command prompt -after installing sql lite 3- and navigate to cd C:\mySMS\</li>
<li>write the following codes<code><br />
sqlite3 mySMS<br />
.restore sms.db<br />
.output mySMS.txt<br />
Select address, datetime(date,'unixepoch'), text from message;<br />
</code></li>
<li>To separate messages by a line feed, open Notepad++ and hit ctrl+f, go to replace tab and check the Regular Expression check box, and put the following in Find what <strong>^(.+\|.+\|)</strong> and put the following in Replace with <strong>\n\1</strong></li>
</ol>
<p>And voala you have a text file with all your SMSs in it!</p>
<p>You only have to go for each mobile number and change it to the equivalent name by replace all functionality in Notepad++</p>
<p>PS: this is all your sms, sent and received, If you want only sent then change your query to &#8220;Select address, datetime(date,&#8217;unixepoch&#8217;), text from message where flags=3;&#8221; or &#8220;Select address, datetime(date,&#8217;unixepoch&#8217;), text from message where flags=2;&#8221; for received messages.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/176/backup-all-your-sms-from-iphone-in-4-easy-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Middleware mdlwr Blog</title>
		<link>http://blog.amr-gawish.com/173/middleware-mdlwr-blog/</link>
		<comments>http://blog.amr-gawish.com/173/middleware-mdlwr-blog/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 11:12:06 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[SOA]]></category>
		<category><![CDATA[Webcenter]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=173</guid>
		<description><![CDATA[I&#8217;ve though about this long time ago, but I didn&#8217;t have the courage nor the content to start it. Now that I do have the courage -content is on the way!- to announce the blog mdlwr you can go directly check it, or you can see its latest news via twitter]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve though about this long time ago, but I didn&#8217;t have the courage nor the content to start it.</p>
<p>Now that I do have the courage -content is on the way!- to announce the blog <a title="Oracle Middleware Blog - by Amr Gawish" href="http://mdlwr.amr-gawish.com" target="_blank">mdlwr</a> you can go directly check it, or you can see its latest news via <a title="mdlwr twitter account" href="http://twitter.com/mdlwr" target="_blank">twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/173/middleware-mdlwr-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Back to blogging</title>
		<link>http://blog.amr-gawish.com/170/back-to-blogging/</link>
		<comments>http://blog.amr-gawish.com/170/back-to-blogging/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 10:31:11 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[arabic]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=170</guid>
		<description><![CDATA[I&#8217;ve moved from my company towards Advanced Operations Technology to work as Oracle Middleware Consultant in KSA Its an exciting opportunity with different set of responsibilities and experiences, I feel I&#8217;m gonna enjoy it inshaAllah. I&#8217;ll be blogging about technical/non-technical issues that I deal with in the following time, and I&#8217;ll be back to blogging. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve moved from my company towards <strong>A</strong>dvanced<strong> O</strong>perations<strong> T</strong>echnology to work as Oracle Middleware Consultant in KSA</p>
<p>Its an exciting opportunity with different set of responsibilities and experiences, I feel I&#8217;m gonna enjoy it inshaAllah.</p>
<p>I&#8217;ll be blogging about technical/non-technical issues that I deal with in the following time, and I&#8217;ll be back to blogging.</p>
<p>For whomever wants to hear about Arabic in Android, it&#8217;ll be on my free time, Hope I can add a thing or two inshaAllah.</p>
<p>See you in the comments</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/170/back-to-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve been twitterized!</title>
		<link>http://blog.amr-gawish.com/161/ive-been-twitterized/</link>
		<comments>http://blog.amr-gawish.com/161/ive-been-twitterized/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 11:58:26 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=161</guid>
		<description><![CDATA[Lately I&#8217;ve become attached to my twitter account, as I hit my 100 follower! Even facebook has become second in this list, as all my news has been transfered dynamically to my facebook through friendfeed app. I&#8217;ve went into debate once about how much twitter is better than RSS feeds, as I used to be [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://newmexicoindependent.com/wp-content/uploads/2008/12/twitter-art.jpg" alt="twitterized" width="350" height="277" /></p>
<p style="text-align: left;">Lately I&#8217;ve become attached to my <a href="http://twitter.com/agawish">twitter</a> account, as I hit my 100 follower!<br />
Even <a href="http://www.facebook.com/agawish">facebook</a> has become second in this list, as all my news has been transfered dynamically to my facebook through <a href="http://friendfeed.com/agawish">friendfeed</a> app.</p>
<p>I&#8217;ve went into debate once about how much twitter is better than RSS feeds, as I used to be once attached to my RSS feeds through google reader myself.</p>
<p>The reasons that twitter is better than RSS in my opinion are:</p>
<ol>
<li><strong>twitter is more human!</strong>
<p>Yes you heard it right, you can actually feel it, RSS feeds are more like mails, it have subject, body and a sender, so solid and so boring, but twitter is more humanized, it shows you a title, maybe a link, a personal opinion and you can actually communicate with your twitter friend, while you cant with your RSS feed item!</p>
</li>
<li> <strong>a stream that you love</strong>
<p>In twitter I actually see all my news in a one stream, it makes it easy to know the latest news in the last days, without having to go to BBC RSS feed to know the latest news, and if I need any categorization I put them into a list of related interest or topic, and ofcourse if I need to know a news about certain somebody I can just click on his twitter account.<br />
I know many people will argue with me, as google reader have this feature as well, but believe me its different, even placing an icon -avatar- is more human readable than just a name of the RSS feed source!</p>
</li>
<li><strong>it&#8217;s easier to follow, than adding new RSS feed to the list!</strong>
<p>Call me lazy, but with one click I get the streams I like from the person, and I don&#8217;t have to go to only the latest ten news, but I have access to all of his stories as well!</p>
</li>
</ol>
<p>I can add some more reasons in the future, but right now I think you already realized the benefits.</p>
<p>And for those who don&#8217;t have a twitter account, go for it now you are wasting so much time already finding the news you like to read, while it can get right into your stream a few clicks ahead!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/161/ive-been-twitterized/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to Egypt, Watching carefully job opportunities!</title>
		<link>http://blog.amr-gawish.com/155/back-to-egypt/</link>
		<comments>http://blog.amr-gawish.com/155/back-to-egypt/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 05:27:10 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=155</guid>
		<description><![CDATA[CAUTIOUS: NON TECHNICAL POST I&#8217;ve been back to Egypt, after a really successful implementation of phase I of Royal Protocols -المراسم الملكية- Intranet and Internet portals using Oracle Webcenter framework. I believe I&#8217;m the first to implement it in an Arabic context style in KSA and maybe in the middle east , its not hard [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 310px"><a href="http://midnightcookie.deviantart.com/art/Thinking-of-38760386"><img title="Thinking" src="http://th01.deviantart.net/fs11/300W/i/2006/239/2/e/Thinking_of____by_MidnightCookie.jpg" alt="Thinking" width="300" height="212" /></a><p class="wp-caption-text">Thinking</p></div>
<p><span style="color: #ff0000;">CAUTIOUS: NON TECHNICAL POST</span></p>
<p>I&#8217;ve been back to Egypt, after a really successful implementation of phase I of Royal Protocols -المراسم الملكية- Intranet and Internet portals using Oracle Webcenter framework.</p>
<p>I believe I&#8217;m the first to implement it in an Arabic context style in KSA and maybe in the middle east <img src='http://blog.amr-gawish.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , its not hard though!</p>
<p>Thanks God, I&#8217;ve been offered multiple job opportunities, that are all great but I have to consider one, and actually the calculation, variables and maths done to calculate what best suits me aint enough.</p>
<p>True I use math to measure what best fits me, its actually probabilities but I think you already realized that.</p>
<p>The thing about probabilities is that you can know what best suits you, when you add an important factor, how much this thing weights in your mind, how much this thing is important to you, or with other words How you prioritize this thing?<br />
The more this thing -thing is a general term for many stuff- is high ranked in your priorities list, the more it weights, and to tell you the truth I cant weight everything out yet.</p>
<p>So many variables and situation that has been rushing into my life lately that I cant really focus on which one is top priority and which to be last -or at least down in basement- .</p>
<p>I&#8217;ve done my share of researching, asking people, praying ofcourse and all that, but still I really need to decide it up myself.</p>
<p>ed3oli Rabena yakhod byaddi!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/155/back-to-egypt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dependent Combo Boxes Using Oracle ADF</title>
		<link>http://blog.amr-gawish.com/149/dependent-combo-boxes-using-oracle-adf/</link>
		<comments>http://blog.amr-gawish.com/149/dependent-combo-boxes-using-oracle-adf/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 00:47:39 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[ADF]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=149</guid>
		<description><![CDATA[For this tutorial I&#8217;ll be using the latest patch set or Oracle JDeveloper 11.1.1.2 and Oracle XE Database. What I&#8217;ll be demonstrating how to create a simple JSF (.jspx) web page that has two combo boxes that depend on one another. In other words, two combo boxes (af:SelectOneChoice) depend on each other and are automatically [...]]]></description>
			<content:encoded><![CDATA[<h1 id="head1" class="head1"><span style="font-weight: normal; font-size: 13px;">For this tutorial I&#8217;ll be using the latest patch set or Oracle <a title="http://www.oracle.com/technology/software/products/jdev/htdocs/soft11.html" href="http://www.oracle.com/technology/software/products/jdev/htdocs/soft11.html">JDeveloper 11.1.1.2</a> and <a title="http://www.oracle.com/technology/software/products/database/xe/index.html" href="http://www.oracle.com/technology/software/products/database/xe/index.html">Oracle XE Database</a>.</span></h1>
<p>What I&#8217;ll be demonstrating how to create a simple JSF (.jspx) web page that has two combo boxes that depend on one another. In other words, two combo boxes (af:SelectOneChoice) depend on each other and are automatically refreshed when selected.</p>
<p>Here is an index of each section in my article:</p>
<ol class="dec">
<li><a title="Jump to Section" href="#head2">Create New Application</a></li>
<li><a title="Jump to Section" href="#head3">Setup Database Connection</a></li>
<li><a title="Jump to Section" href="#head4">Working with the Model</a></li>
<li><a title="Jump to Section" href="#head5">Creating the View / JSF Page</a></li>
<li><a title="Jump to Section" href="#head6">Creating the Navigation Form</a></li>
<li><a title="Jump to Section" href="#head7">Adding The Combo Boxes</a></li>
<li><a title="Jump to Section" href="#head8">Wiring the Combo Boxes</a></li>
</ol>
<p><span id="more-149"></span></p>
<h3 id="head2" class="head3">Create New Application</h3>
<p>Alright, let&#8217;s get started by creating a new Application <strong>Fusion Web Application (ADF)</strong>. I&#8217;ll call the application name <strong>DependentCombos</strong>, and my application package prefix will be <strong>org.k.tutorials</strong>.</p>
<p><img id="img1" src="http://www.itnewb.com/articles/54-3f62c3181c7856712.jpg" alt="Figure 1" /></p>
<p>I&#8217;ll leave the rest of the options and settings at their defaults and hit <strong>Finish</strong> on the next step. You can adjust the options and settings if you want to, you are totally allowed to (I can&#8217;t prevent you from doing it, do it, do it man <img src='http://blog.amr-gawish.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ).</p>
<h3 id="head3" class="head3">Setup Database Connection</h3>
<p>Now let&#8217;s setup a connection to a database so we are able to create some Entities and View objects. For the purpose of this tutorial I used the famous HR Schema that exists in any Oracle Database.</p>
<p>To setup the connection to my database server I need to go to the <strong>Application Resources</strong> pane/panel on the left side (the Application Navigation area). It should be under the Projects panel. If it&#8217;s not there, go to View -&gt; Application Navigation and the panels should appear on the left.</p>
<p>Inside the Application Resources panel right click on Connections and then select New Connection -&gt; Database. Fill in the details, test the connection and you&#8217;re good to go.</p>
<p><img id="img2" src="http://www.itnewb.com/articles/54-8ffa36ca6daef06c6.jpg" alt="Figure 2" /></p>
<h3 id="head4" class="head3">Working with the Model</h3>
<p>In the Projects panel on the left, right click on Model and click New. In the New Gallery screen that appears go to Business Tier -&gt; ADF Business Components and then select Business Components from Tables on the right side and click OK. Now in the Initialize Business Components screen that appears after clicking OK, choose the connection we created above, leaving everything else to the defaults and hitting Next.</p>
<p>In step 1 (Entity Objects) enter <strong>org.k.tutorials.model.entities</strong> as the package name. Now click the Query button to populate the list of available tables and then let&#8217;s select <strong>Locations</strong>, <strong>Regions</strong> and <strong>Countries</strong> as the entities to use. Once you&#8217;ve selected/moved them over, rename each of the entities so their names are singular. In other words, change the &#8220;Entity Names&#8221; to Location, Region and Country. Click Next to proceed to step 2.</p>
<p><img id="img3" src="http://www.itnewb.com/articles/54-988f426edaf7ab099.jpg" alt="Figure 3" /></p>
<p>Now in step 2 (Updatable View Objects) enter <strong>org.k.tutorials.model.views</strong> as the package name. Next, select only Location, give it an Object Name of Locations and click Next to continue.</p>
<p><img id="img4" src="http://www.itnewb.com/articles/54-26255bb0d04638691.jpg" alt="Figure 4" /></p>
<p>In step 3 (Read-Only View Object) enter <strong>org.k.tutorials.model.roviews</strong> as the package name. Next click the Query button and then select only Regions and Countries and rename them to be <strong>Regions</strong>, <strong>Countries</strong> instead of <em>RegionsView</em>, <em>CountriesView</em>. Click Next.</p>
<p><img id="img5" src="http://www.itnewb.com/articles/54-aff3164889c972ffd.jpg" alt="Figure 5" /></p>
<p>Finally in step 4 (Application Module) enter <strong>org.k.tutorials.model</strong> as the package name. I like to put this in the root of the structure with the name <em>HrAppModule</em>. So that’s it for now, in the model, click Finish and let&#8217;s start working in the ViewController.</p>
<h3 id="head5" class="head3">Creating the View / JSF Page</h3>
<p>Now we&#8217;re going to create the view in a similar fashion as we created the model. In the Projects panel, right click on ViewController and then click New. In the New Gallery screen that appears go to Web Tier -&gt; JSF and then select JSF Page on the right side and click OK.</p>
<p>In the Create JSF Page screen that appears, enter <strong>MyPage.jspx</strong> as the file name, ensure Create as XML Document is checked and lets choose a template of your choice from the Quick Start layout (I personally use the one column with fixed header and scrollable auto body) and then click OK.</p>
<p><img id="img6" src="http://www.itnewb.com/articles/54-24b8095619e5c53f6.jpg" alt="Figure 6" /></p>
<h3 id="head6" class="head3">Creating the Navigation Form</h3>
<p>In the Application Navigation structure on the left, expand the Data Controls panel and then expand <strong>HrAppModuleDataControl</strong> inside of it. Now ensure the <strong>MyPage.jspx</strong> Structure panel is open (it should be below the Data Controls panel). If it&#8217;s not, go to View -&gt; Structure.</p>
<p>Once HrAppModuleDataControl is expanded in the Data Controls panel and the MyPage.jspx Structure panel is open, we need to drag <strong>Locations1</strong> in Data Controls to f:view -&gt; af:document -&gt; af:form -&gt; af:panelStretchLayout -&gt; Panel Stretch Layout facets -&gt; center in the Structure panel. You can also simply drag and drop Locations1 into the center working area column of JDeveloper when the MyPage.jspx tab is selected and in Design view &#8212; it&#8217;s the tab to the right of the DependentCombos Overview tab.</p>
<p>Whichever way you choose to perform the drag and drop a menu will appear and you should select <strong>Form -&gt; ADF Form</strong> as shown below.</p>
<p><img id="img7" src="http://www.itnewb.com/articles/54-d2493dd872b0c9080.jpg" alt="Figure 7" /></p>
<p>Next an Edit Form Fields dialog will appear. Let&#8217;s include navigation controls by checking it and then click OK.</p>
<p><img id="img8" src="http://www.itnewb.com/articles/54-93855d134b318ef2e.jpg" alt="Figure 8" /></p>
<h3 id="head7" class="head3">Adding The Combo Boxes</h3>
<p>Alright, lets get to business. Now we will drag and drop Regions1 (the first combo box) from Data Controls into the <strong>af:panelFormLayout</strong> that we just created above. When the menu prompts select <strong>Single Selection -&gt; ADF Select One Choice</strong>.</p>
<p><img id="img9" src="http://www.itnewb.com/articles/54-a6610a4be9abb3417.jpg" alt="Figure 9" /></p>
<p>Now in the Edit List Bindings dialog that appears we will set the Display Attribute (column) to be simply RegionName and then click OK.</p>
<p><img id="img10" src="http://www.itnewb.com/articles/54-cf663b2e6199b0404.jpg" alt="Figure 10" /></p>
<p>Next we will add the Country Combo box, but we&#8217;ll do it in a slightly different fashion than the Regions Combo box. What we&#8217;ll do this time is drag and drop CountryId from inside of Locations1 to the same location in the Structure that you did the drag and drop with Regions1.</p>
<p>In other words, drag and drop HrAppModuleDataControl -&gt; Locations1 -&gt; CountryId in the Data Controls panel to center -&gt; af:panelFormLayout in the Structure panel and when the menu prompts select <strong>singleSelection -&gt; ADF Select one choice</strong>.</p>
<p>Now in the Edit List Bindings screen that appears click the Add button to the right of the &#8220;List Data Sources&#8221; menu. In the Add Data Source dialog that appears expand Regions1 and select Countries2 as the data source and click OK.</p>
<p>Next for the data mapping, let&#8217;s set the Data Value as <strong>CountryId</strong> and List Attribute as <strong>CountryId</strong> as well (this should already be populated). Down below under List Items set the Display Attribute to <strong>CountryName</strong>.</p>
<p>Doing so will effect like the following:</p>
<p>1- Make <strong>countryId</strong> in <strong>Locations1</strong> Iterator take its value from <strong>CountryId</strong> of <strong>Countries2</strong> Iterator</p>
<p>2- Make the visible combo box to user is the value of column <strong>CountryName</strong> from <strong>Countries2</strong> iterator</p>
<p>3- After selecting one of Countries that will effect the changes to get The <strong>CountryId</strong> of the selected <strong>CountryName</strong> to bind it to <strong>CountryId</strong> of the <strong>Locations1</strong> iterator</p>
<p>Also note, choosing <strong>Countries2</strong> from under <strong>Region1</strong> iterator means that <strong>Countries2</strong> is a detail table for a master <strong>Region1</strong>, that way when <strong>Region</strong> combo Box is selected, the <strong>regionID</strong> is automatically appended in the Where Statement of <strong>Countries2</strong> iterator SQL Query, and that way the <strong>Countries2</strong> Iterator is filter depending on <strong>Region1</strong> Combo Box value<br />
<img id="img11" src="http://www.itnewb.com/articles/54-16b9760fdb1be7ac0.jpg" alt="Figure 11" /></p>
<h3 id="head8" class="head3">Wiring the Combo Boxes</h3>
<p>Okay so now we need to make the Combo boxes depend on each other. To do this we need to edit the source of MyPage.jspx, and we can do that by going to the MyPage.jspx tab in the center working area of JDveloper and then selecting Source down at the bottom.</p>
<p>In the source, scroll down to where our two af:selectOneChoice elements are located (the combo boxes). In the first combo box (Regions1 with id=&#8221;soc1&#8243;) add the attribute <tt>autoSubmit="true"</tt>. Now in the second combo box (CountryId1 with id=&#8221;soc2&#8243;) add the attribute <tt>partialTriggers="::soc1"</tt>.</p>
<p>We add &#8220;::&#8221; before the component ID in the partialTriggers attribute value so that an AJAX call occurs when the value of the Region combo box changes. When this happens, the Country combo box values are automatically updated according to the Region selected.</p>
<p><img id="img12" src="http://www.itnewb.com/articles/54-b7ab54b23b4e78bc1.jpg" alt="Figure 12" /></p>
<p>Here is what the source should look like when you finish modifying it.</p>
<p><img id="img13" src="http://www.itnewb.com/articles/54-cee842db0bf77c41b.jpg" alt="Figure 13" /></p>
<p>Now let&#8217;s add a commit button to our form. To do this, drag and drop HrAppModuleDataControl -&gt; Operations -&gt; Commit in the Data Control panel to af:panelStrechLayout -&gt; f:facet center -&gt; af:panelFormLayout -&gt; f:facet footer -&gt; af:panelGroupLayout horizontal. When the menu prompts, select ADF Button.</p>
<p>Now go to the source code and remove the disabled attribute from the commit button you just added (af:commandButton / Commit). These are disabled by default for security purposes.</p>
<p>Alright, at this point everything we have is just a show, there isn&#8217;t any real database activity occurring. The combo boxes should be populated with data and so we can test our dependent combo&#8217;s as a proof of concept.</p>
<p>This article is published in ITNewb, view it on this <a href="http://www.itnewb.com/v/Create-a-Chain-of-Dependent-Combo-Boxes-Using-Oracle-ADF">link</a>, check it its great.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/149/dependent-combo-boxes-using-oracle-adf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>At Riyadh in a webcenter Project</title>
		<link>http://blog.amr-gawish.com/147/at-riyadh-in-a-webcenter-project/</link>
		<comments>http://blog.amr-gawish.com/147/at-riyadh-in-a-webcenter-project/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 00:17:55 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[ADF]]></category>
		<category><![CDATA[Webcenter]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[portlets]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=147</guid>
		<description><![CDATA[It&#8217;s sure nice to be back to writing in kBlog. I&#8217;ve been away for really really really long time, but I&#8217;m sure missing it, and I wont be letting that slip away again. Unfortunately I&#8217;m still busy in a new project in KSA Riyadh, Webcenter and ADF dealing with &#8220;المراسم الملكية&#8221;, It&#8217;ll be the first real project [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s sure nice to be back to writing in kBlog.</p>
<p>I&#8217;ve been away for really really really long time, but I&#8217;m sure missing it, and I wont be letting that slip away again.</p>
<p>Unfortunately I&#8217;m still busy in a new project in KSA Riyadh, Webcenter and ADF dealing with &#8220;المراسم الملكية&#8221;, It&#8217;ll be the first real project for me using webcenter, and I&#8217;m talking about webcenter 11g in here.</p>
<p>But I&#8217;ll try to be Here more, and I&#8217;ll do keep update of this blog alive.</p>
<p>I&#8217;m scheduling to post 2 articles in <a href=" http://www.itnewb.com/" target="_blank">itnewb</a> in the next couple of days, and I&#8217;ll share it in here as well.</p>
<p>Hope you are all glad for me to be back <img src='http://blog.amr-gawish.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/147/at-riyadh-in-a-webcenter-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bad at written quiz&#8217;s</title>
		<link>http://blog.amr-gawish.com/145/bad-at-written-quizs/</link>
		<comments>http://blog.amr-gawish.com/145/bad-at-written-quizs/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 10:57:01 +0000</pubDate>
		<dc:creator>agawish</dc:creator>
				<category><![CDATA[K]]></category>
		<category><![CDATA[agawish]]></category>
		<category><![CDATA[Amr Gawish]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://blog.amr-gawish.com/?p=145</guid>
		<description><![CDATA[It&#8217;s just weird, When I go to an interview or something and I know I&#8217;m good for the job however I suck big time doing their written quiz! Its not because I don&#8217;t know, but I believe Its because I&#8217;m not focusing in those written ones! I used to be like this with oral quiz [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s just weird, When I go to an interview or something and I know I&#8217;m good for the job however I suck big time doing their written quiz!</p>
<p>Its not because I don&#8217;t know, but I believe Its because I&#8217;m not focusing in those written ones!</p>
<p>I used to be like this with oral quiz as well, but I improved this skill to be only lacking one thing which is written quiz&#8217;s</p>
<p><strong>ربنا يتوب علينا</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amr-gawish.com/145/bad-at-written-quizs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
