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

PlaceholderBlock should implement RenderCommand

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.3.2, 5.4
    • 5.3.7, 5.4
    • tapestry-core

    Description

      If we have an empty zone like this:
      <t:zone t:id="myZone" />

      zone.getBody() fails to update the zone in an event handler with the following exception:

      org.apache.tapestry5.ioc.util.UnknownValueException
      A component event handler method returned the value <PlaceholderBlock>. Return type org.apache.tapestry5.internal.structure.ComponentPageElementImpl$PlaceholderBlock can not be handled.

      This is because ComponentPageElementImpl.PlaceholderBlock does not implement RenderCommand.

      A patch is provided with a test that fails.

      I would highly appreciate it if a commiter applies it to the 5.4. branch and to the 5.3. branch.

      Cheers,
      Dragan Sahpaski

      Attachments

        1. TAP-1890.patch
          3 kB
          Dragan Sahpaski

        Activity

          People

            kaosko Kalle Korhonen
            dragan.sahpaski Dragan Sahpaski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: