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.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment