You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/06/02 00:45:17 UTC

[jira] [Commented] (TAP5-2109) ignores text just before the closing tag

    [ https://issues.apache.org/jira/browse/TAP5-2109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14568171#comment-14568171 ] 

ASF subversion and git services commented on TAP5-2109:
-------------------------------------------------------

Commit 2619a327f9f1082dd95f6e97f7d43c76abb88a22 in tapestry-5's branch refs/heads/master from [~hlship]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=2619a32 ]

TAP5-2109: <t:content> ignores text just before the closing tag


> <t:content> ignores text just before the closing tag
> ----------------------------------------------------
>
>                 Key: TAP5-2109
>                 URL: https://issues.apache.org/jira/browse/TAP5-2109
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6
>            Reporter: Aritz Bastida
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.4
>
>         Attachments: t_content_issue.JPG
>
>
> Let's create a new Tapestry component called <t:CheckboxField> (pretty inspired name)...
> {code:title=Component Template}
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter">
> <t:content>
>   BEGIN
>   <t:if test="modeEdit">
>     	
>     <t:label for="checkboxField"/>
>     <input t:id="checkboxField"/>       
>     <p:else>
>        <span class="label">${context.label}</span>
>        <span class="input" t:type="any" t:mixins="NotEmpty">${convertedBooleanValue}</span>
>     </p:else>
>     	 	
>   </t:if>
>   END
> </t:content>
> </html>
> {code}
> ...and use it in a page:
> {code:title=Page Template}
> <t:beaneditor t:id="customerEdit" t:object="customer" model="model">		
>    <p:vip> <t:CheckboxField/> </p:vip>		
> </t:beaneditor>
> {code}
> Then, the (plain) text "END" will never get rendered. Of course, normally we would surround it within an HTML element, such as <p> or <div>, but need not be.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)