Hi In that case you can initialize it in the init method or prerender method of the viewcontroller.
Hermod -----Opprinnelig melding----- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 21:22 Til: user@shale.apache.org Emne: Re: SV: How to initialize a bean before initial display It is a view backing bean. Hermod Opstvedt wrote: > > Hi > > What type of bean? Is it ViewController or what? > > Hermod > > > -----Opprinnelig melding----- > Fra: AM101 [mailto:[EMAIL PROTECTED] > Sendt: 26. april 2007 17:30 > Til: user@shale.apache.org > Emne: How to initialize a bean before initial display > > > How do I initialize a bean before initial display? I want to populate bean > values from database table. > > I can do it in the constructor, phase listener or by adding additional > getter method to initialize the bean. But is there any better way? > > -- > View this message in context: > http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 > 365.html#a10202810 > Sent from the Shale - User mailing list archive at Nabble.com. > > > > -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10206968 Sent from the Shale - User mailing list archive at Nabble.com.