[ 
https://issues.apache.org/jira/browse/MYFACES-4068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15610327#comment-15610327
 ] 

Leonardo Uribe commented on MYFACES-4068:
-----------------------------------------

I can confirm it is a bug in MyFaces. The changes done in MYFACES-3904 are 
correct. The problem is HtmlRendererUtils.decodeClientBehaviors(...) does not 
take into accoung the case where javax.faces.source is not a clientId, but an 
item in this case. Example:

MyFaces 2.2.9 h:selectManyCheckbox ajax (works)

javax.faces.ClientWindow=-te4mlruvg
javax.faces.ViewState=oa3ZdejJ9DjHB6klPL+bgTL5lE4GEuLIV6fS82VZAqFvZP4e
javax.faces.behavior.event=valueChange
javax.faces.partial.ajax=true
javax.faces.partial.event=change
javax.faces.partial.execute=mainForm:j_id_b
javax.faces.partial.render=mainForm:showColor
javax.faces.source=mainForm:j_id_b
mainForm=mainForm
mainForm:j_id_b=Red
mainForm_SUBMIT=1

onchange="jsf.ajax.request('mainForm:j_id_b',event,{render:'mainForm:showColor 
','javax.faces.behavior.event':'valueChange'})"

MyFaces 2.2.12-SNAPSHOT h:selectManyCheckbox ajax (doesn't work)

javax.faces.ClientWindow=ti65vupiq
javax.faces.ViewState=FrXAOfxPjG1LXqwOxXOqF5gxP8gNKEzORpTCNtEcqixwcxWA
javax.faces.behavior.event=valueChange
javax.faces.partial.ajax=true
javax.faces.partial.event=change
javax.faces.partial.execute=mainForm:j_id_b
javax.faces.partial.render=mainForm:showColor
javax.faces.source=mainForm:j_id_b:0
mainForm=mainForm
mainForm:j_id_b=Red
mainForm_SUBMIT=1

onchange="jsf.ajax.request('mainForm:j_id_b:0',event,{execute:'mainForm:j_id_b 
',render:'mainForm:showColor ','javax.faces.behavior.event':'valueChange'})"

It is clear that javax.faces.source always use a number after the naming 
container separator char. I think a check for number in that part is preferred.

> Ajax-Listener (PrimeFaces) is not called for some selection-components
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-4068
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4068
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.10, 2.2.11
>         Environment: MyFaces 2.2.10/2.2.11 on Wildfly 9.0.2, PrimeFaces 5.3 
> or 6.0
>            Reporter: Bernhard Hablesreiter
>
> Recently we ran into some problems getting a PrimeFaces "p:ajax"-Component 
> attached to a h:selectManyCheckbox or h:selectOneRadio.
> The problem here is, that the specified "listener"-action is not called.
> We first thought this is a PF issue but in only started with version 2.2.10 
> of MyFaces. In Version 2.2.9 it worked just fine and propably a default 
> jsf-ajax-listener won't work as well (not tested though).
> E.g. we have this non-working code where the listener action is not called 
> (no matter what event-type we specify):
> {code:xml}
> <h:selectManyCheckbox layout="pageDirection" value="#{bean.mySelection}">
>       <f:selectItems value="#{selectionItems}" />
>       <p:ajax process="@this" listener="#{myBean.selectionChanged}" 
> update="@form" global="false" />
> </h:selectManyCheckbox>
> {code}
> We're not sure if this should be fixed on PF side, but as mentioned before, 
> the problem started with the switch to MyFaces 2.2.10.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to