Hi Bobby,
use valuebindings.
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
ValueBinding vb =
app.createValueBinding("#{ApplicationVariablesBean}");
ApplicationVariablesBean avb = (ApplicationVariablesBean)
vb.getValue(context);
Bobby Rosenberger wrote:
Hey guys,
I would like to access a session scoped backingbean ("user") from an
actionListener... I'm currently doing something along the lines of:
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request =
(HttpServletRequest)context.getExternalContext().getRequest();
HttpSession session = request.getSession();
UserBean user = (UserBean)session.getAttribute("user");
Is there a better way?
Thanks,
Bobby Rosenberger
--
Don Tam
Manager, Software Development
(416)493-6111x143
[EMAIL PROTECTED]