Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2245

select component: selected option is not listed in the model.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:

      Description

      @Component
      private Zone previewZone;

      @Component(parameters =

      {"value=previewMonth", "model=[1,3,6]", "zone=previewZone"}

      )
      private Select previewSelect;

      @OnEvent(component = "previewSelect", value = EventConstants.VALUE_CHANGED)
      void onValueChangedFromPreviewSelect(long result)
      {
      if (selectedDate == null)
      selectedDate = LocalDate.now();

      selectedDate = selectedDate.plusMonths((int) (result - 1));
      ajaxResponseRenderer.addRender("previewZone", previewZone);
      }

      After selecting a value in select component the following error message
      occoures:
      "Selected option is not listed in the model."

        Attachments

        1. ScreenDump.pdf
          65 kB
          Sven Homburg

          Issue Links

            Activity

              People

              • Assignee:
                mlusetti Massimo Lusetti
                Reporter:
                shomburg Sven Homburg
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: