Peharps a PhaseListener with a getApplication().createValueBinding("#{yourManagedBeanScope.yourManagedBean}").setValue(getFacesContext(),yourManagedBean);
2005/10/3, Andrew robinson <[EMAIL PROTECTED]>: > There is a really long topic on the Java forums on the "OnLoad" event that > can be found here: > http://forum.java.sun.com/thread.jspa?threadID=541382 > > > On 10/3/05, Peter Miller < [EMAIL PROTECTED]> wrote: > > > > 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? > > > > Thanks > > > > Peter > > > > > > > > > > Peter Miller <[EMAIL PROTECTED]> wrote: > > > > > > > > Where 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. > > > > > > -- hicham ABASSI [EMAIL PROTECTED]