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

Exception when checking BeanEditor Field required in ValidationDecorator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.0.16
    • tapestry-core
    • None

    Description

      You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).

      "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."

      The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html

      Attachments

        1. PropertyEditor_cleanupEnvironment.patch
          0.7 kB
          Christian Köberl
        2. beaneditortest.zip
          9 kB
          Christian Köberl

        Activity

          People

            hlship Howard Lewis Ship
            koc Christian Köberl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: