<?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>To Hell in a Handbasket &#187; Java</title>
	<atom:link href="http://ericsilva.org/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericsilva.org</link>
	<description>General Views, Opinions, and Observations in the World Around Me by Eric Silva</description>
	<lastBuildDate>Mon, 05 Sep 2011 13:48:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple Calendar Control for Web Application</title>
		<link>http://ericsilva.org/2010/03/19/simple-calendar-control-for-web-application/</link>
		<comments>http://ericsilva.org/2010/03/19/simple-calendar-control-for-web-application/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 19:07:08 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[InterWebNet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://ericsilva.org/?p=379</guid>
		<description><![CDATA[I originally did this back in 2007, but did not want to lose the content, so I decided to put it up here. I found a robust and relatively simple calendar control to use for web UIs. It can use a pop-up window or a floating &#60;div&#62; tag. I prefer the latter as it makes [...]]]></description>
			<content:encoded><![CDATA[<p>I originally did this back in 2007, but did not want to lose the content, so I decided to put it up here.</p>
<p>I found a robust and relatively simple calendar control to use for web UIs.  It can use a pop-up window or a floating <code>&lt;div&gt;</code> tag.  I prefer the latter as it makes the page look good and avoids a pop-up.</p>
<p>To use the control simply put the <a href='http://ericsilva.org/wp-content/uploads/2010/03/CalendarPopup.js'>CalendarPopup.js</a> file in your application&#8217;s &#8220;scripts&#8221; directory and be sure to include it in your JSP. <em>(I used this in a Java app, but you can apply it to any language.)</em></p>
<p>Download the <a href="http://ericsilva.org/wp-content/uploads/2010/03/cal.gif"><img src="http://ericsilva.org/wp-content/uploads/2010/03/cal.gif" alt="" title="cal.gif" width="16" height="16" /></a> and put it in your images directory.</p>
<p>Add the following lines to your application&#8217;s JavaScript file (or include on the same page if you don&#8217;t have an external JS file):</p>
<pre class="brush: jscript; title: ; notranslate">
// Set up Calendar control
var calObj = new CalendarPopup(&quot;calDiv&quot;);
calObj.showNavigationDropdowns();
calObj.setMonthNames('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');

// Handle the Calendar control
function doCalendar(destObjId, srcObj) {
    calObj.select(document.getElementById(destObjId),srcObj.id,'dd-MMM-yyyy');
}
</pre>
<p>Then add the following lines to your JSP:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;document.write(getCalendarStyles());&lt;/script&gt;
</pre>
<p>In your JSP, add the following HTML code where you want your date field and calendar control:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input id=&quot;dateField&quot; style=&quot;width: auto;&quot; maxlength=&quot;11&quot; name=&quot;actualDate&quot; size=&quot;25&quot; type=&quot;text&quot; /&gt;
&lt;img id=&quot;imgCal&quot; onclick=&quot;doCalendar('dateField',this);return false;&quot; src=&quot;cal.gif&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;
</pre>
<p>That&#8217;s it!</p>
<p>In order to workaround IE 6&#8242;s inability to recognize the z-index attribute on the  tag, I made some modifications to the original JavaScript code. You will need to pass the an ID value to be used for the hidden  that will overlay the  box. </p>
<pre class="brush: jscript; title: ; notranslate">
var calObj = new CalendarPopup(&quot;calDiv&quot;, &quot;calFrame&quot;);
</pre>
<p>You will also need to specify the following styles in a stylesheet.  The ID values in the stylesheet must match the names of your DIV and IFRAME IDs on your page. </p>
<pre class="brush: css; title: ; notranslate">
div#calDiv {
    position:absolute; visibility:hidden;
    background-color:white;
    layer-background-color:white;
}
.select-free {
    position:absolute; z-index:10;/*any value*/
    overflow:hidden;/*must have*/
    width:152px;/*do not change value for calendar control */;
}
.select-free iframe#calFrame {
    display:none;/*sorry for IE5*/
    display:block;/*sorry for IE5*/
    position:absolute;/*must have*/
    top:0;/*must have*/
    left:0;/*must have*/
    z-index:-1;/*must have*/
    filter:mask();/*must have*/
    width:3000px;/*must have for any big value*/
    height:3000px/*must have for any big value*/;
}
</pre>
<p>Your JSP now needs the following line: </p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;calDiv&quot; class=&quot;select-free&quot;&gt;&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2010/03/19/simple-calendar-control-for-web-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GWT 2.0 Released!</title>
		<link>http://ericsilva.org/2009/12/09/gwt-2-0-released/</link>
		<comments>http://ericsilva.org/2009/12/09/gwt-2-0-released/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:56:53 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://ericsilva.org/2009/12/09/gwt-2-0-released/</guid>
		<description><![CDATA[I just saw on my RSS that GWT 2.0 has been released.&#160; Gonna go play now. Bye.]]></description>
			<content:encoded><![CDATA[<p>I just saw on my RSS that GWT 2.0 <a href="http://googlewebtoolkit.blogspot.com/2009/12/introducing-google-web-toolkit-20-now.html" target="_blank">has been released</a>.&#160; Gonna go play now. Bye.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2009/12/09/gwt-2-0-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Find Shit on Oracle&#8217;s Website</title>
		<link>http://ericsilva.org/2009/10/21/cant-find-shit-on-oracles-website/</link>
		<comments>http://ericsilva.org/2009/10/21/cant-find-shit-on-oracles-website/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 05:00:26 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[InterWebNet]]></category>
		<category><![CDATA[Observations]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[BEA]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[thread dump]]></category>
		<category><![CDATA[WebLogic]]></category>

		<guid isPermaLink="false">http://ericsilva.org/2009/10/21/cant-find-shit-on-oracles-website/</guid>
		<description><![CDATA[When Oracle first announced that they were acquiring BEA, the first thought that went through my head wasn’t “I wonder if Oracle AS will be dropped in favor of WebLogic.”; it was “Oh great! Now I won’t be able to find shit on the WebLogic forums too.” It’s been several months since the acquisition, but [...]]]></description>
			<content:encoded><![CDATA[<p>When Oracle first announced that they were acquiring BEA, the first thought that went through my head wasn’t “I wonder if Oracle AS will be dropped in favor of WebLogic.”; it was “Oh great! Now I won’t be able to find shit on the WebLogic forums too.”</p>
<p>It’s been several months since the acquisition, but today I got fed up.&#160; BEA used to have a website, dev2dev.bea.com, where they would post clever tips, tricks, etc. about the WebLogic platform.&#160; I would have thought that Oracle would have kept all of this “useful” content alive after the website consolidation, but I was wrong.&#160; It wasn’t bad enough they killed the forums at BEA, which has since caused all Google searches to come up with a plethora of dead links since the BEA URLs no longer exist.&#160; Links from other forums to BEA listings are now worthless as well.</p>
<p>But hey, I can always go over to the forums at Oracle’s website and search there right?&#160; One would think that was a logical solution, that is until they found out the honest truth:&#160; Oracle’s search engine is powered by the <a href="http://en.wikipedia.org/wiki/Technology_in_The_Hitchhiker's_Guide_to_the_Galaxy#Total_Perspective_Vortex" target="_blank">Total Perspective Vortex</a>.&#160; At least that is what it feel’s like each time I attempt to find any God-damned thing on their site.</p>
<p>All I wanted was the article about the Thread Dump Analyser (TDan) tool that was written a while back.&#160; It’s the best tool out there IMHO for performing thread dump analysis and being able to represent the output in a visual way.&#160; It’s a good thing I keep a backup copy of the tool available.</p>
<p>Good Night.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2009/10/21/cant-find-shit-on-oracles-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

