<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Fri, 17 Feb 2012 08:12:08 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Articles</title><link>http://www.java-hair.com/articles/</link><description></description><lastBuildDate>Mon, 13 Feb 2012 19:55:36 +0000</lastBuildDate><copyright></copyright><language>en-US</language><generator>Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</generator><item><title>RMOUG Training Days 2012</title><dc:creator>Java Hair Owner</dc:creator><pubDate>Mon, 13 Feb 2012 19:52:24 +0000</pubDate><link>http://www.java-hair.com/articles/2012/2/13/rmoug-training-days-2012.html</link><guid isPermaLink="false">561505:6475783:15018261</guid><description><![CDATA[<p>I will be co-presenting at RMOUG Training Days with Jigar Parsana on the topic of modernizing Oracle Forms to a Struts 2 / Spring / Hibernate solution. &nbsp;We will present a case study and a comparison between this "open" framework and Oracle's ADF framework.</p>
<p>If you are going to be at RMOUG Training Days, be sure to come by Room 401 on Thursday, February 16th at 2:45.&nbsp;</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-15018261.xml</wfw:commentRss></item><item><title>Another JBO-25030 Problem</title><category>ADF</category><category>adf</category><category>adf 11g</category><category>jbo</category><category>jbo-25030</category><dc:creator>Java Hair Owner</dc:creator><pubDate>Mon, 29 Aug 2011 18:34:56 +0000</pubDate><link>http://www.java-hair.com/articles/2011/8/29/another-jbo-25030-problem.html</link><guid isPermaLink="false">561505:6475783:12665098</guid><description><![CDATA[<p>Chris Muir has a good article explaining a typical <a href="http://one-size-doesnt-fit-all.blogspot.com/2008/05/jbo-25030-failed-to-find-or-invalidate.html">JBO-25030: Failed to find or invalidate owning entity</a> problem.&nbsp; Recently, however, I came across another atypical reason for the same error.</p>
<p>In this particular instance, converting the logic from an exisitng form to an ADF application, there was a master-detail relationship on the page.&nbsp; When the user created a new master record and then attempted to create a new detail record, the JBO-25030 exception would be thrown.&nbsp; What I found when investigating this was that if the user saved the master record first, then added a detail record, everything would work as expected.</p>
<p>Investigating further revealed that there was a primary key on the master record that was not updateable by the user.&nbsp; It was generated by a trigger on the database table.&nbsp; Since the primary key could not be validated when the child record was to be created, the exception was thrown.</p>
<p>This type of issue is easily overcome by putting the logic to get the new primary key (in this case from a sequence) in the ADF Code and removing the table's trigger.</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-12665098.xml</wfw:commentRss></item><item><title>Google admits I was right, buys Motorola</title><dc:creator>Java Hair Owner</dc:creator><pubDate>Wed, 17 Aug 2011 18:11:54 +0000</pubDate><link>http://www.java-hair.com/articles/2011/8/17/google-admits-i-was-right-buys-motorola.html</link><guid isPermaLink="false">561505:6475783:12543559</guid><description><![CDATA[<p><span id="internal-source-marker_0.8656351674319505" style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Ok,  so maybe a little hyperbole in the headline, but Google may have admitted that Apple, at least, had it right.&nbsp; A lot has been said about the Motorola purchase and it's implications for the bubbling patent wars but could this purchase represent more than that?</span></p>
<p><span id="internal-source-marker_0.8656351674319505" style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">My <a href="http://www.java-hair.com/articles/2011/6/20/why-apple-has-won-and-oracle-and-google-have-lost.html">last post</a> in this area was about how Apple beat Oracle and Google, referring  to their control over the hardware and the software in their business.  &nbsp;It now appears that Google agrees and decided to do something about the  situation by purchasing Motorola.</span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">While  some articles have pointed out that Google is both <a href="http://gagagadget.com/wordpress/2011/08/holy-hardware-batman-google-buys-motorola-mobility/">alienating it&rsquo;s  friends</a>, and <a href="http://www.pcworld.com/article/238070/googles_motorola_buy_may_offer_boost_to_microsoft.html">bolstering it&rsquo;s enemies</a>, others have  pointed out that this gives Google the control it needs to make <a href="http://www.wired.com/epicenter/2011/08/is-android-actually-any-good/">Android a  success</a>. &nbsp;Hopefully this will give them a hardware platform that can  keep up with releases of the software and provide a consistent less  bug-prone environment for Android to shine in. &nbsp;If this alienates some  previously Android friendly companies such as Samsung and Sony, so be  it, it may just help them keep up with Apple.</span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Of  course the mobile platform is just one industry that Google will now  have a hardware presence in. &nbsp;Motorola does produce a great many cable  boxes which means <a href="http://mashable.com/2011/08/15/google-motorola-google-tv/">Google TV may have found a new platform</a> to shine on as  well. &nbsp;While I love my Tivo, I am curious to see what Google may do in  this arena in the future.</span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">I  should mention, in regards to my last article, that though Sun did  provide the hardware platform and the software for Java to grow, they  never had any kind of pull in the desktop arena, though they did try.  &nbsp;Sun and Java did become a very popular combination for supporting web  applications. &nbsp;Oracle has also pointed out that one of their reasons  behind the Sun purchase was to provide a hardware platform to support  their database. &nbsp;The <a href="http://en.wikipedia.org/wiki/Oracle_Exadata">Exadata </a>hardware/software combination is a great  example of this ability Oracle now has to control the entire  environment.</span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">The  trends certainly seem to indicate that while open specifications and  standards are great in some areas, it is easier to move forward when  both the hardware and software can work together closely.</span></p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-12543559.xml</wfw:commentRss></item><item><title>ADF 11g - Using LOV's for Convenience, not Validation</title><dc:creator>Java Hair Owner</dc:creator><pubDate>Thu, 11 Aug 2011 16:06:14 +0000</pubDate><link>http://www.java-hair.com/articles/2011/8/11/adf-11g-using-lovs-for-convenience-not-validation.html</link><guid isPermaLink="false">561505:6475783:12485007</guid><description><![CDATA[<p><span id="internal-source-marker_0.03827438349551582" style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">In  an existing Oracle Forms application we are modernizing for a customer,  the forms in places contain LOV&rsquo;s that exist on the field for  convenience, but not for validation. &nbsp;That is, a user can select an item  from the LOV or they can enter text. &nbsp;The text they enter will not get  added to the table referenced in the LOV, just the current data entry  record.</span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">When  you create an LOV on an attribute in ADF 11g you can tell ADF what type  of control to use. &nbsp;For this type of control we want an Input Text with  List Of Values. &nbsp;This control will then be placed on the jsp page when  you drag and drop the attribute from your Data Controls panel. &nbsp;When it  creates the control, it will also create a validator for the control,  JDeveloper actually does this for all controls and it allows for  immediate feedback when a mandatory field is not entered or the type of  data does not fit the specified format, or in this case, the entered  data does not match a value in the LOV list. &nbsp;In order to allow the user  to enter a value not in the list, you need to remove the validator. </span><br /><br /><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">In  our case, this has the benefit of looking up a description and  displaying it in another field when a existing value in entered. &nbsp;If an  existing value is not entered, nothing is displayed in the description  field.</span>﻿</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-12485007.xml</wfw:commentRss></item><item><title>Why Apple has won and Oracle and Google have lost</title><category>Client/Server</category><category>Java</category><category>Java</category><category>Modernization</category><category>iOS</category><dc:creator>Java Hair Owner</dc:creator><pubDate>Mon, 20 Jun 2011 20:57:05 +0000</pubDate><link>http://www.java-hair.com/articles/2011/6/20/why-apple-has-won-and-oracle-and-google-have-lost.html</link><guid isPermaLink="false">561505:6475783:11854935</guid><description><![CDATA[<div>
<p>Working in the field of software modernization and being specifically focused a lot of the time on modernizing client/server applications, that is, bringing native applications to the web, I couldn't help but wonder if we haven't come full circle already. &nbsp;</p>
<p>Many years ago with Sun's release of Java as the write-once, run anywhere answer to every developer's problems, it looked like Java Applets might be the wave of the future. &nbsp;That never did quite catch on as Sun had hoped. &nbsp;It was plagued mainly by the practical problem of having a platform that runs on every operating system in the same if not very similar fashion. &nbsp;Because of this "feature", the platform could be limiting at times. &nbsp;I believe that this type of limitation and the advance of dynamic HTML, CSS, and the web platform in general led to a huge number of web-based applications and a very small number of Java client applications.</p>
<p>Fast forward from then to now and Apple has taken a lesson from Java and decided early on to do things the "right" way. &nbsp;Of course, the "right" way means being in control of the hardware platform as well as the software platform. &nbsp;Because Apple controls the whole environment, "apps" are less likely to break, testing is simplified quite a bit, and even development to some extent is simplified. &nbsp;The result is the creation of some truly amazing client applications for consumers.</p>
<p>Google's Android is a player, but it is starting to suffer from what Java suffered from. &nbsp;I am not an Android user, but I have seen the complaints that some applications are only supported by newer versions of the software but some hardware platforms do not support the newer version. &nbsp;This comes across as an Android problem, but surely Apple has the same problem with their platforms?</p>
<p>For some reason, when I can't get an App for my iphone 3G because it doesn't sport the right hardware, it feels like MY problem for being 3 years behind the technology. &nbsp;That's probably because it isn't just a hardware compatibility issue, the device itself feels clunky and dated compared to newer versions of the iPhone. &nbsp;Android hardware is so varied and different that the same comparison really cannot be made unless it is among one manufacturer.</p>
<p>Anyway, my point is that Apple has created this beautiful sandbox where these great apps can be created that use the web, but are not web applications. &nbsp;They are client/server applications with the server being multi-tiered now. &nbsp;Just look at the articles that have come out regarding iCloud and the amount of app traffic vs. web traffic. &nbsp;iOS is really what Java should have been.</p>
<p>We haven't seen the push at the Enterprise level yet.&nbsp; Most customers want a web application, a more and more sophisticated web application, but still, not native apps.&nbsp; More and more, however, companies are looking at iPads as tools for their workforce and once that happens, their new apps are going to be native iOS apps.</p>
<p>Now the big question remaining is what is Oracle going to do about it?&nbsp; Does Java have a chance or has it's time passed?</p>
<p>&nbsp;</p>
</div>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-11854935.xml</wfw:commentRss></item><item><title>Things I learned at UKOUG 2010</title><category>ADF</category><category>conference</category><dc:creator>Java Hair Owner</dc:creator><pubDate>Wed, 08 Dec 2010 16:55:59 +0000</pubDate><link>http://www.java-hair.com/articles/2010/12/8/things-i-learned-at-ukoug-2010.html</link><guid isPermaLink="false">561505:6475783:9676023</guid><description><![CDATA[<p>This year's UKOUG was a really interesting event.&nbsp; There was a stream dedicated to development and most of the presentations were pretty good.&nbsp; What I liked most about it was that even in the sessions I sat through that covered subjects I was already familiar with, I found I learned a new tidbit here or there.</p>
<p>In the Dynamic Forms and Tables in ADF presentation I learned that you can create a basically empty ViewObject (by basing in on something as inane as "select 1 from dual", and then in your Application Module you can create whatever query you want by using the createViewObjectFromSQLStatement method and passing in your SQL.&nbsp; This is a clever idea and I can see some use for it, especially in reporting type screens, but currently the implementation is a little limited.&nbsp; You can create a Dynamic Table to display the results, but the table cannot have sorting or filtering enabled, which, for a lot of the ADF applications we build, would make those screen noticeably different than other screens.</p>
<p>In a presentation about developing products I learned that Oracle MDS can be used to hold customized information for a specific implementation of an application.&nbsp; That is a very useful feature for ISVs.</p>
<p>A presentation about Javascript in ADF taught me that if you want to use it, you should manipulate the UI Component Model and not the DOM or the "Peer Objects" that would also be available but may not staty consistent.</p>
<p>Finally, in addition to learning that a new utility for creating custom skins is being developed, I learned that if I put a parameter called "DISABLE_CONTENT_COMPRESSION" in my web.xml and set it's value to "true", Firebug would be much more useful in helping to create skins.</p>
<p>One of the most important things I learned is that some things you just don't find out unless you attend these conferences.&nbsp; You could spend your entire career with a product like JDeveloper and not know all the tricks, especially the undocumented ones, but one trip to a conference like UKOUG and you could at least pick up a few of them.</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-9676023.xml</wfw:commentRss></item><item><title>ADF Patterns for Forms Conversions</title><category>ADF</category><category>conference</category><category>ukoug</category><dc:creator>Java Hair Owner</dc:creator><pubDate>Fri, 29 Oct 2010 15:53:46 +0000</pubDate><link>http://www.java-hair.com/articles/2010/10/29/adf-patterns-for-forms-conversions.html</link><guid isPermaLink="false">561505:6475783:9323414</guid><description><![CDATA[<p>My presentation:&nbsp; ADF Patterns for Forms Conversions got accepted at UKOUG for this year.&nbsp; I will presenting there on that topic on November 30th at 12:00. <a href="http://techandebs.ukoug.org/default.asp?p=5434&amp;dlgact=shwprs&amp;prs_prsid=5624&amp;day_dayid=46">Here is the abstract.</a>&nbsp; I hope to see you there!</p>
<p>In the past I have done presentations on why converting to ADF is a good idea.&nbsp; This time I will be focusing less on the why and more on the how so it is bound to be a more interesting presentation for those who are actual Forms or even ADF developers.</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-9323414.xml</wfw:commentRss></item><item><title>Welcome to the new Java Hair site!</title><dc:creator>Java Hair Owner</dc:creator><pubDate>Mon, 19 Apr 2010 18:25:31 +0000</pubDate><link>http://www.java-hair.com/articles/2010/4/19/welcome-to-the-new-java-hair-site.html</link><guid isPermaLink="false">561505:6475783:7385878</guid><description><![CDATA[<p>We have had our share of technical difficulties in running the blog site, espcially without resources solely devoted to the the updating and running of the server.&nbsp; To deal with that and to be able to post some new content, we have moved the Java-Hair blog to Squarespace.</p>
<p>One of our staffers will be re-posting the content from the old blog up here on the new site, so you will be sure to see a lot of recycled content in the coming weeks, but after that, we'll be on to the new stuff.</p>
<p>So with our technical issues now behind us, we will continue to delight and enlighten you with our vast knowledge of Java, ADF, XML and other enterprise technologies!&nbsp; Be sure to visit frequently and comment often!</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-7385878.xml</wfw:commentRss></item><item><title>Generate an Java-based Ajax-enabled Web App in 5 Minutes</title><category>Java</category><category>Java</category><category>Rev</category><category>Rev</category><category>Rob</category><category>by Robert Nocera</category><dc:creator>Julia Yiznitsky</dc:creator><pubDate>Tue, 23 Jun 2009 17:46:00 +0000</pubDate><link>http://www.java-hair.com/articles/2009/6/23/generate-an-java-based-ajax-enabled-web-app-in-5-minutes.html</link><guid isPermaLink="false">561505:6475783:7630256</guid><description><![CDATA[<div id="_mcePaste">Over the last couple of years there has been a lot of talk about Ruby on Rails and Grails and how easy it is to use them to quickly build&nbsp;an application. How would you like to be able to have all of that speed of development, but have it in a technology that you already&nbsp;know? If you are familiar with Struts or JSF, you can use Rev to quickly build an application for you.&nbsp;<br /><br /><span class="full-image-float-left ssNonEditable"><span><img style="width: 150px;" src="http://www.java-hair.com/storage/post-images/Rev_Logo.gif?__SQUARESPACE_CACHEVERSION=1273513934253" alt="" /></span></span>Rev is a code generation tool developed by <span style="text-decoration: underline;">Vgo Software</span>, and it gives you the power to do that. All you need is a&nbsp;database, a JDBC driver (most of the common ones are provided with Rev out of the box), a JDK of version 1.5 or better and Rev.&nbsp;Using Rev you&rsquo;ll be able to generate a completely functional CRUD application based on the tables that you select. The output can be&nbsp;in a variety of different flavors: JSF, Struts, JSF with AJAX, JDBC, EJB, Hibernate, etc. Rev also generates ANT build scripts for a&nbsp;variety of popular application servers so you can build and deploy your application directly from the tool.&nbsp;<br /><br />What good is a CRUD application? It all depends on what type of application you are building. For adding testing data or building&nbsp;some Administration screens for a system, the Rev output may be all you need. If you are building a more complicated system, then&nbsp;maybe the persistence layer is all you need and you can rework most of the UI layer. All of the source code is available for you to&nbsp;modify as you see fit, so whether it is the final application itself or the basis for something bigger you will always have something to&nbsp;start with.<br /><br />One of the unique features of Rev is the ability to customize the generation. Not only can you easily customize the stylesheet from&nbsp;within Rev, but if you want to go deeper you can customize the templates that Rev uses to generate virtually whatever you&rsquo;d like.&nbsp;From modifying the JSP pages that get generated to creating a whole new set of templates for a completely different language, you&nbsp;can do it all! In fact, included with Rev is a set of templates for generating a PHP-based application.&nbsp;<br /><br />You can download your free trial of Rev at the <span style="text-decoration: underline;">Vgo Software site</span>. Also, be sure to <span style="text-decoration: underline;">sign up for the webinar</span> I will be presenting on June&nbsp;30th at 11:00 a.m. EST. During that webinar I will demonstrate how to use Rev and talk about the various output options.</div>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-7630256.xml</wfw:commentRss></item><item><title>Book Review: Processing XML documents with Oracle JDeveloper 11g</title><category>Book Review</category><category>Book Review</category><category>JDeveloper</category><category>JDeveloper</category><category>Rob</category><category>XML</category><category>XML</category><category>by Robert Nocera</category><dc:creator>Julia Yiznitsky</dc:creator><pubDate>Mon, 01 Jun 2009 17:31:00 +0000</pubDate><link>http://www.java-hair.com/articles/2009/6/1/book-review-processing-xml-documents-with-oracle-jdeveloper.html</link><guid isPermaLink="false">561505:6475783:7630151</guid><description><![CDATA[<div id="_mcePaste">This is a new feature here on Java Hair, a book review. I was recently approached by the publisher of this book who asked if I would be&nbsp;interested in doing a review. The request was quite timely, I thought, since I have recently been working with XML Schema design&nbsp;(check out the XML category).&nbsp;<br /><br /><span class="thumbnail-image-float-left ssNonEditable"><span><a href="javascript:showFullImage('/display/ShowImage?imageUrl=%2Fstorage%2Fpost-images%2F815-Oracle%20JDeveloper.jpg%3F__SQUARESPACE_CACHEVERSION%3D1273516371792',267,216);"><img src="http://www.java-hair.com/storage/thumbnails/6475782-6870707-thumbnail.jpg?__SQUARESPACE_CACHEVERSION=1273516373571" alt="" /></a></span></span>&ldquo;Processing XML documents with Oracle JDeveloper 11g&rdquo; seems more like the title to a whitepaper than a full-fledged book, but I&nbsp;found that the book actually covers a lot of topics that fall under the XML Processing umbrella. That, and the fact that JDeveloper&nbsp;documentation can be difficult to come by makes this book a pretty handy addition to your library if you develop with JDeveloper 11g&nbsp;and you are working with XML.&nbsp;<br /><br />Starting out, the book covers the parsing of XML documents using both the SAX API and the DOM API. Information that you could&nbsp;get elsewhere, but as the book is JDeveloper 11g specific, it also includes information on how to set up your projects and which&nbsp;libraries you need to include that may or may not be included with your JDeveloper distribution. Very handy information for someone&nbsp;using JDeveloper.&nbsp;<br /><br />There is a chapter on using JDeveloper to design an XML Schema, something I could have used a few months ago, actually.&nbsp;JDeveloper&rsquo;s visual design feature for XML Schema&rsquo;s is a great tool and comparable to anything I&rsquo;ve used with Eclipse and NetBeans.&nbsp;Following that is a chapter on validating your schema 3 different ways and how to create these projects in JDeveloper.&nbsp;<br /><br />There are some chapters that I didn&rsquo;t expect to see in this book, but were quite welcome. A chapter devoted to transforming XML to&nbsp;PDF, another on transforming XML to MS Excel, storing XML in Oracle Berkeley DB XML, and even a chapter on Oracle XML&nbsp;Publisher.&nbsp;<br /><br />So all in all, despite the self-imposed limitation of XML and JDeveloper, the author, Deepak Vohra, has managed to cram in some very&nbsp;useful topics into his book. Though some of it isn&rsquo;t really JDeveloper specific, he does makes it relevant by walking thru setting up&nbsp;each project in JDeveloper as well as building and running the subsequent applications in JDeveloper.&nbsp;<br /><br />The writing style is very dry, much like you&rsquo;d probably expect from a reference book, and it should be treated as such, it isn&rsquo;t&nbsp;something that you are going to want to sit down and read in one sitting. However, if you have work to do in XML and you are&nbsp;considering using or already using JDeveloper as your IDE, I would definitely recommend picking it up.&nbsp;<br /><br />You can find the book on virtually any online bookstore or on the publisher&rsquo;s website: <span style="text-decoration: underline;">Packt Publishing</span>.</div>]]></description><wfw:commentRss>http://www.java-hair.com/articles/rss-comments-entry-7630151.xml</wfw:commentRss></item></channel></rss>
