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

Form.findForm(Component c) bug. When form is part of Border and form component like TextField is inside another Border , component cannot resolve its form.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.4.2, 1.5-M1
    • wicket
    • None

    Description

      I have Border class which renders Form and some other elements for feedback messages.
      Class included in attachments.
      Into this border i am putting form component which is Panel and in that Panel is another Border.
      Borders form has body container added.

      When i submit form i get error "Could not find Form parent for ..."
      It's because Form.findForm method search for Form.class just in nearest component Border and not in all Borders upper in hierarchy.

      Attachments

        1. myproject.tar.gz
          5 kB
          Branislav Kalas

        Activity

          People

            jdonnerstag Juegen Donnerstag
            bkalas@gmail.com Branislav Kalas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: