|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (TAPESTRY-2509) Add type coercions from String to Renderable, BlockAdd 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@... |
|
|
Re: [jira] Created: (TAPESTRY-2509) Add type coercions from String to Renderable, BlockGreat
在 Thu, 10 Jul 2008 06:55:31 +0800,Howard M. Lewis Ship (JIRA) <dev@...> 写道: > 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@... For additional commands, e-mail: dev-help@... |
|
|
[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@... For additional commands, e-mail: dev-help@... |
|
|
[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=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@... |
|
|
[jira] Closed: (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: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@... For additional commands, e-mail: dev-help@... |
| Free Forum Powered by Nabble | Forum Help |