[ 
https://issues.apache.org/jira/browse/TAPESTRY-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546598
 ] 

Kalin Krustev commented on TAPESTRY-1555:
-----------------------------------------

Sorry, the second template is wrong (test should be true), I meant

<t:if test="true" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
   BODY
</t:if>

does not render its BODY.

In the current version 5.0.6, components with such templates work fine, but 
pages still throw exceptions:

<t:if test="false" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  BODY
</t:if>
throws
Page Test did not generate any markup when rendered. This could be because its 
template file could not be located, or because a render phase method in the 
page prevented rendering.

<t:if test="true" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  BODY
</t:if>
throws
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.

It seems reasonable for the pages to throw such exceptions, but maybe in some 
AJAX context one may need to use such "pages". Do you think this should be 
reported as an issue?

> Pages / Components do not render correctly when the root component of the 
> template is a tapestry component
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1555
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1555
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0, 5.0.3, 5.0.4
>            Reporter: Kalin Krustev
>            Assignee: Howard M. Lewis Ship
>
> A page / component with the following template
> <t:if test="false" 
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>    BODY
> </t:if>
> raises an exception "No root element has been defined."
> A page / component with the following template
> <t:if test="false" 
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>    BODY
> </t:if>
> does not render its BODY.
> I think this is a general problem, because I also tried with component 
> written by me (even with empty class and no template) and got the same 
> results.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to