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

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

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

The If component doesn't render anything if it's test parameter is false.

This is user error: you've specifically said "don't render anything" and it's 
Tapestry fault that nothing is rendered?

A related bug will have improved the error message that Tapestry displays in 
this circumstance (though it may be somewhat misdirected, since it chats about 
a missing page template, which isn't the case in this situation).

> 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