<?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>Fan&#039;s blog &#187; NetBeans</title>
	<atom:link href="http://fkpwolf.net/category/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://fkpwolf.net</link>
	<description>无为而无不为</description>
	<lastBuildDate>Sun, 20 May 2012 05:11:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Use JPA with Hibernate in Netbeans(Tomcat)</title>
		<link>http://fkpwolf.net/2007/11/25/use-jpa-with-hibernate-in-netbeanstomcat/</link>
		<comments>http://fkpwolf.net/2007/11/25/use-jpa-with-hibernate-in-netbeanstomcat/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 00:49:00 +0000</pubDate>
		<dc:creator>Fan Fan</dc:creator>
				<category><![CDATA[NetBeans]]></category>

		<guid isPermaLink="false">http:///2007/11/25/use-jpa-with-hibernate-in-netbeanstomcat/</guid>
		<description><![CDATA[0. prerequisite&#160; Tomcat 6.0.14&#160; Netbeans 6 rc1&#160; Hibernate core 3.2.5GA&#160; Hibernate EntityManager 3.3.1GA 1. Add a new JPA library implement&#160; The default used TopLink. Change to Hibernate. 2. Adjust in JSF designThe default data provider ObjectArrayDataProvider works not well with JSF design UI. &#160; My target is when let a jsf table &#8220;Bind to Data&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>0. prerequisite<br />&nbsp; Tomcat 6.0.14<br />&nbsp; Netbeans 6 rc1<br />&nbsp; Hibernate core 3.2.5GA<br />&nbsp; Hibernate EntityManager 3.3.1GA</p>
<p>1. Add a new JPA library implement<br />&nbsp; The default used TopLink. Change to Hibernate.<br /><a href="http://lh4.google.com/fkpwolf/R00RpfbBuXI/AAAAAAAAAE4/id9zp2llrzM/Untitled%5B3%5D"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="352" alt="Untitled" src="http://lh5.google.com/fkpwolf/R00RrvbBuYI/AAAAAAAAAFA/0usmYNZE89g/Untitled_thumb%5B1%5D" width="638" border="0"></a> </p>
<p>2. Adjust in JSF design<br />The default data provider ObjectArrayDataProvider works not well with JSF design UI.</p>
<p><a href="http://lh5.google.com/fkpwolf/R00l5vbBuZI/AAAAAAAAAFg/o8W-DSN7UUU/image%5B6%5D"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="316" alt="image" src="http://lh6.google.com/fkpwolf/R00l6_bBuaI/AAAAAAAAAFo/7-YsOZUCktU/image_thumb%5B2%5D" width="444" border="0"></a> </p>
<p>&nbsp; My target is when let a jsf table &#8220;Bind to Data&#8221;, the all fields of a Hibernate JOPO can be chosen as the&nbsp; above dialog. These displayed fields come from provider&#8217;s <font face="Courier New">getFieldKeys</font> method which is part of interface <font face="Courier New">DataProvider</font> signature. So the simplest way is to extends ObjectArrayDataProvider and overide that method. Or just use <font face="Courier New">setObjectType(Student.class)</font>. Be sure to <strong>compile</strong> that class manually so the JSF Design can take this change into account.</p>
<p>Why not use :</p>
<p><font face="Courier New">private ObjectArrayDataProvider objectArrayDataProvider1 = new ObjectArrayDataProvider(someType);</font>
<p>It does not work. Even I put them in _init() method of backend bean, as the CachedRowSet provider does.
<p>3. Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://fkpwolf.net/2007/11/25/use-jpa-with-hibernate-in-netbeanstomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual library of NetBeans</title>
		<link>http://fkpwolf.net/2007/06/02/visual-library-of-netbeans/</link>
		<comments>http://fkpwolf.net/2007/06/02/visual-library-of-netbeans/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 14:01:00 +0000</pubDate>
		<dc:creator>Fan Fan</dc:creator>
				<category><![CDATA[NetBeans]]></category>

		<guid isPermaLink="false">http:///2007/06/02/visual-library-of-netbeans/</guid>
		<description><![CDATA[Today I evaluated Visual library of NetBeans org. There are not too much information about it on Sun&#8217;s site. And it is a part of NetBeans 6 M9. I guest it was just separated from Netbeans as a standalone project. It&#8217;s many feature is same as JGraph which has been used by many users. But [...]]]></description>
			<content:encoded><![CDATA[<p>  Today I evaluated <a href="http://graph.netbeans.org/">Visual library</a> of NetBeans org. There are not too much information about it on Sun&#8217;s site. And it is a part of NetBeans 6 M9. I guest it was just separated from Netbeans as a standalone project. It&#8217;s many feature is same as JGraph which has been used by many users. But I think this library provides more about UI design but not only concerning on graph as done by JGrah. For example, it has a feature &#8220;ComponentWidget &#8211; AWT/Swing components on scene&#8221;. So you can do this:</p>
<p><code>JButton button = new JButton();<br />button.setText("xixi");<br />ComponentWidget widget = new ComponentWidget(this,button);</code>
<p>  Then I have a question: Is Visual Web (netbeans) developed on this library? If so, Visual Library is very cool! (From <a href="http://www.javalobby.org/java/forums/t94658.html">this post</a>, just page flow navigator is based on Visual Library.)<br />  There is a <a href="http://www.netbeans.org/download/flash/netbeans_60/jl_preso_vislib/player.html">video</a> which created a demo on Visual library. You can find that a JasperReports tool called <a href="https://jarvis.dev.java.net/">jarvis</a> is also base on this library. It looks powerful.</p>
]]></content:encoded>
			<wfw:commentRss>http://fkpwolf.net/2007/06/02/visual-library-of-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

