You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jesús Pérez Alcaide (ISBAN Created JIRA)" <de...@myfaces.apache.org> on 2011/11/17 14:08:51 UTC
[jira] [Created] (MYFACES-3399) PostAddToViewEvent is being
published incoherently with spec's javadoc
PostAddToViewEvent is being published incoherently with spec's javadoc
----------------------------------------------------------------------
Key: MYFACES-3399
URL: https://issues.apache.org/jira/browse/MYFACES-3399
Project: MyFaces Core
Issue Type: Bug
Components: JSR-314
Affects Versions: 2.1.3
Reporter: Jesús Pérez Alcaide (ISBAN)
In the javadoc of javax.faces.event.PostAddToViewEvent the conditions of when to publish that event are expressed explicitly:
The implementation must guarantee that Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class, java.lang.Object) is called, immediately after any UIComponent instance is added to the view hierarchy *except* in the case where ResponseStateManager.isPostback(javax.faces.context.FacesContext) returns true at the same time as FacesContext.getCurrentPhaseId() returns PhaseId.RESTORE_VIEW. When both of those conditions are met, Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class, java.lang.Object) must not be called.
MyFaces 2.1.3 is publishing this event when those conditions are met despite of the spec.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MYFACES-3399) PostAddToViewEvent is being
published incoherently with spec's javadoc
Posted by "Jesús Pérez Alcaide (ISBAN Commented JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152735#comment-13152735 ]
Jesús Pérez Alcaide (ISBAN) commented on MYFACES-3399:
------------------------------------------------------
Sorry for the inconvenience.
I did a search on MyFaces issue tracker but I didn't found any issue related to this exact specification point.
I'm sorry, again.
> PostAddToViewEvent is being published incoherently with spec's javadoc
> ----------------------------------------------------------------------
>
> Key: MYFACES-3399
> URL: https://issues.apache.org/jira/browse/MYFACES-3399
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.1.3
> Reporter: Jesús Pérez Alcaide (ISBAN)
> Assignee: Leonardo Uribe
>
> In the javadoc of javax.faces.event.PostAddToViewEvent the conditions of when to publish that event are expressed explicitly:
> The implementation must guarantee that Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class, java.lang.Object) is called, immediately after any UIComponent instance is added to the view hierarchy *except* in the case where ResponseStateManager.isPostback(javax.faces.context.FacesContext) returns true at the same time as FacesContext.getCurrentPhaseId() returns PhaseId.RESTORE_VIEW. When both of those conditions are met, Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class, java.lang.Object) must not be called.
> MyFaces 2.1.3 is publishing this event when those conditions are met despite of the spec.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira