This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to populate a form from a tree node  RSS feed

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSF screen (jsp/jsf file) that is made up of a tree and four forms. The tree is always rendered (visible) while Only one form is rendered at a time. So the tree and anyone of the forms is visible at any point in time.
The tree node that is clicked determines which form is rendered. When a node of the tree is clicked, a method is called from the backing bean of the tree. The methodis suppoded to both render the tree and the form, and populate the form with data.

Problem
=======
The each form gets rendered, but they are never populated with data. I know the form and methods are functioning well, because when I call the action methods from a value bound button that is attached to the form, the form gets populated with data. i.e. each form works very well (gets populated with data) when the method is called from a button attached to the form, but not when the method is called via a tree node and the tree's backing method.

Help
====
Please tell me how to populate the fields of the form when it is sharing a screen with the tree. Please note, the clicking of a node of the tree is the trigger.

To put my question another way, if two forms appear in the same screen (JSP/JSF file) say forms A and B, can a button on form A, populate the fields of form B via JSF lifecycle? The answer to this will enable me to work out how the tree/form case can be made to work.

Please note, although the tree and the forms are in the same screen each form has a separate backing bean.

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!