tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Crim (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.
Date Fri, 15 May 2009 04:45:45 GMT

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

John Crim resolved TAP5-699.
----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 5.1.0.5

Now I'm not able to reproduce this.  I believe it was a problem with how I deployed the war.

> 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
>             Fix For: 5.1.0.5
>
>         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.


Mime
View raw message