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

LinkSubmit component should render its body, even when disabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              snorbi Norbert Sándor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: