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

Link components should not render during rewind in portlet mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0.1
    • Framework
    • None
    • Tapestry 4.0 beta 3, Jetspeed 2.0-M3

    Description

      When running as a portlet, there is no way to generate a link during the processAction() phase, that is the rewind phase.
      When a Link component attempts to render its link during rewind, the PortletLinkFactoryImpl crashes because _renderResponse is null.

      One solution is to change the renderComponent() method of AbstractLinkComponent:

      protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)

      { + if (cycle.isRewinding()) + return; getRenderer().renderLink(writer, cycle, this); }

      Not quite sure about the side effects...

      Attachments

        1. TAPESTRY-525-patch.txt
          4 kB
          Raphael Jean

        Activity

          People

            jkuhnert Jesse Kuhnert
            phtouz Raphael Jean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: