[
https://issues.apache.org/jira/browse/MYFACES-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882184#action_12882184
]
Leonardo Uribe commented on MYFACES-2730:
-----------------------------------------
Hi
Yes, Mojarra has the same pattern. so there is no problem. The typical use case
is call FacesContext.isProjectStage(), publish application events, or call
ExternalContext methods related to ServletContext that are useful to retrieve
config parameters.
The first explanation was not clear, so by that reason the changes committed
contained bugs. Really the important stuff at this point is have clear the
reasons and have a clear position about how StartupFacesContextImpl and
StartupServletExternalContextImpl should work (in other words a philosophy
behind). Many methods that requires to be implemented in those classes were
just skipped without a justification. Now we are sure the code is right, and we
have certainty we will not have problems by introduce this change.
The fix related to DebugPhaseListener will not be included in this issue,
because it is not related. Please create and commit it in a separate issue
after close this one.
regards,
Leonardo
> FacesContext not available on application startup
> -------------------------------------------------
>
> Key: MYFACES-2730
> URL: https://issues.apache.org/jira/browse/MYFACES-2730
> 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: Leonardo Uribe
> Fix For: 2.0.2-SNAPSHOT
>
> Attachments: MYFACES-2730-1.patch, MYFACES-2730-2.patch,
> MYFACES-2730-3.patch, MYFACES-2730-4.patch, MYFACES-2730-revert.patch
>
>
> 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.