Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to work with commandLink in tree (my-faces Tomahawk) ?

 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two frames in my screen , left that contain a tree with links and right that should show the output form the left links.
The problem is that while clicking the links on the left side the output on the right will be the tree.
Any advice how can I implement this ?

left_frame:


main_frame:

Thanks

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18225
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF and frames don't work well together. However, facelets can give the same effect.

The bigger problem is that to avoid refreshing the tree side of the page when a new selection side is made, you need to to an AJAX operation to just update the content side of the page. In RichFaces, that would be a simple reRender attribute on an AJAX-enabled command control. Tomahawk, however, doesn't support AJAX directly, so you'd have to use the JSF2 AJAX support or add in an AJAX-capable extension tagset to your app.
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic