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
Joined: Mar 09, 2008
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.