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

wicket:enclosure and getVariation().

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0-M1, 7.4.0
    • 8.0.0-M2, 7.5.0
    • wicket
    • None

    Description

      We have a panel with a child form.
      When the form is submitted (via a link, textfield, ...), the following events will happen:

      • 1 call to form's onSubmit()
      • n calls to panel's getVariation().
      • reload of panel (with or without ajax).

      If, however, there is a <wicket:enclosure> tag with a child (for example - a label) inside the form's markup, the following events will happen when the form is submitted:

      • 1 call to panel's getVariation()
      • 1 call to form's onSubmit()
      • m calls to panel's getVariation().

      The resulting problem:
      The form (and its children) seem to be rendered using the markup file that was found as a result of the first call to getVariation(), while all other children
      of the panel will be rendered using the markup file that was found as a result of a call to getVariation() that happened after the form's submission.

      In our case - the form's submission causes the result of getVariation() to change, which results in incorrect markup (mixture of two markup files).

      Attachments

        1. myproject.zip
          58 kB
          Joris van Heesch

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              jvanheesch Joris van Heesch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: