You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2005/05/22 18:10:36 UTC

Curious?

This may be a more generic JSF question than myfaces specific but maybe someone has an
answer....
I have a h:selectOneMenu component om my jsp page, that is bound to an id in a managed
bean. I had some problems, so I added a log in both set and getid method to see if these
were called, and now I see that getID is called three times whenever the page is
rendered.. Is this by design and if so, why?


Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------

Re: Curious?

Posted by Sean Schofield <se...@gmail.com>.
That's not too surprising.  The id is checked at different times for
various purposes.  Usually its called at least once to generate the
client id when rendering.  The client id is also used for event
handling (to find out if certain events apply to a particular
component.)

sean


On 5/22/05, Bjørn T Johansen <bt...@havleik.no> wrote:
> This may be a more generic JSF question than myfaces specific but maybe someone has an
> answer....
> I have a h:selectOneMenu component om my jsp page, that is bound to an id in a managed
> bean. I had some problems, so I added a log in both set and getid method to see if these
> were called, and now I see that getID is called three times whenever the page is
> rendered.. Is this by design and if so, why?
> 
> 
> Regards,
> 
> BTJ
> 
> --
> -----------------------------------------------------------------------------------------------
> Bjørn T Johansen
> 
> btj@havleik.no
> -----------------------------------------------------------------------------------------------
> Someone wrote:
> "I understand that if you play a Windows CD backwards you hear strange Satanic messages"
> To which someone replied:
> "It's even worse than that; play it forwards and it installs Windows"
> -----------------------------------------------------------------------------------------------
>