Emil Petkov created MYFACES-3582:
------------------------------------

             Summary: Unable to process ajax calls within nested Composite 
Components
                 Key: MYFACES-3582
                 URL: https://issues.apache.org/jira/browse/MYFACES-3582
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.1.6
         Environment: Windows 7, Eclipse - Indigo Service Release 2, 
Chrome/Firefox 13
            Reporter: Emil Petkov


I am unable to make ajax calls within nested Composite Components. The outer 
composite could be just a wrapper. For the issue to appear it could be empty 
with only <composite:insertChildren/> in it. 
The inner composite component uses 
<composite:clientBehavior name="change" event="change" 
targets="#{cc.clientId}:some-id-here"/>
The event actually doesn't matter.

The inner component receives an ajax call like this:

<controls:listBox 
property="#{carDetailsMediator.carDetailsCarMakesListBoxProp}" 
items="#{carDetailsMediator.carDetailsCarMakesListBoxSelectItems}"
customId="carMakes" width="115" visibleLines="6">       
        <f:ajax event="change" render=":formID:carModel:combobox"
                 listener="#{carDetailsMediator.changeCarMake}" 
onevent="initComboboxes" />
</controls:listBox>

I tried to debug the myFaces 2.1.6 implementation and got to the point where in 
the lifecycle of the process at step 5 - Invoke Application there were no 
events and therefore no listeners were called.
I tried the same setup, but without the outer Composite Component, everything 
worked - the correct event was fired and the listeners called.
I haven't tried versions 2.1.7 and 2.1.8 of myFaces.

--
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

        

Reply via email to