tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Dubrov (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-2309) t:container should remove outer elements
Date Fri, 28 Mar 2008 04:32:24 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582902#action_12582902
] 

Ivan Dubrov commented on TAPESTRY-2309:
---------------------------------------

I have the following templates:

Layout.tml (component):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <head>
    <title>Layout</title>
  </head>
  <body>
    <t:body/> 
  </body>
</html>

Start.tml (component):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <head>
    <title>Should be removed!</title>
  </head>
  <body>
    <t:container>
  	  <t:layout>
        Content!    
      </t:layout>
    </t:container>
  </body>
</html>

The idea is that I want to make Start.tml previewable in browser, so I've added outer tags
html, head (with reference to the preview-friendly .css), body. But when application is running,
I want these tags to be removed (since they are rendered by the layout component).

Expected result (formatted):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="assets/tapestry/default.css" rel="stylesheet" type="text/css">
    <title>Layout</title>
  </head>
  <body>Content!</body>
</html>

But I get this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="assets/tapestry/default.css" rel="stylesheet" type="text/css">
    <title>Should be removed!</title>
  </head>
  <body>
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>Layout</title>
      </head>
      <body>Content!</body>
    </html>
  </body>
</html>


> t:container should remove outer elements
> ----------------------------------------
>
>                 Key: TAPESTRY-2309
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2309
>             Project: Tapestry
>          Issue Type: Sub-task
>            Reporter: Ivan Dubrov
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message