This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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

 
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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):

 
Matt Kohanek
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic