I've been thinking of expanding how symbols are interpreted, so that you could do this kind of thing more easily.
I.e. ${jdbc.url} = "jdbc:mysql:${jdbc.hostname}/..." ${jdbc.hostname} = "${jdbchostname.production-mode.${tapestry.production-mode}}" ${jdbc.production-mode.true} = "proddb"; ${jdbc.production-mode.false} = "testdb"; That is, allow nested symbols that would be expanded to form symbol names, that would then be expanded. On Mon, Apr 13, 2009 at 1:30 PM, Markus Joschko <markus.josc...@gmail.com> wrote: > Isn't that slightly more verbose when trying to retrieve the settings? > A symbol can simply be injected, for a service I would need to inject > the service and then get the value from it. > > Which means I always have to add something into the initialization > mehtod of a page/component. > > - Markus > > On Mon, Apr 13, 2009 at 10:27 PM, Thiago H. de Paula Figueiredo > <thiag...@gmail.com> wrote: >> What about having a service that reads the tapestry.production-mode >> symbol and provides all the settings based on it? >> >> -- >> Thiago >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org