MyFaces Core
  1. MyFaces Core
  2. MYFACES-3173

#{cc} inside f:event is not resolved correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.7, 2.1.1
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: JSR-314
    • Labels:
      None

      Description

      The following case:

      <composite:interface componentType="org.apache.myfaces.view.facelets.tag.composite.CompositeTestComponent">
      </composite:interface>
      <composite:implementation>
      <f:event type="javax.faces.event.PostAddToViewEvent" listener="#

      {cc.postAddToViewCallback}

      "/>
      </composite:implementation>

      throws an exception, because component stack is not set correctly when PostAddToView is delivered.

        Activity

        Hide
        Leonardo Uribe added a comment -

        The solution is just add push/pop code when PostAddToViewEvent is published. Additionally, I did some changes on the algorithm used to locate #

        {cc}

        references, because it was too coupled with api details (it should not assume the attribute holding the stack).

        Show
        Leonardo Uribe added a comment - The solution is just add push/pop code when PostAddToViewEvent is published. Additionally, I did some changes on the algorithm used to locate # {cc} references, because it was too coupled with api details (it should not assume the attribute holding the stack).

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Gerald Müllan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development