myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek" <gerhard.petra...@gmail.com>
Subject Re: Loop through the Mbeans in Session Scope
Date Tue, 04 Mar 2008 19:41:05 GMT
hello reto,

managed beans are stored within maps.

concerning your question:
to get the map of all session scoped objects use:
FacesContext.getCurrentInstance().getExternalContext().getSessionMap();

please note:
within this map there are all session scoped objects (not only beans).

what is your concrete intention?

regards,
gerhard



2008/3/4, Reto Huber <reto.huber@alabus.com>:
>
> Hi
>
> I would like to loop at runtime through all registred MBeans (in session
> scope) in the current session. Is there an easy way to do this? I don't
> have
> the name of each MBean to call them.
>
> Regards,
>
> Reto
>
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message