[
https://issues.apache.org/jira/browse/TAPESTRY-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Westgate updated TAPESTRY-1733:
------------------------------------
Description:
The Any and Image components were removed despite the fact that expansions are
not a complete replacement.
Some examples where Any or Image are necessary or superior:
<!-- a static class for preview; a dynamic class at runtime -->
<span t:type="Any" t:class="prop:someMethodToGetTheClass"
class="previewDisplayClass">${message:someText}</span>
<!-- using a mixin -->
<div t:type="Any" t:mixins="myLayout">My layout</div>
<!-- previewable image that is still an asset (localized etc) at runtime -->
<img t:type="Image" src="images/other/header.gif" alt="informals rendered"
border="0"/>
In addition, by adding another blade to Any's swiss army knife even more
previewable templates can be achieved:
<!-- demo body for preview; dynamic body at runtime -->
<h3 t:type="Any" t:body="item.itemName" class="itemClass">Example Item</h3>
The tag body is replaced by the contents of the body parameter.
Cheers,
Nick.
was:
The Any and Image components were removed despite the fact that expansions are
not a complete replacement.
Some examples where Any or Image are necessary or superior:
<!-- a static class for preview; a dynamic class at runtime -->
<span t:type="Any" t:class="prop:someMethodToGetTheClass"
class="previewDisplayClass">${message:someText}</span>
<!-- using a mixin -->
<div t:type="Any" t:mixins="myLayout">My layout</div>
<!-- previewable image that is still an asset (localized etc) at runtime -->
<img t:type="Image" src="images/other/header.gif" alt="informals rendered"
border="0"/>
In addition, by adding another blade to Any's swiss army knife even more
previewable templates can be achieved:
<!-- demo body for preview; dynamic body at runtime -->
<h3 t:type="Any" t:body="item.itemName" class="itemClass">Example Item</h3>
The tag body is replaced by the contents of the body parameter.
(I've also suggested this as a solution to TAPESTRY-1642.)
Cheers,
Nick.
> Bring back the Any and Image components for more previewable templates
> ----------------------------------------------------------------------
>
> Key: TAPESTRY-1733
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1733
> Project: Tapestry
> Issue Type: Improvement
> Affects Versions: 5.0.5
> Reporter: Nick Westgate
> Priority: Minor
>
> The Any and Image components were removed despite the fact that expansions
> are not a complete replacement.
> Some examples where Any or Image are necessary or superior:
> <!-- a static class for preview; a dynamic class at runtime -->
> <span t:type="Any" t:class="prop:someMethodToGetTheClass"
> class="previewDisplayClass">${message:someText}</span>
> <!-- using a mixin -->
> <div t:type="Any" t:mixins="myLayout">My layout</div>
> <!-- previewable image that is still an asset (localized etc) at runtime -->
> <img t:type="Image" src="images/other/header.gif" alt="informals rendered"
> border="0"/>
> In addition, by adding another blade to Any's swiss army knife even more
> previewable templates can be achieved:
> <!-- demo body for preview; dynamic body at runtime -->
> <h3 t:type="Any" t:body="item.itemName" class="itemClass">Example Item</h3>
> The tag body is replaced by the contents of the body parameter.
> Cheers,
> Nick.
--
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]