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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 5.4
    • 5.4
    • tapestry-core

    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

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

              Dates

                Created:
                Updated:
                Resolved: