[ 
https://issues.jboss.org/browse/RF-13518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12940178#comment-12940178
 ] 

Lukáš Fryč commented on RF-13518:
---------------------------------

The problem here (and in MyFaces as well) is that in our ActionListenerHandler 
we use [TagHandlerUtils that hard-code a constant for accessing 
context|https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/common/TagHandlerUtils.java#L55]
 of attached handlers for Composite Component.

As you can guess (and as it is commented in the code ;-) - *it is 
implementation dependent*).

Mojarra changed the constant from 
[{{"javax.faces.RetargetableHandlers"}}|https://github.com/jboss/mojarra/blob/2.1.27-jbossorg-1/jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/CompositeComponentTagHandler.java#L327]
 to 
[{{"javax.faces.view.AttachedObjectHandlers}}|https://github.com/jboss/mojarra/blob/2.2.5-jbossorg-3/jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/CompositeComponentTagHandler.java#L337].

On the other hand, MyFaces approach is little bit different with their 
[{{FaceletCompositionContext#getAttachedObjectHandlers(UIComponent)|http://svn.apache.org/repos/asf/myfaces/core/tags/myfaces-core-module-2.2.0/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletCompositionContext.java].


                
> Action Listener - invoking from composite component does not work
> -----------------------------------------------------------------
>
>                 Key: RF-13518
>                 URL: https://issues.jboss.org/browse/RF-13518
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 5.0.0.Alpha3
>         Environment: WildFly 8.0.0.Final-SNAPSHOT
>            Reporter: Juraj Húska
>            Assignee: Lukáš Fryč
>            Priority: Critical
>              Labels: jsf22
>             Fix For: 5.0.0.Alpha3
>
>
> Invoking Action Listener from composite component does not work. Please see 
> the steps to reproduce the issue.
> Note that it works with JSF 2.1.x. It is similar to issue RF-10585, but that 
> one is for MyFaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to