You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Uri Kalish <uk...@mercury.com> on 2006/04/30 11:11:00 UTC

ManagedBean Existence Check?

Is there a function to check for existence of a managed bean?

The createValueBinding function is no good because it always returns a
managed bean (creates one if it doesn't exist).

 

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: ManagedBean Existence Check?

Posted by Mike Kienenberger <mk...@gmail.com>.
On 4/30/06, Uri Kalish <uk...@mercury.com> wrote:
> Is there a function to check for existence of a managed bean?
>
> The createValueBinding function is no good because it always returns a
> managed bean (creates one if it doesn't exist).

I don't know if there is or not, but if you look in the source code
for createValueBinding(), there must be something that determines this
status.   The beans are stored in request and session maps, so you
could always go this route too.  Again, look at the source.