tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massimo Lusetti (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-592) An error occurs when parsing a template with a Block component as root component.
Date Fri, 12 Aug 2011 15:46:27 GMT

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

Massimo Lusetti closed TAP5-592.
--------------------------------

    Resolution: Won't Fix

The workaround seems pretty easy

> An error occurs when parsing a template with a Block component as root component.
> ---------------------------------------------------------------------------------
>
>                 Key: TAP5-592
>                 URL: https://issues.apache.org/jira/browse/TAP5-592
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Briac Pilpré
>            Priority: Minor
>
> When trying to parse a component description containing a single Block declaration, Tapestry
throws an exception: 
> org.apache.tapestry5.ioc.internal.util.TapestryException
> Failure parsing template classpath:my/app/components/HelloBlock.tml: Element <block>
does not support an attribute named ''. The only allowed attribute name is 'id'.
> <?xml version="1.0"?>
> <t:block xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" t:id="helloBlock">
>     Hello.
> </t:block>
> The TemplateParserImpl.findSingleParameter allows only a single attribute but the xmlns:t
attribute is taken into account. I guess we could patch this correct by skipping xmlns attributes
(like the xml:space attribute is skipped).
> Partial Stack trace
>         * org.apache.tapestry5.internal.services.TemplateParserImpl.findSingleParameter(TemplateParserImpl.java:500)
>         * org.apache.tapestry5.internal.services.TemplateParserImpl.startBlock(TemplateParserImpl.java:445)
>         * org.apache.tapestry5.internal.services.TemplateParserImpl.startTapestryElement(TemplateParserImpl.java:396)
>         * org.apache.tapestry5.internal.services.TemplateParserImpl.startElement(TemplateParserImpl.java:352)
>         * org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

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

       

Mime
View raw message