You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "John Crim (JIRA)" <ji...@apache.org> on 2009/05/15 00:54:45 UTC

[jira] Created: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.

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.


[jira] Updated: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.

Posted by "John Crim (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.

Posted by "John Crim (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.

Posted by "John Crim (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (TAP5-699) XHTML namespace declaration in template with layout causes java.lang.IllegalStateException: This markup writer does not have a current element.

Posted by "John Crim (JIRA)" <ji...@apache.org>.
     [ 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.