| Author |
Multiple Components on a page
|
Sameer Jaffer
Greenhorn
Joined: Feb 28, 2010
Posts: 4
|
|
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
Joined: Mar 09, 2008
Posts: 106
|
|
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.
|
SCJP 5, SCJD 5, SCWCD 5, SCBCD 5, SCJDWS 5
My SCBCD-Notes - My Hello World Webservice
|
 |
 |
|
|
subject: Multiple Components on a page
|
|
|