Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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.
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic