Try loading the data in an action or actionListener (before the request is forwarded to the current view).
---- Original message ---- >Date: Tue, 20 Dec 2005 18:50:39 +0200 >From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]> >Subject: RE: Tobago SheetRenderer calls getter for list twicely. >To: "'MyFaces Discussion'" <[email protected]> > >But how can I initialize data if I am working with a session bean? >Possible solutions > >1)In constructor. >2)In getter. > >What I have to choose. >If I am working with dynamic data first choise is not possible. >The last is to read data in getter or in method that will be called from >getter. > >I don't see the reason why to call getter more than once for 1 component >rendering. > >Maybe you advice any other data-init mechanism. > >Thanks. >Olexandr. > >-----Original Message----- >From: Dennis Byrne [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 20, 2005 6:33 PM >To: MyFaces Discussion >Subject: Re: Tobago SheetRenderer calls getter for list twicely. > >I think your going to find this behavior with any of the more >complex controls. The best way to guard against this is to >make your getters "just getters". Typically a problem comes >up whenever there is a database trip in the getter. > >---- Original message ---- >>Date: Tue, 20 Dec 2005 12:58:04 +0200 >>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]> >>Subject: Tobago SheetRenderer calls getter for list >twicely. >>To: <[email protected]> >> >>Hi. >> >>SheetRenderer calls getter for list twicely. It would be >better if it will >>store reference and will not call it more than once. >> >>Thanks. >> > >Dennis Byrne > Dennis Byrne

