• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Components on a page

 
Sameer Jaffer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way to have a component load order. I am trying to access the value of a component from another component.

Comp1 -> bean1
Comp2 -> bean1
Comp3 -> bean1

Comp4 -> bean2

Need comp1/2/3 to load values first and then need to access these values in bean2 and display max/min values in comp4. Any helps is appreciated.

Comp1/2/3 are combo list boxes and get populated from database, and the comp4 is an output text. So the comp1/2/3 need to get populated before comp4 instantiates. The comp4 needs to display the calculated value from comp1/2/3 selections.
I am using Trinidad components


Regards,

Sameer Jaffer
 
Christian Nicoll
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would assume that you should create two different pages, one for your input components which will be populated by your database entries and a second page where your show the result (min/max) to your users.

You 've to bind the three input components an related (managed) beans and then put those beans in the request scope. In your output page you just access your three input beans.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic