You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2015/01/12 09:10:58 UTC

[jira] [Closed] (TAP5-842) Add a conditional clause to IoC Symbol evaluation

     [ https://issues.apache.org/jira/browse/TAP5-842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Kemnade closed TAP5-842.
-------------------------------
    Resolution: Invalid

We assume this is no longer relevant and therefore close it.
If you still have this issue in a recent Tapestry version (such as 5.3.8 or the latest 5.4 preview release), feel free to provide the necessary information and reopen.

> Add a conditional clause to IoC Symbol evaluation
> -------------------------------------------------
>
>                 Key: TAP5-842
>                 URL: https://issues.apache.org/jira/browse/TAP5-842
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-ioc
>    Affects Versions: 5.2
>            Reporter: Howard M. Lewis Ship
>              Labels: bulk-close-candidate
>
> It's very common to want to do some extra, extra late binding of symbols ... generally, to configure things one way for production mode and another way for development mode.
> A symbol syntax such as
> ${foo ? bar  : baz }
> (whitespace optional and ignored)
> could be used for this (common) situation.  First symbol foo is evaluated and coerced to Boolean, this selects either 'bar' or 'baz' which are then evaluated as symbols.  Thus:
> foo.delay.production=1 h
> foo.delay.development=1 s
> foo.delay = ${tapestry.production-mode ? foo.delay.production : foo.delay.development}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)