Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

needing h:outputLink and nodeSelectListener to work in sync, but now need to click link twice

 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a tree, here is the first root node of it:



As you can see, each node is also a command link that sends you to a new page, and this page uses whichever node has been selected to render the things you see.

It sends you to a page that has this:



SO the goal is, when a user clicks on the node, it first sends them to this new page that has the h:form from above. Then the outputtext is populated depending on the nodeSelectListener tag.

What happens now, is a user clicks on the node, he is sent to the new page, but the values are empty. Then once your on the page, if you click on the node a second time, it does render the data on the page like I want.

So essentially, what is happening is you have to click twice on a node to get the new page with all the necessary data. Once to get sent to the page, and a second time to actually render the data on this new page.

I need this to happen all in one click. One click sends you to the new page, and renders the data on the page, instead of two clicks. There must be a way for it to remember which node you clicked on to get sent to the new page.

Any ideas?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic