• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
knowledge is the difference between drudgery and strategic action -- tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic