File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes What would be best way to handle how clicking on something changes a content pane... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "What would be best way to handle how clicking on something changes a content pane..." Watch "What would be best way to handle how clicking on something changes a content pane..." New topic
Author

What would be best way to handle how clicking on something changes a content pane...

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

I have the following page, that has a column across the top for navigation, a column on the left side for a rich:tree and the rest is a content pane. I need the content pane to change depending on what is clicked on in the rich:tree from the tree on the left side.

Any ideas on the best way to do this, because I cant just make pages, it has to be done dynamically because there will be different nodes in the tree all the time. Here is the page, there is a ui:define tag called "content" that is blank, and that is what I need to populate with content when someone clicks on the rich:Tree nodes (its at the very bottom):



True wisdom is in knowing you know nothing - Socrates
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

I mean Im sure within each rich:tree tag Ill need to use the onclick attribute or something like that, but aside from that Im unsure what to do with it
Anil Gorthy
Greenhorn

Joined: Oct 30, 2008
Posts: 13
Matt:

I do not know anything about RichFaces so please pardon my ignorance but from your use case, I think PartialTriggers is what you are looking for.

I use Apache Trinidad components which has built-in AJAX support and it provides two attributes: autoSubmit and partialTriggers to accomplish repainting a component based on the response received.

I am certain a4j has attributes/tags that will meet your requirements.

Best,
Anil.
 
wood burning stoves
 
subject: What would be best way to handle how clicking on something changes a content pane...
 
Similar Threads
Need my rich:tree to be re loaded when I add a new entity to it
Having issues reRendering a map when a rich:tree node is clicked on(SOLVED)
why isnt this page showing three content panes where I am trying to put them?
having clicking on a treeNode from rich:tree change ui:define content (need help)
Problem getting richfaces tree to display