You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2011/09/23 21:37:26 UTC

[jira] [Closed] (TAP5-845) Informal Parameters are not allowed to have the value "" (the empty string)

     [ https://issues.apache.org/jira/browse/TAP5-845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-845.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3
         Assignee: Howard M. Lewis Ship

> Informal Parameters are not allowed to have the value "" (the empty string)
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-845
>                 URL: https://issues.apache.org/jira/browse/TAP5-845
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.3
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira