[ 
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

Reply via email to