Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-7057

header not rendered for components whithin enclosure in ajax response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 9.13.0
    • None
    • wicket-core
    • None

    Description

      Ajax response doesn't contain the binding of events (Wicket.Ajax.ajax({"u":...) of components while they are positionned within an enclosure.

      With the following code :
      ```
      <div wicket:enclosure="mylink">
         <a wicket:id="mylink"></a>
         <label wicket:id="mylabel"></label>
         <a wicket:id="myotherlink"></a>
      </div>
      ```

      When you click on mylink to refresh mylabel, wicket refreshes the enclosure tag, and call renderhead of behaviors of enclosure and mylink only, so myotherlink event is not bound

      It can be reproduced in the quickstart.
      I've also joined some pictures of the callstack to find easily where is the problem

      I don't know if other versions are affected

      Attachments

        1. callstack2.png
          64 kB
          Palancher aurélien
        2. callstack1.png
          93 kB
          Palancher aurélien
        3. myproject.zip
          48 kB
          Palancher aurélien

        Issue Links

          Activity

            People

              Unassigned Unassigned
              darkvadaure Palancher aurélien
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: