javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2586

Composite component (CC): clientBehavior + EL with ui:param

    Details

      Description

      First, excuse my english writting. Hello everybody, the problem is when I use ui:param to create an EL expression in the render attribute an pass to my composite component like a clientBehavior, for example:

      Page where I pass the reportBean param

      page.xhtml
      <ui:composition template="/WEB-INF/template/layouts/report-layout.xhtml">
        <ui:param name="reportBean" value="#{bean}" />
      
        <ui:define name="report-params">
          <ui:include src="/WEB-INF/template/partials/report-parameters.xhtml" />        
        </ui:define>
      </ui:composition>
      

      Page(facelets composition) being included in page.xhtml, we can see my composite component ups:person with f:ajax

      report-parameters.xhtml
      <h:form id="form-report-params" >
        ////////
      
        <ups:person id="report-param" value="#{reportBean.person}">
          <f:ajax event="change" render=":form-report-params:report-param-group #{reportBean.isGroupRendered()?':form-report-params:report-param-group':''}"
        </ups:person>
        
        ////////
      </h:form>
      

      Composite Component

      person.xhtml
      <composite:interface componentType="components.PersonComponent">
        <composite:attribute name="value" required="true" />
        <composite:clientBehavior name="change" event="action" targets="accept-button-hidden" />
      </composite:interface>
      
      <composite:implementation>
      /////////
      </composite:implementation>
      

      The problem is in f:ajax, escifically in:

      render=":form-report-params:report-param-class #{reportBean.isGroupRendered()?':form-report-params:report-param-group':''}"

      the renderized code is: "render:report-param-class" ignoring the EL expression, this only happens with CC.

      I'm trying to check the source code to find a solution, but I need your help to clarify this. bug or not?

        Issue Links

          Activity

          Hide
          Lynx6 added a comment -

          Hello Manfred, How I can attach the file?... I simplified this sample, now is easy to understand...

          Show
          Lynx6 added a comment - Hello Manfred, How I can attach the file?... I simplified this sample, now is easy to understand...
          Hide
          Manfred Riem added a comment -

          Please send it to issues@javaserverfaces.java.net

          Show
          Manfred Riem added a comment - Please send it to issues@javaserverfaces.java.net
          Hide
          Lynx6 added a comment -

          yes, was sent... the sample is attached like "CCAjaxTest.zip", the subject is: "Example for JAVASERVERFACES-2720, JAVASERVERFACES-2586‏"

          Show
          Lynx6 added a comment - yes, was sent... the sample is attached like "CCAjaxTest.zip", the subject is: "Example for JAVASERVERFACES-2720 , JAVASERVERFACES-2586 ‏"
          Hide
          Lynx6 added a comment -

          I've checked this issue today with 2.1.22 but I can't reproduce it again... Manfred, Can you confirm if some change was applied?

          Show
          Lynx6 added a comment - I've checked this issue today with 2.1.22 but I can't reproduce it again... Manfred, Can you confirm if some change was applied?
          Hide
          Manfred Riem added a comment -

          Several fixes related to composite component have gone in since 2.1.13. I will mark this issue as fixed in 2.1.22. Thanks!

          Show
          Manfred Riem added a comment - Several fixes related to composite component have gone in since 2.1.13. I will mark this issue as fixed in 2.1.22. Thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              Lynx6
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: