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

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

From: Hanspeter <hampidu_at_gmail.com>
Date: Mon, 6 Oct 2014 23:21:46 +0200

Hi Manfred.
Greate idea - I always wondered why FacesContext is not passed on with
FacesEvents.
And great impl, once the UIViewAction dependency is gone as the comment
suggests ;)

Regards
Hanspeter

2014-10-06 17:38 GMT+02:00 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
>
>