Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-715

LinkSubmit component should render its body, even when disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Framework
    • None
    • 4.0b11

    Description

      Body rendering is working now with enabled LinkSubmits.

      But if the LinkSubmit is disabled then:

      • renderFormComponent() is called when rendering
      • rewindFormComponent() is not called when rewinding. This is because AbstractFormComponent.renderComponent() contains the following condition:

      if (!isDisabled())

      { rewindFormComponent(writer, cycle); }

      So in case of disabled LinkSubmits the component's body is not rendered when rewinding which may cause StaleLinkException.

      Maybe the isDisabled() check should go to a higher level allowing the components to decide whether they want to perform any operation or not - the same way as during rendering.

      BR,
      Norbi

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            snorbi Norbert Sándor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: