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

Informal Parameters are not allowed to have the value "" (the empty string)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.3
    • tapestry-core
    • None

    Description

      A simple component:

      @SupportsInformalParameters
      public class Img {

      @Inject
      private ComponentResources resources;

      @Parameter(autoconnect = true, defaultPrefix = BindingConstants.CONTEXT)
      private Asset src;

      boolean beginRender(MarkupWriter writer)

      { writer.element("img", "src", src); resources.renderInformalParameters(writer); writer.end(); return true; }

      }

      Fails on:

      <t:img src="images/stripe.gif" width="984" height="18" alt="" />

      With:

      Parameter 'alt' must have a non-empty binding.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: