thank you very much, it works! 2012/7/28 Taha Hafeez [via Tapestry] < ml-node+s1045711n5714850...@n5.nabble.com>
> With @Symbol you must use @Inject too > > @Proeprty > @Inject > @Symbol(SymbolConstants.PRODUCTION_MODE) > private boolean productionMode > > BTW you can also use :- > > <t:if test='symbol:tapestry.production-mode'> > ${symbol:tapestry.production-mode} > </t:if> > > regards > Taha > > > On Jul 28, 2012, at 2:19 PM, sommeralex wrote: > > > Thank you all for your answers. > > > > What I now did is just this in one of my pages: > > > > JAVA > > > > @Property > > @Symbol("tapestry.production-mode") > > private boolean productionMode; > > > > TML > > > > <t:if test="productionMode"> > > > > productionMode! > > > > </t:if> > > > > > > My FrontendModule > > > > public static void > contributeApplicationDefaults(MappedConfiguration<String, > > String> configuration) { > > > > configuration.add("tapestry.production-mode", "true"); > > > > } > > > > The String "productionMode!" is never printed. Using Tapestry 5.3.1. > > > > > > > > > > > > -- > > View this message in context: > http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714849.html > > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=0> > > For additional commands, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=1> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=2> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=3> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714850.html > To unsubscribe from Test if production or test mode.., click > here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714658&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNDY1OHwxMDUzMzQxMzM4> > . > NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714851.html Sent from the Tapestry - User mailing list archive at Nabble.com.