In JSF1, you can access bean instances of your current one FacesContexton
ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext()
ev.getApplicationMap().get(beanName)
ev.getSessionMap().get(beanName)
ev.getRequestMap().get(beanName)
JSF2 is @ViewScopedintroduced, but I can not find the appropriate method getViewMap()on ExternalContext? I am using the latest JSF 2.1.1-b04. I do not understand some aspects of the @ViewScopedbean? Is there another good practice for getting a @ViewScopedserver side bean instance ?
Thanks Steve
source
share