jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: [jsr372-experts mirror] Re: [473-FacesEventFacesContext] FacesEvent should have a getFacesContext method

From: Josh Juneau <juneau001_at_gmail.com>
Date: Mon, 6 Oct 2014 11:46:45 -0500

I agree with Frank, it would be a great convenience to have an easy way to
get the FacesContext from FacesEvent.

Thanks

Josh Juneau
juneau001_at_gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866


On Mon, Oct 6, 2014 at 11:06 AM, Frank Caputo <frank_at_frankcaputo.de> wrote:

> Hi Manfred,
>
> that would be great!
>
> Ciao Frank
>
> Am 06.10.2014 um 17:38 schrieb manfred riem <manfred.riem_at_oracle.com>:
>
> > Hi all,
> >
> > Currently a FacesEvent does not have direct access to FacesContext and
> as such you need to do a FacesContext.getCurrentInstance().
> >
> > As a FacesContext is always active when a FacesEvent exists we should be
> able to add a convenience method getFacesContext() to the FacesEvent.
> >
> > Any thoughts?
> > Manfred
> >
>
>