aspose file tools*
The moose likes JSF and the fly likes JSF tree view GUI component and tree node actions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tree view GUI component and tree node actions" Watch "JSF tree view GUI component and tree node actions" New topic
Author

JSF tree view GUI component and tree node actions

Matthias Sonntag
Greenhorn

Joined: Mar 10, 2006
Posts: 1
Hi,

I am a JSF newbie and have a problem with my simple test application.

The application contains a tree view control with one static tree node and a separate text area. Clicking on the tree node shall fill the text area with the string 'hello'. Seems to be very simple, but it doesn't work.

What did I do?
First of all I use the Sun Java Studio Creator 2.
By double clicking on the tree node in the design window of the IDE a method called treeNode1_action() was created. I also added the String text to the session bean. treeNode1_Action() does not more than setting text='hello' ( getSessionBean().setText('hello'); ).
The jsp file contains the line
<ui:textArea binding="#{Page1.textArea}" id="textArea" style="height: 192px; left: 360px; top: 48px; position: absolute; width: 456px" text="#{SessionBean1.text}"/>, so the text of the text area is bound to the session property 'text'.
Running the application and clicking on the tree node does nothing except reloading the page (no 'hello' inside the text area).
Using the debugger showed me that the bean property text is set correctly to 'hello', also after reloading the page.

What did I do wrong?
What do I have to do to display 'hello' in the text area?

I would be glad for some good advice to solve my problem and looking forward for an answer.

Regards from germany
Matthias
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF tree view GUI component and tree node actions