You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Renat Zubairov (JIRA)" <de...@tapestry.apache.org> on 2008/07/10 07:43:31 UTC
[jira] Commented: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
[ https://issues.apache.org/jira/browse/TAPESTRY-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612381#action_12612381 ]
Renat Zubairov commented on TAPESTRY-2509:
------------------------------------------
Will the following case also work?
<t:if test="stuff" else="message:nothing-to-display">
${stuff}
</t:if>
> Add type coercions from String to Renderable, Block
> ---------------------------------------------------
>
> Key: TAPESTRY-2509
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2509
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Howard M. Lewis Ship
> Priority: Minor
>
> Having a String to Block coercion would allow the following to be equivalent (excluding minor whitespace issues):
> <t:if test="stuff">
> ${stuff}
> <t:parameter name="else">No stuff to display.
> </t:if>
> -and-
> <t:if test="stuff" else="No stuff to display">
> ${stuff}
> </t:if>
> This could also be implemented as String -> Renderable and Renderable -> Block; this would allow (for example) a lone component to be passed to a component parameter of type Block.
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org