Tapestry 5
  1. Tapestry 5
  2. TAP5-845

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      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.

        Activity

        Hide
        Hudson added a comment -

        Integrated in tapestry-trunk-freestyle #538 (See https://builds.apache.org/job/tapestry-trunk-freestyle/538/)
        TAP5-845: Informal Parameters are not allowed to have the value "" (the empty string)

        hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1174968
        Files :

        • /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/BindingSourceImpl.java
        • /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ServicesMessages.java
        • /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/services/ServicesStrings.properties
        • /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/BindingSourceImplTest.java
        Show
        Hudson added a comment - Integrated in tapestry-trunk-freestyle #538 (See https://builds.apache.org/job/tapestry-trunk-freestyle/538/ ) TAP5-845 : Informal Parameters are not allowed to have the value "" (the empty string) hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1174968 Files : /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/BindingSourceImpl.java /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ServicesMessages.java /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/services/ServicesStrings.properties /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/BindingSourceImplTest.java

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development