Hi mate, Use this for JSF 1.2 :-
FacesContext context = FacesContext.getCurrentInstance(); ELResolver resolver = context.getApplication().getELResolver(); MyBean myBean1 = (MyBean) resolver.getValue(context.getELContext(), null, "myBean1"); On Sun, Apr 13, 2008 at 7:14 PM, zqzuk <[EMAIL PROTECTED]> wrote: > > Hi, I need to access an "application" scoped bean defined in faces-config. > I > digged in the forum and did found some answers to tihs, e.g., > > "FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(FacesContext.getCurrentInstance > (), "myBean1");", > > However this is deprecated version and when I am looking at JSF 1.2 > documentation, I cannot figure out what is the equivalent way to do > this... > > Please could you give me some hints, many thanks! > > > -- > View this message in context: > http://www.nabble.com/how-to-access-registered-bean-in-code-tp16661140p16661140.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > -- Hazem Ahmed Saleh Ahmed http://www.jroller.com/page/HazemBlog

