[ https://issues.apache.org/jira/browse/TAP5-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Crim updated TAP5-699: --------------------------- Attachment: webAppA.zip Repro case > XHTML namespace declaration in template with layout causes > java.lang.IllegalStateException: This markup writer does not have a current > element. > ----------------------------------------------------------------------------------------------------------------------------------------------- > > Key: TAP5-699 > URL: https://issues.apache.org/jira/browse/TAP5-699 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.1.0.5 > Reporter: John Crim > Attachments: webAppA.zip > > > Repro steps: > 1. Create a new tapestry webapp using the archetype (v 5.1.0.5) > 2. Add the XHTML xmlns declaration to Index.tml > <html t:type="layout" title="webAppA Index" > t:sidebarTitle="Current Time" > >> xmlns="http://www.w3.org/1999/xhtml" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > xmlns:p="tapestry:parameter"> > Causes this error: > Render queue error in DefineNamespace[ http://www.w3.org/1999/xhtml]: This > markup writer does not have a current element. The current element is > established with the first call to element() and is maintained across > subsequent calls. > java.lang.IllegalStateException: This markup writer does not have a current > element. The current element is established with the first call to element() > and is maintained across subsequent calls. > Declaring the default namespace for an XML document is the "right" thing to > do - it defines the namespace for all the non-prefixed XML in the body. > Unfortunately this currently isn't possible. > Changing the markup to: > <t:layout title="webAppA Index" > t:sidebarTitle="Current Time" > xmlns="http://www.w3.org/1999/xhtml" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > xmlns:p="tapestry:parameter"> > results in the same error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.