[
https://issues.apache.org/jira/browse/TAP5-2109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aritz Bastida updated TAP5-2109:
--------------------------------
Attachment: t_content_issue.JPG
Please find attached a snapshot.
> Tapestry <t:content> stripping out text in rendered page
> --------------------------------------------------------
>
> 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
> Priority: Minor
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira