You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2015/06/02 00:45:17 UTC
[jira] [Closed] (TAP5-2109) ignores text just before
the closing tag
[ https://issues.apache.org/jira/browse/TAP5-2109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-2109.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.4
> <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)