Advertisement

08.05.2008 at 12:42PM PDT, ID: 23623582 | Points: 500
[x]
Attachment Details

JSF/Facelet managed bean - how do execute "lazy loading"

Asked by jeffmc033 in Java Server Faces (JSF), J2EE

I have a bunch of beans that are within the "request" scope of the JSF application.

Since every bean in request scope is instantiated with every request, puting the Database loading call in the contructor seems to be only way to ensure that by the time the JSF/Facelet page is be rendered that the actual "row data" is present.

Are there any other ways to get a "call back" later on in the lifecycle - but before the renderering of the JSF?Start Free Trial
[+][-]08.13.2008 at 01:02AM PDT, ID: 22219885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628