myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <>
Subject [jira] Commented: (MYFACES-2730) FacesContext not available on application startup
Date Mon, 21 Jun 2010 13:41:28 GMT


Jakob Korherr commented on MYFACES-2730:

Looking at the methods which are valid to be called on application startup or shutdown on
ExternalContext, it seems like the EG forgot to include getRealPath(String path), because
all methods which are valid to be called only rely on the ServletContext and this one also
only relies on the ServletContext (or on the PortletContext in a Portlet environment).

However since the behavior of all methods which are not documented as "valid to call this
method during application startup or shutdown" is undefined, it is valid to implement this
method also for startup and shutdown.

> FacesContext not available on application startup
> -------------------------------------------------
>                 Key: MYFACES-2730
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-127, JSR-252, JSR-314
>    Affects Versions: 1.1.8, 1.2.9, 2.0.0
>            Reporter: Nick Belaevski
>            Assignee: Jakob Korherr
> If custom ResourceHandler calls FacesContext.getCurrentInstance() in constructor to read
init parameters, null value is returned. This affects latest MyFaces 2.0.0-SNAPSHOT. Mojarra
2.0 provides InitFacesContext in this case.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message