[
https://issues.apache.org/jira/browse/TAPESTRY-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612529#action_12612529 ]
Howard M. Lewis Ship commented on TAPESTRY-2509:
------------------------------------------------
Of course, it's all about the type coercion. It provides a lot of functionality for free, if you "prime the pump" with a few well selected coercions.
> 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@...
For additional commands, e-mail:
dev-help@...