<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Tree data load by default w/o a mouse click"]]></title>
		<link>http://www.icefaces.org/JForum/posts/list/15.page</link>
		<description><![CDATA[Latest messages posted in the topic "Tree data load by default w/o a mouse click"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Tree data load by default w/o a mouse click</title>
				<description><![CDATA[ Hello.  I have been struggling on loading tree data set w/o clicking a mouse gesture.  I would like to see my tree's first data set by default when application gets initialized.
Please click this link
http://hobione.wordpress.com/2008/08/25/icefaces-tree-data-load/
to see screen shots for better understanding.

Can anyone help me on this?  I love ICEFaces.  We are thinking to buy support and training soon.

Thanks
Hobi
http://hobione.wordpress.com

]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/9588.page#39868</guid>
				<link>http://www.icefaces.org/JForum/posts/list/9588.page#39868</link>
				<pubDate><![CDATA[Mon, 25 Aug 2008 13:37:20]]> GMT</pubDate>
				<author><![CDATA[ hobione]]></author>
			</item>
			<item>
				<title>Re:Tree data load by default w/o a mouse click</title>
				<description><![CDATA[ There are couple approaches I have taken and both worked.
1. Using annotation

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>

@PostConstruct
public void test&#40;&#41; {
        HarvestController harvestController = null;
        harvestController = new HarvestController&#40;"atowus", "XXX", "6969"&#41;;
        TreeSet&lt;Version&gt; versionSet = null;
        try {
            versionSet = harvestController.getVersionsInFolder&#40;Integer.parseInt&#40;packageId&#41;, fullPathStr&#41;;
        } catch &#40;JCaHarvestException ex&#41; {
            Logger.getLogger&#40;TreeBean.class.getName&#40;&#41;&#41;.log&#40;Level.SEVERE, null, ex&#41;;
        } catch &#40;Exception ex&#41; {
            Logger.getLogger&#40;TreeBean.class.getName&#40;&#41;&#41;.log&#40;Level.SEVERE, null, ex&#41;;
        }
        setTreeSetFileView&#40;versionSet&#41;;
    }
</pre>
		</div>

The @PostConstruct annotated method will be called by the container after the bean has been constructed and before any business methods of the bean are executed. 

2.  W/o annotation also worked but you have to manually call the method.

Annotation ROCKS!

Thanks
Hobi

]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/9588.page#39876</guid>
				<link>http://www.icefaces.org/JForum/posts/list/9588.page#39876</link>
				<pubDate><![CDATA[Mon, 25 Aug 2008 17:14:04]]> GMT</pubDate>
				<author><![CDATA[ hobione]]></author>
			</item>
	</channel>
</rss>