<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matt Cooper&#039;s Weblog</title>
	<atom:link href="http://formattc.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://formattc.wordpress.com</link>
	<description>A Blog with Technical Tips</description>
	<lastBuildDate>Thu, 09 May 2013 22:50:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='formattc.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Matt Cooper&#039;s Weblog</title>
		<link>http://formattc.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://formattc.wordpress.com/osd.xml" title="Matt Cooper&#039;s Weblog" />
	<atom:link rel='hub' href='http://formattc.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Accessing Managed Beans from Java</title>
		<link>http://formattc.wordpress.com/2013/03/29/accessing-managed-beans-from-java/</link>
		<comments>http://formattc.wordpress.com/2013/03/29/accessing-managed-beans-from-java/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 00:33:20 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[backing]]></category>
		<category><![CDATA[backingBeanScope]]></category>
		<category><![CDATA[bean]]></category>
		<category><![CDATA[el]]></category>
		<category><![CDATA[expression]]></category>
		<category><![CDATA[faces]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[managed]]></category>
		<category><![CDATA[pageFlowScope]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[requestScope]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[sessionScope]]></category>
		<category><![CDATA[viewScope]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=270</guid>
		<description><![CDATA[The following link shows a helpful article comparing alternate ways of using Java to programmatically retrieve an ADF Faces or JSF managed bean.  In other words, this is how to evaluate EL in Java code. http://java.sys-con.com/node/1984284<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=270&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The following link shows a helpful article comparing alternate ways of using Java to programmatically retrieve an ADF Faces or JSF managed bean.  In other words, this is how to evaluate EL in Java code.</p>
<p><a href="http://java.sys-con.com/node/1984284" target="_blank">http://java.sys-con.com/node/1984284</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=270&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2013/03/29/accessing-managed-beans-from-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
		<item>
		<title>iOS Web Inspector</title>
		<link>http://formattc.wordpress.com/2013/03/21/ios-web-inspector/</link>
		<comments>http://formattc.wordpress.com/2013/03/21/ios-web-inspector/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 20:44:23 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[faces]]></category>
		<category><![CDATA[inspect]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jet]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=261</guid>
		<description><![CDATA[If you are using iOS 6 and Safari 6, you can inspect web pages shown in Mobile Safari or in WebViews of applications like those created with ADF Mobile. This can either be in the iOS Simulator or on a device (iPhone, iPad, iPod touch) connected over USB. In Safari 6, enable the &#8220;Develop&#8221; menu: [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=261&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If you are using iOS 6 and Safari 6, you can inspect web pages shown in Mobile Safari or in WebViews of applications like those created with ADF Mobile. This can either be in the iOS Simulator or on a device (iPhone, iPad, iPod touch) connected over USB.</p>
<p>In Safari 6, enable the &#8220;Develop&#8221; menu:</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/enable-develop-menu.png"><img class="aligncenter size-full wp-image-262" alt="Enable Safari Develop menu" src="http://formattc.files.wordpress.com/2013/03/enable-develop-menu.png?w=490&#038;h=286" width="490" height="286" /></a></p>
<p>From that menu, your connected devices and iOS Simulator will display as submenus. Each submenu will list all of the WebViews that you are able to inspect (if you are not sure which one you want, a highlight will appear on your device or in the simulator as you hover over each menu item):</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/inspect-a-webview.png"><img class="aligncenter size-full wp-image-263" alt="Open a WebView inspector" src="http://formattc.files.wordpress.com/2013/03/inspect-a-webview.png?w=490&#038;h=199" width="490" height="199" /></a></p>
<p>A web inspector window will open:</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/inspector.png"><img class="aligncenter size-full wp-image-264" alt="Safari web inspector" src="http://formattc.files.wordpress.com/2013/03/inspector.png?w=490&#038;h=250" width="490" height="250" /></a></p>
<p>In the first column, the panel with a document icon <span style="color:#339966;">(1)</span> is where you can browse the DOM, look at scripts, style sheets, etc.  When the HTML page is selected, the middle panel will show you the DOM tree <span style="color:#339966;">(3)</span> which you can manually browse for an element. Alternatively, you can use the hand tool <span style="color:#339966;">(2)</span> to click on the screen (of the actual device or the simulator) to pick an element that you want to inspect.</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/simulator.png"><img class="aligncenter size-full wp-image-265" alt="Simulator with element selected" src="http://formattc.files.wordpress.com/2013/03/simulator.png?w=490"   /></a></p>
<p>With an element selected, you can then use the &#8220;{}&#8221; icon <span style="color:#339966;">(4)</span> of the right panel to view the element&#8217;s style properties.  This will show you the exact selectors that are providing each style to the element <span style="color:#339966;">(5)</span>. This is incredibly valuable, particularly when multiple selectors are competing (a line will strike out any styles that lose due to some other more specific selector). You can also edit those values directly or add additional properties and see the change immediately take effect on the screen. Unfortunately, there&#8217;s no way to save off any changes you&#8217;ve made. If you are trying to create a custom style sheet, you&#8217;ll need to jot down elsewhere the changes you&#8217;ve made; if you leave the page or close the app, you&#8217;ll lose your changes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=261&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2013/03/21/ios-web-inspector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/enable-develop-menu.png" medium="image">
			<media:title type="html">Enable Safari Develop menu</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/inspect-a-webview.png" medium="image">
			<media:title type="html">Open a WebView inspector</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/inspector.png" medium="image">
			<media:title type="html">Safari web inspector</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/simulator.png" medium="image">
			<media:title type="html">Simulator with element selected</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a panelGridLayout or tableLayout structure</title>
		<link>http://formattc.wordpress.com/2013/03/19/creating-a-panelgridlayout-or-tablelayout-structure/</link>
		<comments>http://formattc.wordpress.com/2013/03/19/creating-a-panelgridlayout-or-tablelayout-structure/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 00:59:21 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[amx]]></category>
		<category><![CDATA[cellFormat]]></category>
		<category><![CDATA[columnSpan]]></category>
		<category><![CDATA[complex]]></category>
		<category><![CDATA[faces]]></category>
		<category><![CDATA[gridCell]]></category>
		<category><![CDATA[gridRow]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mockup]]></category>
		<category><![CDATA[panelGridLayout]]></category>
		<category><![CDATA[panelGroupLayout]]></category>
		<category><![CDATA[rowLayout]]></category>
		<category><![CDATA[rowSpan]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[tableLayout]]></category>
		<category><![CDATA[technique]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=243</guid>
		<description><![CDATA[It may be tempting to go crazy with panelGroupLayout components in ADF Faces and ADF Mobile. The panelGroupLayout is not the universal hammer. In many cases, you will have a simpler structure (easier to maintain, more predictable, faster performing, more flexible) if you build your structure using a panelGridLayout or tableLayout instead. When you are [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=243&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It may be tempting to go crazy with panelGroupLayout components in ADF Faces and ADF Mobile. The panelGroupLayout is not the universal hammer. In many cases, you will have a simpler structure (easier to maintain, more predictable, faster performing, more flexible) if you build your structure using a panelGridLayout or tableLayout instead.</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/structure.png"><img class="aligncenter size-full wp-image-244" alt="structure" src="http://formattc.files.wordpress.com/2013/03/structure.png?w=490"   /></a></p>
<p>When you are given a mock-up of what the application should look like, you may not know how to break it down into something simple. Either print out the design on a piece of paper or open it up in a graphics program where you can draw some lines.</p>
<ol>
<li><span style="line-height:13px;">Draw vertical lines representing potential column divisions (red)</span></li>
<li>Draw horizontal lines for potential row divisions (green)</li>
<li>Now that you have a basic grid structure, use a different color (yellow) to draw x marks where you see cells that need to span multiple columns or rows:<br />
<a href="http://formattc.files.wordpress.com/2013/03/structure-lines-b.png"><img class="aligncenter size-full wp-image-245" alt="Initial set of lines" src="http://formattc.files.wordpress.com/2013/03/structure-lines-b.png?w=490"   /></a></li>
<li>You may find that your column lines really don&#8217;t make sense (in this case, the 2 middle columns had no cells in them that didn&#8217;t need to span into a nearby column. This is an indication that there probably ought to be 2 separate grids or tables.  Use a new color (magenta) to draw a line where the division makes sense and repeat the process again:<br />
<a href="http://formattc.files.wordpress.com/2013/03/structure-lines-d1.png"><img class="aligncenter size-full wp-image-247" alt="Refined lines" src="http://formattc.files.wordpress.com/2013/03/structure-lines-d1.png?w=490"   /></a></li>
</ol>
<p>Now you can go back to coding your gridRow/gridCell or rowLayout/cellFormat components because you can visually see where the content goes and where you need to use a special columnSpan or rowSpan. As an added bonus, you now have the ability to specify the sizes for your cells as well as the horizontal and vertical alignments of your cells&#8211;something panelGroupLayout would not allow you to control.</p>
<p><a href="http://formattc.files.wordpress.com/2013/03/the-final-structure.png"><img class="aligncenter size-full wp-image-257" alt="Final structure" src="http://formattc.files.wordpress.com/2013/03/the-final-structure.png?w=490"   /></a></p>
<p>Notice that the labels and fields of grid 2 (columns 1 and 2) are showing separate components. This is done so that there can be matching horizontal alignment among the fields of the two rows. If these were input or select components, you would need to use simple=&#8221;true&#8221; (to hide the built-in label) and then use separate outputLabel components that reference them.</p>
<p>While we are only using consecutive grids in the example discussed in this article. You might come across a need to nest a grid inside of another grid. Do not excessively nest panelGridLayout nor tableLayout components (if you have 3 or more deep, consider a re-evaluation of your structure). You may find it helpful if someone else reviews your structure. Your goal should be to create something simple.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=243&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2013/03/19/creating-a-panelgridlayout-or-tablelayout-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/structure.png" medium="image">
			<media:title type="html">structure</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/structure-lines-b.png" medium="image">
			<media:title type="html">Initial set of lines</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/structure-lines-d1.png" medium="image">
			<media:title type="html">Refined lines</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2013/03/the-final-structure.png" medium="image">
			<media:title type="html">Final structure</media:title>
		</media:content>
	</item>
		<item>
		<title>Mac JDeveloper &#8211; Show in Finder</title>
		<link>http://formattc.wordpress.com/2013/02/27/mac-jdeveloper-show-in-finder/</link>
		<comments>http://formattc.wordpress.com/2013/02/27/mac-jdeveloper-show-in-finder/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 16:57:14 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[jdev]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[reveal]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=239</guid>
		<description><![CDATA[Ever wanted to easily reveal a file that you&#8217;re working on in JDeveloper in the Mac OS X Finder? Here&#8217;s how to set up a toolbar button and context menu item to do just that: Go to Tools &#8211; External Tools Click New&#8230; Choose these settings: Type = External Program Executable = open Arguments = [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=239&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Ever wanted to easily reveal a file that you&#8217;re working on in JDeveloper in the Mac OS X Finder?</p>
<p>Here&#8217;s how to set up a toolbar button and context menu item to do just that:</p>
<ol>
<li><span style="line-height:13px;">Go to Tools &#8211; External Tools</span></li>
<li>Click New&#8230;</li>
<li>Choose these settings:<br />
Type = External Program<br />
Executable = open<br />
Arguments = -R ${file.path}<br />
Caption = Show in Finder<br />
Add Item to Menus = Tools Menu, Window Context Menu, Source Editor Context Menu<br />
Add Buttons to Toolbars = Main Toolbar<br />
Log Output to Messages Log = unchecked<br />
Enabled = When a file is selected or open in the editor</li>
</ol>
<p>Once you&#8217;ve created that tool, simply right-click a file in the application navigator, right-click an editor, or use the toolbar button to switch to have JDeveloper automatically switch over to the Finder and open a window with that file selected.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=239&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2013/02/27/mac-jdeveloper-show-in-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Shorthand Tokens</title>
		<link>http://formattc.wordpress.com/2012/11/30/css-shorthand-tokens/</link>
		<comments>http://formattc.wordpress.com/2012/11/30/css-shorthand-tokens/#comments</comments>
		<pubDate>Sat, 01 Dec 2012 00:44:57 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[border-color]]></category>
		<category><![CDATA[border-style]]></category>
		<category><![CDATA[border-width]]></category>
		<category><![CDATA[margin]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[shorthand]]></category>
		<category><![CDATA[tokens]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=234</guid>
		<description><![CDATA[In CSS, you will come across some shorthand notation for the margin, border-color, border-style, border-width, and padding properties. It isn&#8217;t obvious or easy to remember which token in the value applies to which side of the element so here&#8217;s a handy list of the 4 possible varieties: One token &#8212; all-sides-use-the-same-value Two tokens &#8212; top-and-bottom [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=234&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In CSS, you will come across some shorthand notation for the <code>margin</code>, <code>border-color</code>, <code>border-style</code>, <code>border-width</code>, and <code>padding</code> properties. It isn&#8217;t obvious or easy to remember which token in the value applies to which side of the element so here&#8217;s a handy list of the 4 possible varieties:</p>
<ol>
<li>One token &#8212; <span style="color:red;">all-sides-use-the-same-value</span></li>
<li>Two tokens &#8212; <span style="color:red;">top-and-bottom</span> <span style="color:blue;">right-and-left</span></li>
<li>Three tokens &#8212; <span style="color:red;">top</span> <span style="color:green;">right-and-left</span> <span style="color:blue;">bottom</span></li>
<li>Four tokens &#8212; <span style="color:red;">top</span> <span style="color:orange;">right</span> <span style="color:green;">bottom</span> <span style="color:blue;">left</span></li>
</ol>
<p>At least the four-token example can be remembered by associating the element with a clock where time progresses clockwise.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=234&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2012/11/30/css-shorthand-tokens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
		<item>
		<title>HiDPI Images in ADF Mobile Applications</title>
		<link>http://formattc.wordpress.com/2012/11/05/hidpi-images-in-adf-mobile-applications/</link>
		<comments>http://formattc.wordpress.com/2012/11/05/hidpi-images-in-adf-mobile-applications/#comments</comments>
		<pubDate>Mon, 05 Nov 2012 20:59:22 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[amx]]></category>
		<category><![CDATA[hidpi]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[lodpi]]></category>
		<category><![CDATA[lowdpi]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[retina]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=224</guid>
		<description><![CDATA[Whether you are developing an ADF Mobile application or a classic ADF Server application, it is becoming more and more important to support HiDPI screens (high resolution or &#8220;retina&#8221; displays). There is no easier way to make your application look out-dated than to use grainy, unprofessional image assets or use them improperly. In HTML, the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=224&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Whether you are developing an ADF Mobile application or a classic ADF Server application, it is becoming more and more important to support HiDPI screens (high resolution or &#8220;retina&#8221; displays). There is no easier way to make your application look out-dated than to use grainy, unprofessional image assets or use them improperly.</p>
<p>In HTML, the &#8220;px&#8221; unit corresponds to the same amount of space regardless of the DPI of your device (however, the number of device pixels may vary). The original iPhone models did not have HiDPI displays. Each point of color on those screens corresponds to one HTML CSS &#8220;px&#8221; unit. Newer iPhone models introduced a HiDPI (or &#8220;retina&#8221;) display that has 4 device pixels in the same amount of space that 1 device pixel used to take up (2 device pixels wide by 2 device pixels tall); on these new devices, the width and height &#8220;px&#8221; values use twice the amount of device pixels.</p>
<p>Why is this a common problem? Since ADF Mobile uses HTML, displaying an image is not as simple as just specifying the source path and magically hoping the browser will know that you are using a high resolution image. You must specify dimensions to go along with the source path.</p>
<p>Let&#8217;s work with an example. You have an image named &#8220;image-64.png&#8221;. This image has a size of 64 by 64 individual dots of color (individual points of color information). If you coded your page like the following, the image will be shown with a width of 64px and a height of 64px (one color dot per &#8220;px&#8221;):</p>
<p><code>&lt;amx:image id="i1" source="images/image-64.png"/&gt;</code></p>
<p>This would look just fine on a classic low-DPI display. However, on a HiDPI display, it still takes up the same space but since there are more device pixels, the image will look very grainy.</p>
<p>In order to look crisp and professional, you need to set a size so that each dot of color corresponds to at least one device pixel. For a HiDPI display, this means your image needs a width and a height specified such that you use 2 dots of image color information per HTML CSS &#8220;px&#8221; unit (e.g. a 64 by 64 sized image should be specified to use a width of 32px and a height of 32px. In code, your page should look like this:</p>
<p><code>&lt;amx:image id="i1" inlineStyle="width:32px;height:32px" source="images/image-64.png"/&gt;</code></p>
<p>Even if you still want to support legacy devices for your application, this same image (with the same specified width and height) will look beautiful on low-DPI screens because of how images are processed modern browsers.</p>
<p>If for some reason you really needed or wanted to specify alternate images for each kind of device, you have the option to use a device properties EL variable to toggle the rendered state of alternate amx:image components or simply use that EL to alter the inlineStyle and the source path as desired.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=224&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2012/11/05/hidpi-images-in-adf-mobile-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle ADF Mobile Mock Component Gallery Demo</title>
		<link>http://formattc.wordpress.com/2012/10/29/oracle-adf-mobile-mock-component-gallery-demo/</link>
		<comments>http://formattc.wordpress.com/2012/10/29/oracle-adf-mobile-mock-component-gallery-demo/#comments</comments>
		<pubDate>Mon, 29 Oct 2012 16:30:22 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[faces]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/2012/10/29/oracle-adf-mobile-mock-component-gallery-demo/</guid>
		<description><![CDATA[In the past I posted a link to the Oracle ADF Faces Rich Client demos (server-based web applications). Now that the Oracle ADF Mobile framework for native iOS and Android applications has been released, a similar demo is now available: the Oracle ADF Mobile mock component gallery. This mock component gallery is based on the real [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=220&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img id="i-219" class=" wp-image alignright" alt="Demo running in mobile Safari" src="http://formattc.files.wordpress.com/2012/10/mock-gallery.png?w=295&#038;h=593" height="593" width="295" /></p>
<p>In the past I posted a link to the <a href="http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx" target="_blank">Oracle ADF Faces Rich Client demos</a> (server-based web applications). Now that the Oracle ADF Mobile framework for native iOS and Android applications has been <a href="https://blogs.oracle.com/mobile/entry/adf_mobile_released" target="_blank">released</a>, a similar demo is now available: the <a href="http://jdevadf.oracle.com/amx/" target="_blank">Oracle ADF Mobile mock component gallery</a>.</p>
<p>This mock component gallery is based on the real component gallery application bundled with the ADF Mobile JDeveloper extension. The recommended best place to view this demo is using the mobile Safari or Chrome browsers on your iOS and Android devices. Doing that will give you the closest experience to how the components will appear and behave in real ADF Mobile applications. However, you can also view the demo using desktop Safari and Chrome for an approximate experience when access to a mobile device is not available.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=220&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2012/10/29/oracle-adf-mobile-mock-component-gallery-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2012/10/mock-gallery.png?w=818" medium="image">
			<media:title type="html">Demo running in mobile Safari</media:title>
		</media:content>
	</item>
		<item>
		<title>When did I unlock my Mac?</title>
		<link>http://formattc.wordpress.com/2012/08/22/when-did-i-unlock-my-mac/</link>
		<comments>http://formattc.wordpress.com/2012/08/22/when-did-i-unlock-my-mac/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 23:50:58 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[screensaver]]></category>
		<category><![CDATA[secure.log]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=204</guid>
		<description><![CDATA[Prior to Mac OS X 10.8 Mountain Lion, you could open Applications/Utilities/Console.app, pick the log called &#8220;secure.log&#8221; and then see whenever you recently logged in or unlocked your screen saver (with a password). Starting in Mountain Lion, secure.log doesn&#8217;t exist anymore. Now, that same information is available via an Applications/Utilities/Terminal.app shell command: syslog -k Time [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=204&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Prior to Mac OS X 10.8 Mountain Lion, you could open Applications/Utilities/Console.app, pick the log called &#8220;secure.log&#8221; and then see whenever you recently logged in or unlocked your screen saver (with a password).</p>
<p>Starting in Mountain Lion, secure.log doesn&#8217;t exist anymore.</p>
<p>Now, that same information is available via an Applications/Utilities/Terminal.app shell command:</p>
<pre>syslog -k Time ge -10h | egrep -e 'loginwindow'</pre>
<p>This will get all of the syslog records chronologically for the last 10 hours and filter that with the term &#8220;loginwindow&#8221;. Based on that, you can then see each time you logged in&#8211;like what secure.log used to provide.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=204&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2012/08/22/when-did-i-unlock-my-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
		<item>
		<title>Keeping your iTunes Library Fresh (iTunes Match version)</title>
		<link>http://formattc.wordpress.com/2011/11/25/keeping-your-itunes-library-fresh-itunes-match-version/</link>
		<comments>http://formattc.wordpress.com/2011/11/25/keeping-your-itunes-library-fresh-itunes-match-version/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 23:47:47 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[iTunes]]></category>
		<category><![CDATA[iCloud]]></category>
		<category><![CDATA[Match]]></category>
		<category><![CDATA[playlist]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=193</guid>
		<description><![CDATA[Back in 2009, I posted an article titled &#8220;Keeping your iTunes Library Fresh&#8221; that showed how to create a smart playlist that would improve over a simple shuffle of your music library. Based on your ratings, it would play the music you like more often than the music you like less. If you have tried [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=193&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Back in 2009, I posted an article titled &#8220;<a href="http://formattc.wordpress.com/2009/09/23/keeping-your-itunes-library-fresh/">Keeping your iTunes Library Fresh</a>&#8221; that showed how to create a smart playlist that would improve over a simple shuffle of your music library. Based on your ratings, it would play the music you like more often than the music you like less.</p>
<p>If you have tried out the new iTunes Match service from Apple, you may be disappointed that these playlists are not synced to iCloud (you see a little cloud icon next to your playlist name with a slash through it that clicked tells you it is ineligible for iCloud):</p>
<p><a href="http://formattc.files.wordpress.com/2011/11/failure.png"><img class="aligncenter size-full wp-image-194" title="iTunes Match Playlist Not Eligible" src="http://formattc.files.wordpress.com/2011/11/failure.png?w=490&#038;h=225" alt="" width="490" height="225" /></a></p>
<p>The playlist needs to be refactored so that it doesn&#8217;t depend on other playlists.</p>
<p>Unfortunately iTunes does not let you construct a single playlist that matches exactly to what was created in my old post (you can&#8217;t set a &#8220;limit to&#8221; number of songs for a single matching subsection&#8211;only to entire playlists). However, as a next-best thing, you can take advantage of the &#8220;Last Skipped&#8221; clause to help minimize the occurrence of poorly-rated music. The following is a single stand-alone playlist that corresponds to the &#8220;Good Mix&#8221; playlist from the old post (hold down the Option/Alt key when clicking the &#8220;+&#8221; button to create one of the indented &#8220;All&#8221;/&#8221;Any&#8221; subsections):</p>
<p><a href="http://formattc.files.wordpress.com/2011/11/good-mix.png"><img class="aligncenter size-full wp-image-195" title="Good Mix (iTunes Match-compatible)" src="http://formattc.files.wordpress.com/2011/11/good-mix.png?w=490&#038;h=495" alt="" width="490" height="495" /></a></p>
<p>Here&#8217;s another single stand-alone playlist that corresponds to the &#8220;Christmas Mix&#8221; playlist from my old post:</p>
<p><a href="http://formattc.files.wordpress.com/2011/11/christmas-mix.png"><img class="aligncenter size-full wp-image-196" title="Christmas Mix (iTunes Match-compatible)" src="http://formattc.files.wordpress.com/2011/11/christmas-mix.png?w=490&#038;h=500" alt="" width="490" height="500" /></a></p>
<p>Adjust the time values to your preferences.  The reason why the no-star ratings are given equal weight as the 5-star songs is that it is likely that it is music that you just purchased and thus want to hear it frequently until you make a decision on what other rating you want to give it or it will help encourage you to rate all of your music.  If you have a ton of unrated music simply make a zero-star-rated playlist and work your way through it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=193&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2011/11/25/keeping-your-itunes-library-fresh-itunes-match-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2011/11/failure.png" medium="image">
			<media:title type="html">iTunes Match Playlist Not Eligible</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2011/11/good-mix.png" medium="image">
			<media:title type="html">Good Mix (iTunes Match-compatible)</media:title>
		</media:content>

		<media:content url="http://formattc.files.wordpress.com/2011/11/christmas-mix.png" medium="image">
			<media:title type="html">Christmas Mix (iTunes Match-compatible)</media:title>
		</media:content>
	</item>
		<item>
		<title>ADF Client Performance Optimization Tips</title>
		<link>http://formattc.wordpress.com/2011/06/14/adf-client-performance-optimization-tips/</link>
		<comments>http://formattc.wordpress.com/2011/06/14/adf-client-performance-optimization-tips/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 21:18:39 +0000</pubDate>
		<dc:creator>Matt Cooper</dc:creator>
				<category><![CDATA[jdeveloper]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[adf]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://formattc.wordpress.com/?p=188</guid>
		<description><![CDATA[If you are noticing client-side performance issues in your ADF Faces application and must support legacy browsers like Internet Explorer 7 and Internet Explorer 8, there are many techniques available to help optimize your application for these browsers: If you use af:region and the jsff page fragment files have more than 1 root component, optimize [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=188&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If you are noticing client-side performance issues in your ADF Faces application and must support legacy browsers like Internet Explorer 7 and Internet Explorer 8, there are many techniques available to help optimize your application for these browsers:</p>
<ol>
<li>If you use af:region and the jsff page fragment files have more than 1 root component, optimize it by arranging these components with a single root component. For example, if you want your region contents to stretch, you might have one visible content component and a series of popup components, put the visible content component inside of a &#8220;center&#8221; facet of an af:panelStretchLayout and put all of those popups in the &#8220;bottom&#8221; facet but also make sure to assign bottomHeight=&#8221;0px&#8221;. If you don&#8217;t want the contents to stretch, simply wrap these components with an af:panelGroupLayout layout=&#8221;vertical&#8221;.</li>
<li>Avoid using a af:panelStretchLayout where topHeight, bottomHeight, startWidth, or endWidth is set to &#8220;auto&#8221;.</li>
<li>Minimize uses of af:panelAccordion in discloseMany=&#8221;true&#8221; mode if possible.</li>
<li>Minimize use of components that provide overflow popups, e.g. af:panelAccordion, af:panelTabbed, af:toolbar, af:breadCrumbs, af:menuBar. If you have to use these components, make sure that your target screen size can accommodate the content without having to invoke overflow.</li>
<li>Minimize use of components that provide custom title text truncation, e.g. af:panelHeader and af:showDetailHeader. If you have to use these components, make sure that your target screen size can accommodate the title text without having to truncate.</li>
<li>Minimize use of af:carousel, af:table, af:tree, af:treeTable.</li>
<li>Avoid complex user interfaces. Users will struggle to process complex application structures. Legacy browsers will struggle with processing of complex content. Keep the number of tabs simple (use less than 10). Keep the number of columns in a table small (use less than 10).</li>
<li>Finally, don&#8217;t ignore the warnings that JDeveloper gives you.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/formattc.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/formattc.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=formattc.wordpress.com&#038;blog=5190333&#038;post=188&#038;subd=formattc&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://formattc.wordpress.com/2011/06/14/adf-client-performance-optimization-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e3d178c6f51a57ed9a571495c4c13351?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">formattc</media:title>
		</media:content>
	</item>
	</channel>
</rss>
