This content has been marked as final.
Show 4 replies
-
1. Re: Multiple times bean call
nbelaevski Dec 13, 2010 2:42 PM (in response to roman.mandeleil1)1 of 1 people found this helpfulHi Roman,
Yes, that's so. For iteration components model is recreated on render response phase, because developer could change it on previous phases. As a workaround, don't do repeated requests to DB in bean code - initialize once.
-
2. Re: Multiple times bean call
roman.mandeleil1 Dec 13, 2010 3:09 PM (in response to nbelaevski)Hi Nick ,
Say do you think to fix that design in 4th version? You see I don't know about the spec
but no developer will plan his method to be called arbitrary number of times.
Thanks in advance
Roman.
-
3. Re: Multiple times bean call
nbelaevski Dec 13, 2010 3:17 PM (in response to roman.mandeleil1)1 of 1 people found this helpfulRoman,
JSF has lifecycle, so during execution of lifecycle model properties can be re-requested; that's how JSF works. Please take a look at this SOF discussion: http://stackoverflow.com/questions/2090033/why-jsf-calls-getters-multiple-times .
-
4. Re: Multiple times bean call
roman.mandeleil1 Dec 13, 2010 3:23 PM (in response to nbelaevski)I see, ok thanks I'll bear it in mind.
Regards.
Roman