[
https://issues.apache.org/jira/browse/MYFACES-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880469#action_12880469
]
Jakob Korherr commented on MYFACES-2730:
----------------------------------------
Yes, it's a new feature of JSF 2.0, however it could also be very useful for
JSF 1.1 and JSF 1.2 users. However you're right, it might be just too late for
it to actually be used.
Also I found some descriptions for this feature in spec section 6.1.12 and on
the javadoc of FacesContext.getCurrentInstance():
Return the FacesContext instance for the request that is being processed by
the current thread. If called during application initialization or shutdown,
any method documented as "valid to call this method during application startup
or shutdown" must be supported during application startup or shutdown time. The
result of calling a method during application startup or shutdown time that
does not have this designation is undefined.
> 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: 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.