You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Marcus Büttner (JIRA)" <de...@myfaces.apache.org> on 2011/04/13 12:27:05 UTC
[jira] [Created] (MYFACES-3109) UIInput SystemEvents are called
with wrong sourceBaseTyp
UIInput SystemEvents are called with wrong sourceBaseTyp
--------------------------------------------------------
Key: MYFACES-3109
URL: https://issues.apache.org/jira/browse/MYFACES-3109
Project: MyFaces Core
Issue Type: Bug
Reporter: Marcus Büttner
Function publishEvent is called with UIComponent.class instead of source.getClass according to spec java doc application.publishEvent.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (MYFACES-3109) UIInput SystemEvents are called
with wrong sourceBaseTyp
Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Korherr resolved MYFACES-3109.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.6-SNAPSHOT
fixed
> UIInput SystemEvents are called with wrong sourceBaseTyp
> --------------------------------------------------------
>
> Key: MYFACES-3109
> URL: https://issues.apache.org/jira/browse/MYFACES-3109
> Project: MyFaces Core
> Issue Type: Bug
> Reporter: Marcus Büttner
> Assignee: Jakob Korherr
> Fix For: 2.0.6-SNAPSHOT
>
>
> Function publishEvent is called with UIComponent.class instead of source.getClass according to spec java doc application.publishEvent.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MYFACES-3109) UIInput SystemEvents are called
with wrong sourceBaseTyp
Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019274#comment-13019274 ]
Jakob Korherr commented on MYFACES-3109:
----------------------------------------
This is a pretty big bug. Sadly no-one recognized it so far.
Javadoc of Application.publishEvent() says:
sourceBaseType - The Class of the source event that must be used to lookup the listener to which this event must be published. If this argument is null the return from source.getClass() must be used as the sourceBaseType.
Marcus found out about it, because of the Primefaces guide to style invalid input fields with jsf (see http://cagataycivici.wordpress.com/2011/04/04/styling-invalid-input-fields-with-jsf/).
So we have to change all references to UIComponent.class to source.getClass().
> UIInput SystemEvents are called with wrong sourceBaseTyp
> --------------------------------------------------------
>
> Key: MYFACES-3109
> URL: https://issues.apache.org/jira/browse/MYFACES-3109
> Project: MyFaces Core
> Issue Type: Bug
> Reporter: Marcus Büttner
> Assignee: Jakob Korherr
>
> Function publishEvent is called with UIComponent.class instead of source.getClass according to spec java doc application.publishEvent.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira