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

DropDownChoice value may be lost after ajax submit call

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.3
    • 1.4.6
    • wicket
    • None

    Description

      It happens, when DropDownChoice is enabled, but not enabledInHierarchy (parent container is not enabled).

      Every component should update it's rawInput when it's visible and enabled (it means the browser sends it's state in POST).

      public final void inputChanged() method should check if the component is enabled on page using

      isEnabledInHierarchy() instead of isEnabled().

      Otherwise the method resets rawInput value for the component in that case.

      Similar situation occures for children of AbstractTextComponent.
      The inputChanged() method sets NO_RAW_INPUT value but getValue() method re-reads it's value from the model (and may loose it's temporary value).

      Attachments

        Activity

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

          People

            jdonnerstag Juegen Donnerstag
            zetor189456 SÅ‚awomir Zatorski
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment