Mike,

thanks for your answer.

I create the component in my bean manually and populate it with SelectItems.
Do you mean using a managed property and a more complex setter as an 
alternative? Is this a better approach than the check in the getter?

Michael

-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006 18:57
To: MyFaces Discussion
Subject: Re: HtmlSelectOneMenu not serializeable ?

On 3/28/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> Do you see also any issues when I mark the field transient and check in the
> getter whether the instance is null and reinitialize it if necessary?

Michael,

That is probably a better way to handle this situation.   You could
also skip the getter and simply accept whatever value is provided by
the setter if you are not manually creating the component.

Reply via email to