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

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

From: Bauke Scholtz <balusc_at_gmail.com>
Date: Thu, 30 Oct 2014 19:11:18 +0100

KM> I thought there was a JIRA issue for this, but maybe not.

Issue number is in mail subject:
https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-473

Cheers, B

On Thu, Oct 30, 2014 at 7:08 PM, manfred riem <manfred.riem_at_oracle.com>
wrote:

> 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>
> 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
>>
>>
>