<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Andreas Höhmann's Weblog</title>
	
	<link>http://ahoehma.wordpress.com</link>
	<description />
	<lastBuildDate>Wed, 11 Nov 2009 08:00:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="ahoehma.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/6b74f500a29ea048aa3d7a14adc1a24f?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Andreas Höhmann's Weblog</title>
		<link>http://ahoehma.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/AndreasHhmannsWeblog" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Levelhead game</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/34MaosIPdN8/</link>
		<comments>http://ahoehma.wordpress.com/2009/11/11/levelhead-game/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 08:00:56 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Spiele]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[levelhead]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=458</guid>
		<description><![CDATA[http://julianoliver.com/levelhead
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=458&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://julianoliver.com/levelhead">http://julianoliver.com/levelhead</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/458/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=458&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/34MaosIPdN8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/11/11/levelhead-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/11/11/levelhead-game/</feedburner:origLink></item>
		<item>
		<title>Disable backspace key in a Richfaces application</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/wPECLdu-5Is/</link>
		<comments>http://ahoehma.wordpress.com/2009/11/06/disable-backspace-key-in-a-richfaces-application/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 13:50:12 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Richfaces]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[backspace]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[hotkey]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=451</guid>
		<description><![CDATA[If you want disable the Backspace key in your JSF Richfaces application put this in your view:

&#60;rich:hotKey key=&#34;backspace&#34; handler=&#34;return false;&#34; disableInInput=&#34;true&#34;/&#62;

This will register a jQuery Hotkey handler for the document. The handler is not reqistered for input elements because in input fields you need the backspace  . Tested for FF3 and IE6.
Then I found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=451&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want disable the Backspace key in your JSF Richfaces application put this in your view:</p>
<pre class="brush: xml;">
&lt;rich:hotKey key=&quot;backspace&quot; handler=&quot;return false;&quot; disableInInput=&quot;true&quot;/&gt;
</pre>
<p>This will register a <a href="http://code.google.com/p/js-hotkeys/wiki/about" target="_blank">jQuery Hotkey</a> handler for the document. The handler is not reqistered for input elements because in input fields you need the backspace <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . Tested for FF3 and IE6.</p>
<p>Then I found out that the following snippet doesn&#8217;t work:</p>
<pre class="brush: xml;">
&lt;rich:hotKey key=&quot;backspace&quot;
             disableInInput=&quot;true&quot;
             handler=&quot;alert('Backspace is disabled'); return false;&quot; /&gt;
</pre>
<p>The Browser open the alert box and go to the previous page (in background?!). But there is a fix for that:</p>
<pre class="brush: xml;">
&lt;rich:hotKey key=&quot;backspace&quot;
             disableInInput=&quot;true&quot;
             handler=&quot;alert('Backspace is disabled'); event.stopPropagation(); event.preventDefault(); return false;&quot; /&gt;
</pre>
<p>The <strong>event</strong> variable is available in the handler function (see org.richfaces.renderkit.html.HotKeyRenderer method doEncodeEnd).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/451/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/451/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/451/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/451/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/451/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=451&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/wPECLdu-5Is" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/11/06/disable-backspace-key-in-a-richfaces-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/11/06/disable-backspace-key-in-a-richfaces-application/</feedburner:origLink></item>
		<item>
		<title>Better IE scroll bar bugfix</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/495ETrWJ3mU/</link>
		<comments>http://ahoehma.wordpress.com/2009/11/03/better-ie-scroll-bar-bugfix/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 14:14:18 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[scroll bar]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=437</guid>
		<description><![CDATA[Today I want to write about a better fix for the &#8220;ie scroll bar bug&#8221;.
First a short description of the problem &#8230;  a picture says more than 1000 words:

The horizontal scroll bar become visible as a result of the shown vertical scroll bar.
But I&#8217;m expecting this:

I found some articles about solutions to void the unnecessary [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=437&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I want to write about a better fix for the &#8220;ie scroll bar bug&#8221;.</p>
<p>First a short description of the problem &#8230;  a picture says more than 1000 words:</p>
<p><img class="aligncenter size-full wp-image-438" title="ie_scrollbar_bug" src="http://ahoehma.files.wordpress.com/2009/11/ie_scrollbar_bug.png?w=268&#038;h=209" alt="ie_scrollbar_bug" width="268" height="209" /></p>
<p>The horizontal scroll bar become visible as a result of the shown vertical scroll bar.</p>
<p>But I&#8217;m expecting this:</p>
<p><img class="aligncenter size-full wp-image-439" title="ie_scrollbar_bug_expected" src="http://ahoehma.files.wordpress.com/2009/11/ie_scrollbar_bug_expected.png?w=268&#038;h=209" alt="ie_scrollbar_bug_expected" width="268" height="209" /></p>
<p>I found some articles about solutions to void the unnecessary x scroll bar in internet explorer:</p>
<ul>
<li>use IE quirks mode &#8211; <a href="http://aktuell.de.selfhtml.org/artikel/html/scrollbalken/" target="_blank">selfhtml</a></li>
<li>use overflow-x: hidden &#8211; <a href="http://aktuell.de.selfhtml.org/artikel/html/scrollbalken/" target="_blank">selfhtml</a>, <a href="http://www.torn.be/kazza/tutz/xhtml/4/xhtml_hor_scrlbar_results_en.html" target="_blank">blog</a></li>
<li>conditional comments with overflow-x: hidden: <a href="http://aktuell.de.selfhtml.org/artikel/html/scrollbalken/" target="_blank">selfhtml</a></li>
</ul>
<p>The IE quirks mode workaround is not my prefered solution, I want use the xhtml 11 doctype</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.1//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&#8221;&gt;</p>
<p>To hide the horizontal scoll bar is usefull if you doesn&#8217;t have content that can overflow the views width, i.e. if the view-content have a&#8221;width of 100%. But if you have view-content with a dynamic width (!= 100%) then you need horizontal scroll bars.</p>
<p>Here is my solution:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;style type=&quot;text/css&quot;&gt;
    div.view {
      overflow: auto;
      width: 100%;
      background-color: #000044;
      color: white;
      height: 100px;
    }
    div.content {
      background-color: white;
      color: red;
    }
    * html div.verticalScrollerContainerFix {
      float: left;
    }
    * html div.verticalScrollerContainer {
      width: 100%;
      height: 100%;
    }
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div class=&quot;view&quot;&gt;
    &lt;div class=&quot;verticalScrollerContainerFix&quot;&gt;
      &lt;div class=&quot;verticalScrollerContainer&quot;&gt;
        &lt;div class=&quot;content&quot; style=&quot;width: 400px; height: 2000px;&quot;&gt;
          width: 400px; height: 2000px;
        &lt;/div&gt;
        Foobar
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>My solution based on conditional css styles  verticalScrollerContainerFix and  verticalScrollerContainer. The structure is always the same:</p>
<pre class="brush: xml;">
    &lt;div class=&quot;verticalScrollerContainerFix&quot;&gt;
      &lt;!-- this div will float to left - place for the vertical scroll bar (if necessary) --&gt;
      &lt;div class=&quot;verticalScrollerContainer&quot;&gt;
        &lt;!-- a container for the content --&gt;
        YOUR CONTENT HERE
      &lt;/div&gt;
    &lt;/div&gt;
</pre>
<p>Try it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/437/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=437&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/495ETrWJ3mU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/11/03/better-ie-scroll-bar-bugfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/11/ie_scrollbar_bug.png" medium="image">
			<media:title type="html">ie_scrollbar_bug</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/11/ie_scrollbar_bug_expected.png" medium="image">
			<media:title type="html">ie_scrollbar_bug_expected</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/11/03/better-ie-scroll-bar-bugfix/</feedburner:origLink></item>
		<item>
		<title>Toggle jrebel with a cygwin bash function and maven</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/253xv_8U9NI/</link>
		<comments>http://ahoehma.wordpress.com/2009/11/02/toogle-jrebel-with-a-cygwin-bash-function-and-maven/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 13:57:16 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[java rebel]]></category>
		<category><![CDATA[jrebel]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=428</guid>
		<description><![CDATA[I&#8217;m using java rebel for web development with maven.
Sometimes I would run jetty with jrebel sometimes without.
For that I&#8217;m using two simple bash functions:

# ~/.bashrc

#
# Maven options
#
export INTERNAL_MAVEN_OPTS=&#34;-Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m&#34;

#
# Java Rebel
#
export JAVA_REBEL=&#34;-Drebel.spring_plugin=true -Drebel.log=false -noverify -javaagent:D:\tools\javarebel\jrebel.jar -Drebel.packages=de.ahoehma&#34;

function jrebel_on() {
 export MAVEN_OPTS=&#34;$INTERNAL_MAVEN_OPTS $JAVA_REBEL&#34;
}

function jrebel_off() {
 export MAVEN_OPTS=&#34;$INTERNAL_MAVEN_OPTS&#34;
}

Now its very simple to enable

$ jrebel_on

or disable jrebel

$ jrebel_off

 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=428&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m using <a href="http://www.zeroturnaround.com/jrebel/" target="_blank">java rebel</a> for web development with maven.</p>
<p>Sometimes I would run jetty with jrebel sometimes without.</p>
<p>For that I&#8217;m using two simple bash functions:</p>
<pre class="brush: bash;">
# ~/.bashrc

#
# Maven options
#
export INTERNAL_MAVEN_OPTS=&quot;-Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m&quot;

#
# Java Rebel
#
export JAVA_REBEL=&quot;-Drebel.spring_plugin=true -Drebel.log=false -noverify -javaagent:D:\tools\javarebel\jrebel.jar -Drebel.packages=de.ahoehma&quot;

function jrebel_on() {
 export MAVEN_OPTS=&quot;$INTERNAL_MAVEN_OPTS $JAVA_REBEL&quot;
}

function jrebel_off() {
 export MAVEN_OPTS=&quot;$INTERNAL_MAVEN_OPTS&quot;
}
</pre>
<p>Now its very simple to enable</p>
<pre class="brush: bash;">
$ jrebel_on
</pre>
<p>or disable jrebel</p>
<pre class="brush: bash;">
$ jrebel_off
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/428/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=428&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/253xv_8U9NI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/11/02/toogle-jrebel-with-a-cygwin-bash-function-and-maven/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/11/02/toogle-jrebel-with-a-cygwin-bash-function-and-maven/</feedburner:origLink></item>
		<item>
		<title>Private Digitalkopie bleibt erlaubt</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/AXjacjRWi8M/</link>
		<comments>http://ahoehma.wordpress.com/2009/10/29/private-digitalkopie-bleibt-erlaubt/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:45:55 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Medien]]></category>
		<category><![CDATA[private kopie]]></category>
		<category><![CDATA[urheberrecht]]></category>
		<category><![CDATA[urteil]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=422</guid>
		<description><![CDATA[Quelle: handelsblatt
Wie im Urheberrechtsgesetz §53 nachzulesen:
(1) Zulässig sind einzelne Vervielfältigungen eines Werkes durch eine natürliche Person zum privaten Gebrauch auf beliebigen Trägern, sofern sie weder unmittelbar noch mittelbar Erwerbszwecken dienen, soweit nicht zur Vervielfältigung eine offensichtlich rechtswidrig hergestellte Vorlage verwendet wird. Der zur Vervielfältigung Befugte darf die Vervielfältigungsstücke auch durch einen anderen herstellen lassen, sofern dies [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=422&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Quelle: <a href="http://www.handelsblatt.com/private-digitalkopien-von-musik-bleiben-erlaubt;2475666" target="_blank">handelsblatt</a></p>
<p>Wie im <a href="http://www.webarchiv-server.de/gesetze/struck.asp?detail=true&amp;gesetz=urhg&amp;aufschlagen=53" target="_blank">Urheberrechtsgesetz</a> §53 nachzulesen:</p>
<blockquote><p>(1) Zulässig sind einzelne Vervielfältigungen eines Werkes durch eine natürliche Person zum privaten Gebrauch auf beliebigen Trägern, sofern sie weder unmittelbar noch mittelbar Erwerbszwecken dienen, soweit nicht zur Vervielfältigung eine offensichtlich rechtswidrig hergestellte Vorlage verwendet wird. Der zur Vervielfältigung Befugte darf die Vervielfältigungsstücke auch durch einen anderen herstellen lassen, sofern dies unentgeltlich geschieht oder es sich um Vervielfältigungen auf Papier oder einem ähnlichen Träger mittels beliebiger photomechanischer Verfahren oder anderer Verfahren mit ähnlicher Wirkung handelt.</p></blockquote>
<p>Die Klage der Musikindustrie wurde aus formalen Gründen abgelehnt.</p>
<p>Siehe auch hier: <a href="http://de.wikipedia.org/wiki/Gesetz_%C3%BCber_Urheberrecht_und_verwandte_Schutzrechte" target="_blank">Gesetz über Urheberrecht und verwandte Schutzrechte</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=422&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/AXjacjRWi8M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/10/29/private-digitalkopie-bleibt-erlaubt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/10/29/private-digitalkopie-bleibt-erlaubt/</feedburner:origLink></item>
		<item>
		<title>Quality Center Mylyn Integration</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/UFIYh1j9uuM/</link>
		<comments>http://ahoehma.wordpress.com/2009/10/28/quality-center-mylyn-integration/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 07:54:59 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[qc]]></category>
		<category><![CDATA[mylyn]]></category>
		<category><![CDATA[com4j]]></category>
		<category><![CDATA[quality center]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=407</guid>
		<description><![CDATA[There is a interesting project at sourceforge called qcMylyn.  The projects aims to provide a Mylyn connector for Quality Center. Support Eclipse 3.4.2, 3.5, Mylyn 3.0.5+.
I tried the released version 0.2.4 but it didn&#8217;t work because at work we are using an older version of QualityCenter (9.1). But this was no big problem I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=407&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There is a interesting project at sourceforge called <a href="http://sourceforge.net/projects/qcmylyn/" target="_blank">qcMylyn</a>.  The projects aims to provide a Mylyn connector for Quality Center. Support Eclipse 3.4.2, 3.5, Mylyn 3.0.5+.</p>
<p>I tried the released version 0.2.4 but it didn&#8217;t work because at work we are using an older version of QualityCenter (9.1). But this was no big problem I have the sourcecode (OS rocks) and I&#8217;m a programmer <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I found out that a other project called <a href="http://sourceforge.net/projects/qctools4j/" target="_blank">QcTools4J </a>contains the java code for manipulation a QC system. They using a <a href="https://com4j.dev.java.net/" target="_blank">com4j</a> bridge to bind QC&#8217;s<em> otaclient.dll</em>.</p>
<p><strong>If you have trouble with a older/newer version of QC you have to update the qctools4j</strong>.</p>
<p>You find a short tutorial how to update qctools4j <a href="https://sourceforge.net/apps/phpbb/qcmylyn/viewtopic.php?f=1&amp;t=1#p11" target="_blank">here.</a> (read this first) &#8230; then you will come to the point where you want create a new otaclient.jar from you local otaclient.dll. Here is my simple solution for that.</p>
<p>I create my own otaclient maven project with the following pom:</p>
<pre class="brush: xml;">
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;otaclient&lt;/groupId&gt;
      &lt;artifactId&gt;otaclient&lt;/artifactId&gt;
      &lt;version&gt;9.1.0.4372&lt;/version&gt;
      &lt;dependencies&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.jvnet.com4j&lt;/groupId&gt;
          &lt;artifactId&gt;com4j&lt;/artifactId&gt;
          &lt;version&gt;20080107&lt;/version&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;configuration&gt;
              &lt;source&gt;1.5&lt;/source&gt;
              &lt;target&gt;1.5&lt;/target&gt;
            &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.jvnet.com4j&lt;/groupId&gt;
            &lt;artifactId&gt;maven-com4j-plugin&lt;/artifactId&gt;
            &lt;executions&gt;
              &lt;execution&gt;
                &lt;id&gt;gen-java-bridge&lt;/id&gt;
                &lt;goals&gt;
                  &lt;goal&gt;gen&lt;/goal&gt;
                &lt;/goals&gt;
                &lt;configuration&gt;
                  &lt;file&gt;src/qc/OTAClient.dll&lt;/file&gt;
                  &lt;package&gt;com.mercury.qualitycenter.otaclient&lt;/package&gt;
                &lt;/configuration&gt;
              &lt;/execution&gt;
            &lt;/executions&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/build&gt;
    &lt;/project&gt;
</pre>
<p>I using the maven-com4j-plugin to generate the java layer for otaclient.</p>
<p>All you have to do is to <strong>extract</strong> your &#8220;qc client package&#8221; (could be download from every qc server page) into <strong>src/qc</strong> and start <strong>mvn clean package</strong>.</p>
<p>Then target will contain a otaclient-9.1.0.4372.jar. Copy this jar into qctools4j/lib/com.mercury.qualitycenter.otaclient-9.2.jar and rebuild qctools4j. That&#8217;s all <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="aligncenter size-full wp-image-418" title="qcmylyn_otaclient" src="http://ahoehma.files.wordpress.com/2009/10/qcmylyn_otaclient.png?w=384&#038;h=224" alt="qcmylyn_otaclient" width="384" height="224" /></p>
<p>Then copy the qctools4j.jar into org.tszadel.qctools and rebuild the whole eclipse feature.</p>
<p><img class="aligncenter size-full wp-image-415" title="qcmylyn_qctools4j" src="http://ahoehma.files.wordpress.com/2009/10/qcmylyn_qctools4j.png?w=317&#038;h=280" alt="qcmylyn_qctools4j" width="317" height="280" /></p>
<p>Try it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=407&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/UFIYh1j9uuM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/10/28/quality-center-mylyn-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/10/qcmylyn_otaclient.png" medium="image">
			<media:title type="html">qcmylyn_otaclient</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/10/qcmylyn_qctools4j.png" medium="image">
			<media:title type="html">qcmylyn_qctools4j</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/10/28/quality-center-mylyn-integration/</feedburner:origLink></item>
		<item>
		<title>Google Konfuzius Image</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/m5bnNEzhwrM/</link>
		<comments>http://ahoehma.wordpress.com/2009/09/28/google-konfuzius-image/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 10:31:28 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[china]]></category>
		<category><![CDATA[Chinesisch]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Konfuzius]]></category>
		<category><![CDATA[Pinyin]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=392</guid>
		<description><![CDATA[
Today the google image contains a quotation from the first didactic play of Lùnyǔ:
有朋自遠方來，不亦樂乎?
In pinyin this meens



1
2
3
4
5
6,
7


yǒu
péng
zì
yuǎn
fāng
lái,
bùyìyuèhū


有
朋
自
远
方
来,
不亦乐乎







1
exists, have, there is


2
friend


3
from


4
far, away


5
square


6
come


7
???



If a friend visits you from far away, it is always a joy. Isn&#8217;t it?
or in german
Wenn ein Freund von weit her kommt, ist das nicht auch eine Freude?

       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=392&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="aligncenter" src="http://www.google.de/logos/confuciussp09.gif" alt="" width="338" height="119" /></p>
<p>Today the google image contains a quotation from the <a href="http://de.wikipedia.org/wiki/Konfuzius#Philosophie_des_So-ist-es" target="_blank">first didactic play of Lùnyǔ</a>:</p>
<p style="text-align:center;">有朋自遠方來，不亦樂乎?</p>
<p>In pinyin this meens</p>
<table style="height:64px;" border="0" width="564">
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6,</td>
<td style="text-align:left;">7</td>
</tr>
<tr>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=you" target="_blank">yǒu</a></td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=peng" target="_blank">péng</a></td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=zi" target="_blank">zì</a></td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=yuan" target="_blank">yuǎn</a></td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=fang" target="_blank">fāng</a></td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=lai" target="_blank">lái</a>,</td>
<td><a href="http://taeglich.chinesisch-trainer.de/index.php?p=bu" target="_blank">bù</a>yìyuè<a href="http://taeglich.chinesisch-trainer.de/index.php?p=hu" target="_blank">hū</a></td>
</tr>
<tr>
<td>有</td>
<td>朋</td>
<td>自</td>
<td>远</td>
<td>方</td>
<td>来,</td>
<td>不亦乐乎</td>
</tr>
</tbody>
</table>
<p style="text-align:left;">
<table border="0">
<tbody>
<tr>
<td>1</td>
<td>exists, have, there is</td>
</tr>
<tr>
<td>2</td>
<td>friend</td>
</tr>
<tr>
<td>3</td>
<td>from</td>
</tr>
<tr>
<td>4</td>
<td>far, away</td>
</tr>
<tr>
<td>5</td>
<td>square</td>
</tr>
<tr>
<td>6</td>
<td>come</td>
</tr>
<tr>
<td>7</td>
<td>???</td>
</tr>
</tbody>
</table>
<p style="text-align:center;">If a friend visits you from far away, it is always a joy. Isn&#8217;t it?</p>
<p style="text-align:left;">or in german</p>
<p style="text-align:center;">Wenn ein Freund von weit her kommt, ist das nicht auch eine Freude?</p>
<p style="text-align:left;">
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=392&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/m5bnNEzhwrM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/09/28/google-konfuzius-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>

		<media:content url="http://www.google.de/logos/confuciussp09.gif" medium="image" />
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/09/28/google-konfuzius-image/</feedburner:origLink></item>
		<item>
		<title>My favourite java ide is eclipse</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/GW9f1ITgF5Y/</link>
		<comments>http://ahoehma.wordpress.com/2009/09/21/384/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 18:27:59 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=384</guid>
		<description><![CDATA[

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=384&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br />
<a name="pd_a_2021112"></a><div class="PDS_Poll" id="PDI_container2021112" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/2021112.js"></script>
		<noscript>
		<a href="http://answers.polldaddy.com/poll/2021112/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://www.polldaddy.com">polls</a></span>
		</noscript>

<p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=384&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/GW9f1ITgF5Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/09/21/384/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/09/21/384/</feedburner:origLink></item>
		<item>
		<title>Customized Richfaces Tree</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/QgCLPwzM0rs/</link>
		<comments>http://ahoehma.wordpress.com/2009/09/10/customized-richfaces-tree/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 11:42:02 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Richfaces]]></category>
		<category><![CDATA[collapse]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[expand]]></category>
		<category><![CDATA[rich faces]]></category>
		<category><![CDATA[Tree]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=361</guid>
		<description><![CDATA[Yesterday I had to customize the Richfaces tree component, because my client wants a special layout. My solution is a little bit strange. I share it here for someone which is in the same situation   Here is the story &#8230;
Per default the rich:tree looks like a standard tree browser (i.e. explorer, eclipse, whatever):

But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=361&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday I had to customize the <strong>Richfaces</strong> tree component, because my client wants a special layout. My solution is a little bit strange. I share it here for someone which is in the same situation <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Here is the story &#8230;</p>
<p>Per default the rich:tree looks like a standard tree browser (i.e. explorer, eclipse, whatever):</p>
<p><img class="aligncenter size-full wp-image-364" title="rich_tree_standard" src="http://ahoehma.files.wordpress.com/2009/09/rich_tree_standard.png?w=173&#038;h=185" alt="rich_tree_standard" width="173" height="185" /></p>
<p>But I want this look:</p>
<p><img class="aligncenter size-full wp-image-363" title="rich_tree_customized" src="http://ahoehma.files.wordpress.com/2009/09/rich_tree_customized.png?w=141&#038;h=177" alt="rich_tree_customized" width="141" height="177" /></p>
<p>You see that the expand/collapse icon (<img class="alignnone size-full wp-image-365" title="rich_tree_expand" src="http://ahoehma.files.wordpress.com/2009/09/rich_tree_expand.png?w=16&#038;h=16" alt="rich_tree_expand" width="16" height="16" />) is on the same level with the node-icon (<img class="alignnone size-full wp-image-366" title="rich_tree_leaf" src="http://ahoehma.files.wordpress.com/2009/09/rich_tree_leaf.png?w=16&#038;h=16" alt="rich_tree_leaf" width="16" height="16" />). That&#8217;s very hard to fix this with CSS (it&#8217;s possible but i prefer my strange solution <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ). The <a href="http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_tree.html" target="_blank">Richfaces documentation</a> describes which parts of a tree could be customize.</p>
<p><img class="aligncenter" src="http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/images/treeNode_cn.png" alt="" /></p>
<p>We have:</p>
<ul>
<li><em>rich-tree-node-handle</em> and <em>rich-tree-node-handleicon</em> &#8211; a td which contains a link and a image to expand/collapse the node (only possible for a node not a leaf)</li>
<li><em>rich-tree-node-icon</em> &#8211; is a td which contains the image for a node (a node with children)</li>
<li><em>rich-tree-node-icon-leaf</em> &#8211; is a td which contains the image for a leaf (a node without children)</li>
</ul>
<p>I decide to move the expand/collapse icon from the <span style="color:#ff0000;">handle-td</span> to the <span style="color:#0000ff;">icon-td</span> and &#8220;simulate&#8221; the user-click with Javascript:</p>
<p><img class="aligncenter size-full wp-image-371" title="rich_tree_expand_move" src="http://ahoehma.files.wordpress.com/2009/09/rich_tree_expand_move.png?w=165&#038;h=182" alt="rich_tree_expand_move" width="165" height="182" /></p>
<h4>Listing 1 tree.xhtml:</h4>
<pre class="brush: xml;">
&lt;rich:tree id=&quot;tree&quot;
              binding=&quot;#{treeBean.tree}&quot;
              var=&quot;item&quot;
              switchType=&quot;ajax&quot;
              ajaxSubmitSelection=&quot;true&quot;
              toggleOnClick=&quot;false&quot;
              showConnectingLines=&quot;false&quot;
              disableKeyboardNavigation=&quot;true&quot;&gt;

    &lt;f:facet name=&quot;iconCollapsed&quot;&gt;
       &lt;!-- no image for collapsed --&gt;
       &lt;rich:spacer width=&quot;0&quot;  height=&quot;0&quot; style=&quot;border: none;&quot;/&gt;
    &lt;/f:facet&gt;
    &lt;f:facet name=&quot;iconExpanded&quot;&gt;
       &lt;!-- no image for expanded --&gt;
       &lt;rich:spacer width=&quot;0&quot;  height=&quot;0&quot; style=&quot;border: none;&quot;/&gt;
    &lt;/f:facet&gt;

    &lt;f:facet name=&quot;icon&quot;&gt;
       &lt;!--  use normal node icon to toggle expand/collapse --&gt;
       &lt;h:panelGroup&gt;
          &lt;h:graphicImage value=&quot;#{item.isLeaf ? '/images/leaf.gif' : '/images/collapsed.gif'}&quot;
                                 onclick=&quot;myToggleTreeNode(this);&quot;
                                 rendered=&quot;#{!treeBean.isExpanded}&quot;/&gt;
          &lt;h:graphicImage value=&quot;#{item.isLeaf ? '/images/leaf.gif' : '/images/expanded.gif'}&quot;
                                 onclick=&quot;myToggleTreeNode(this);&quot;
                                 rendered=&quot;#{treeBean.isExpanded}&quot;/&gt;
       &lt;/h:panelGroup&gt;
    &lt;/f:facet&gt;

    &lt;f:facet name=&quot;iconLeaf&quot;&gt;
       &lt;h:graphicImage value=&quot;/images/leaf.gif&quot;/&gt;
    &lt;/f:facet&gt;

    &lt;rich:recursiveTreeNodesAdaptor roots=&quot;#{treeBean.roots}&quot; var=&quot;item&quot; nodes=&quot;#{item.children}&quot;&gt;
       &lt;rich:treeNode&gt;
          &lt;h:outputText value=&quot;#{item.name}&quot;/&gt;
       &lt;/rich:treeNode&gt;
    &lt;/rich:recursiveTreeNodesAdaptor&gt;
&lt;/rich:tree&gt;
</pre>
<h4>Listing 2 tree.js:</h4>
<pre class="brush: jscript;">
function myToggleTreeNode(element) {
  var elem = jQuery(element);
  // img -&gt; span -&gt; td
  var parent = elem.parent().parent();
  var elementId = parent.attr(&quot;id&quot;);
  // i.e. j_id31:tree:j__id39:18::j_id40:icon -&gt; the td arround the icon-image
  var index = elementId.lastIndexOf(&quot;:icon&quot;);
  var treeNodeId = elementId.substring(0, index);
  // i.e. j_id31:tree:j__id39:18::j_id40:handle -&gt; the td arround the original expand/collapse-image
  var handleId = treeNodeId+':handle';
  // pure jQuery not working here
  var expandElement = jQuery($(handleId));
  expandElement.trigger(&quot;click&quot;);
}
</pre>
<h4>Listing 3 tree.css:</h4>
<pre class="brush: css;">
.rich-tree-node-handleicon {
  display: none;
}
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/361/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=361&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/QgCLPwzM0rs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/09/10/customized-richfaces-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/09/rich_tree_standard.png" medium="image">
			<media:title type="html">rich_tree_standard</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/09/rich_tree_customized.png" medium="image">
			<media:title type="html">rich_tree_customized</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/09/rich_tree_expand.png" medium="image">
			<media:title type="html">rich_tree_expand</media:title>
		</media:content>

		<media:content url="http://ahoehma.files.wordpress.com/2009/09/rich_tree_leaf.png" medium="image">
			<media:title type="html">rich_tree_leaf</media:title>
		</media:content>

		<media:content url="http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/images/treeNode_cn.png" medium="image" />

		<media:content url="http://ahoehma.files.wordpress.com/2009/09/rich_tree_expand_move.png" medium="image">
			<media:title type="html">rich_tree_expand_move</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/09/10/customized-richfaces-tree/</feedburner:origLink></item>
		<item>
		<title>Nice example for a checked unchecked exception</title>
		<link>http://feedproxy.google.com/~r/AndreasHhmannsWeblog/~3/xPslsOm7ytg/</link>
		<comments>http://ahoehma.wordpress.com/2009/09/09/nice-example-for-a-checked-unchecked-exception/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 20:28:04 +0000</pubDate>
		<dc:creator>Andreas Höhmann</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Checked exception]]></category>

		<guid isPermaLink="false">http://ahoehma.wordpress.com/?p=355</guid>
		<description><![CDATA[Today I found a nice example for a &#8220;checked null pointer exception&#8221; in Ed burns blog.

@Override
public void encodeAll(FacesContext context) throws IOException {
   ResponseWriter writer = context.getResponseWriter();
   String viewName, libraryName, resourceName;
   try {
     viewName = this.getAttributes().get(&#34;viewName&#34;).toString();
     libraryName = this.getAttributes().get(&#34;libraryName&#34;).toString();
    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=355&subd=ahoehma&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I found a nice example for a &#8220;checked null pointer exception&#8221; in Ed burns <a href="http://weblogs.java.net/blog/edburns/archive/2009/09/02/jsf2-composite-component-metadata">blog</a>.</p>
<pre class="brush: java;">
@Override
public void encodeAll(FacesContext context) throws IOException {
   ResponseWriter writer = context.getResponseWriter();
   String viewName, libraryName, resourceName;
   try {
     viewName = this.getAttributes().get(&quot;viewName&quot;).toString();
     libraryName = this.getAttributes().get(&quot;libraryName&quot;).toString();
     resourceName = this.getAttributes().get(&quot;resourceName&quot;).toString();
    } catch (NullPointerException e) {
     throw new FacesException(&quot;Must supply viewName, libraryName and resourceName attributes&quot;);
   }
   ...
}
</pre>
<p>I have always tried to avoid NPE&#8217;s with code like this:</p>
<pre class="brush: java;">
if (foobar == null) {
  throw new IllegalArgumentException(&quot;foobar must not be null&quot;).
}
</pre>
<p>But from now I will try to use the &#8220;checked&#8221; version of a npe check above more often.</p>
<p>Read more about checked / unchecked exceptions here:</p>
<ul>
<li>[<a href="http://www.javapractices.com/topic/TopicAction.do?Id=129">a</a>] http://www.javapractices.com/topic/TopicAction.do?Id=129</li>
<li>[<a href="http://en.wikipedia.org/wiki/Exception_handling#Checked_exceptions">b</a>] http://en.wikipedia.org/wiki/Exception_handling#Checked_exceptions</li>
<li>[<a href="http://de.wikipedia.org/wiki/Ausnahmebehandlung#Checked_Exceptions">c</a>] http://de.wikipedia.org/wiki/Ausnahmebehandlung#Checked_Exceptions</li>
<li>[<a href="http://java.sun.com/docs/books/jls/second_edition/html/exceptions.doc.html">d</a>] http://java.sun.com/docs/books/jls/second_edition/html/exceptions.doc.html</li>
<li>[<a href="http://www.mindview.net/Etc/Discussions/CheckedExceptions">e</a>] http://www.mindview.net/Etc/Discussions/CheckedExceptions</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahoehma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahoehma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahoehma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahoehma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahoehma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahoehma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahoehma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahoehma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahoehma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahoehma.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahoehma.wordpress.com&blog=1781916&post=355&subd=ahoehma&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/AndreasHhmannsWeblog/~4/xPslsOm7ytg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ahoehma.wordpress.com/2009/09/09/nice-example-for-a-checked-unchecked-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/438fe36eabd9440a47ba9463aa194ac1?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">ahoehma</media:title>
		</media:content>
	<feedburner:origLink>http://ahoehma.wordpress.com/2009/09/09/nice-example-for-a-checked-unchecked-exception/</feedburner:origLink></item>
	</channel>
</rss>
