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

Fragment#getAssociatedMarkupStream() doesn't look for Parent in the proper way

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.4-RC2
    • Component/s: wicket
    • Labels:
      None

      Description

      Fragment#getAssociatedMarkupStream, under certain conditions, decides to ask its parent for the AssociatedMarkupStream.

      To do so, it uses the #getParent() method.

      This is not always correct, because the Fragment's parent is not always a container with associated markup (for example, it could be a Form).

      The problem can be easily fixed by using the #findParentWithAssociatedMarkup() method instead.

      (See org.apache.wicket.markup.html.panel.Fragment.java, lines 344 and 346 in wicket 1.3.5)

        Attachments

          Activity

            People

            • Assignee:
              jdonnerstag Juegen Donnerstag
              Reporter:
              moralesg German Morales
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified