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

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

From: manfred riem <manfred.riem_at_oracle.com>
Date: Thu, 30 Oct 2014 13:08:02 -0500

Hi Kito,

There is, but I wanted to make sure everyone is on board with the change.

Note it has been implemented already so the latest SNAPSHOTs have it.
Feel free to test it.

Thanks!
Manfred

On 10/30/14, 12:51 PM, Kito Mann wrote:
>
> On Mon, Oct 6, 2014 at 11:38 AM, manfred riem <manfred.riem_at_oracle.com
> <mailto:manfred.riem_at_oracle.com>> wrote:
>
> 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?
>
>
> +1
>
> This has been driving me crazy for years. I thought there was a JIRA
> issue for this, but maybe not.
>
>
>
> Manfred
>
>