You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/07/10 00:55:31 UTC
[jira] Created: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
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
Re: [jira] Created: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
Posted by "com.liigo@gmail.com" <co...@gmail.com>.
Great
在 Thu, 10 Jul 2008 06:55:31 +0800,Howard M. Lewis Ship (JIRA)
<de...@tapestry.apache.org> 写道:
> 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.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ 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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
Posted by "Renat Zubairov (JIRA)" <de...@tapestry.apache.org>.
[ 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
[jira] Closed: (TAPESTRY-2509) Add type coercions from String to
Renderable, Block
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2509.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.15
Assignee: Howard M. Lewis Ship
> 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
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.15
>
>
> 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