http://forum.java.sun.com/thread.jspa?threadID=541382
Would someone please be so kind as to answer this question?I have read the archive of the mailing list and found a similar question before. But the answers did not help me much. They referred to the master/detail example but I still can't find the sources of the examples.Where are those sources?ThanksPeterWhere do I find the sources of the MyFaces examples?
I want to find out how pages such as the masterdetail manage to load data into their backing bean BEFORE the page is rendered.
I mean – it is easy to press a button which triggers a "get data" method and shows the results.
But how do I load data before a page is shown first? Through the constructor? Some "init" method?
I want to write a page that displays a list of items when it is called first. This page is the first page in the application so I can't get any button of a previous page to call a "get data" method.
The data has to get into the backing bean beforehand. How?
The masterdetail example does the same thing. When it is called for the first time it displays a list of countries. But how do they get the data into the backing bean before the page is displayed?
Thanks
Peter
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

