You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org> on 2007/11/15 16:03:43 UTC

[jira] Created: (TAPESTRY-1912) t:component does not render its body properly

t:component does not render its body properly
---------------------------------------------

                 Key: TAPESTRY-1912
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
             Project: Tapestry
          Issue Type: Sub-task
          Components: tapestry-core
    Affects Versions: 5.0.6
            Reporter: Kalin Krustev


Only part of the markup is rendered.

Cause:
org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Commented: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556081#action_12556081 ] 

Kalin Krustev commented on TAPESTRY-1912:
-----------------------------------------

I am just trying to use <t:container> for the purpose it was created - the documentation says: "A container element contains markup without being considered part of the template. This is useful for components that render several top level tags", but only the last top level tag is being rendered.

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Closed: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1912.
------------------------------------------

    Resolution: Duplicate
      Assignee: Howard M. Lewis Ship

Moved to TAP5 list.

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.10
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Issue Comment Edited: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555966#action_12555966 ] 

kalin.krustev@gmail.com edited comment on TAPESTRY-1912 at 1/4/08 1:30 PM:
-----------------------------------------------------------------

Maybe I did not explain well, but this is really a bug.
t:container is not working well.

For example:

<t:container>
  <div>line 1</div>
  <div>line 2</div>
</t:container>

Will render only 
<div>line 2</div>

Also, as it is said in documentation - this is useful for component templates, so there we do not need to have single root.
One more thing - one may need to use <t:container> in template for some special partial page rendering.

      was (Author: kalin.krustev@gmail.com):
    Maybe I did not explain well, but this is really a bug.
t:container is not working well.

For example:

<t:container>
  <div>line 1</div>
  <div>line 2</div>
</t:container>

Will render only 
<div>line 1</div>

Also, as it is said in documentation - this is useful for component templates, so there we do not need to have single root.
One more thing - one may need to use <t:container> in template for some special partial page rendering.
  
> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Commented: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Christian Köberl (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573788#action_12573788 ] 

Christian Köberl commented on TAPESTRY-1912:
--------------------------------------------

Just tried:
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <div>line 1</div>
  <div>line 2</div>
</t:container>

It renders both lines:
<div>line 1</div><div>line 2</div>

Maybe the missing namespace?

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Closed: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1912.
------------------------------------------

    Resolution: Won't Fix
      Assignee: Howard M. Lewis Ship

Tapestry is designed to render SGML (HTML) or XML (XHTML) documents which are very strict about their being only a single root document.

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Commented: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Christian E Gruber (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556029#action_12556029 ] 

Christian E Gruber commented on TAPESTRY-1912:
----------------------------------------------

Actually, even with templates you need a single root, since all components need to be valid xml/sgml.  Partial pages must still conform.  You cant do a header that's
-----
<html>
  <head><title>blah</title><head>
  <body>
-----

then a footer that's

-----
   </body>
</html>
-----


That's old-school jsp fragment stuff.  If you want that, you use multiple components.
Unless I'm misunderstanding what you're trying to do with partials... 



> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Updated: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalin Krustev updated TAPESTRY-1912:
------------------------------------

    Affects Version/s:     (was: 5.0.6)
                       5.0.10

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.10
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Updated: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1912:
-------------------------------------------

    Assignee:     (was: Howard M. Lewis Ship)

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.10
>            Reporter: Kalin Krustev
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Reopened: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalin Krustev reopened TAPESTRY-1912:
-------------------------------------


Maybe I did not explain well, but this is really a bug.
t:container is not working well.

For example:

<t:container>
  <div>line 1</div>
  <div>line 2</div>
</t:container>

Will render only 
<div>line 1</div>

Also, as it is said in documentation - this is useful for component templates, so there we do not need to have single root.
One more thing - one may need to use <t:container> in template for some special partial page rendering.

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Updated: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalin Krustev updated TAPESTRY-1912:
------------------------------------

    Summary: t:container does not render its body properly  (was: t:component does not render its body properly)

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Kalin Krustev
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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


[jira] Commented: (TAPESTRY-1912) t:container does not render its body properly

Posted by "Kalin Krustev (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575006#action_12575006 ] 

Kalin Krustev commented on TAPESTRY-1912:
-----------------------------------------

Ok, here is more info - t:container works when used in component template, but does not work when used in page template.

> t:container does not render its body properly
> ---------------------------------------------
>
>                 Key: TAPESTRY-1912
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1912
>             Project: Tapestry
>          Issue Type: Sub-task
>          Components: tapestry-core
>    Affects Versions: 5.0.10
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> Only part of the markup is rendered.
> Cause:
> org.apache.tapestry.dom.Document supports only single root tree structure, so when we have non tree structured template, org.apache.tapestry.internal.services.MarkupWriterImpl.element() calls several times org.apache.tapestry.dom.Document.newRootElement() and the previous markup is lost. My opinion is to make org.apache.tapestry.dom.Document support multiple root tree structure.

-- 
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