This content has been marked as final.
Show 4 replies
-
1. Re: Retreiving data based on displayed data
pmuir Jan 4, 2008 6:44 AM (in response to felixk2)Make the method lazy load and cache the data.
-
2. Re: Retreiving data based on displayed data
felixk2 Jan 4, 2008 8:47 AM (in response to felixk2)I can do that, but is it possible though to have a bean with an @In and @Out then set the @In parameter when I load the page?
Basically it would be great if I can just do something like:
#{customerProductList.customer = customerHome.instance} in my view. (.customer being the @In of customerProductList)
Then my datatable would check the @Out three times instead of firing off three db queries.
Has anyone ever experienced the same situation? -
3. Re: Retreiving data based on displayed data
jteb Jan 4, 2008 9:45 AM (in response to felixk2)Can't you use a stateful bean with an @Factory annotated method to load you data?
-
4. Re: Retreiving data based on displayed data
felixk2 Jan 4, 2008 10:07 AM (in response to felixk2)I can't because I need to pass a Customer object to the method. The @factory works fine if the method doesn't need any parameters.