Re: Test if production or test mode..

2012-07-28 Thread Chris Mylonas
>> >>> >>> productionMode! >>> >>> >>> >>> >>> My FrontendModule >>> >>> public static void >> contributeApplicationDefaults(MappedConfiguration>> String> configuration) { >>> >&

Re: Test if production or test mode..

2012-07-28 Thread sommeralex
> > > public static void > contributeApplicationDefaults(MappedConfiguration > String> configuration) { > > > > configuration.add("tapestry.production-mode", "true"); > > > > } > > > > The String "producti

Re: Test if production or test mode..

2012-07-28 Thread Taha Siddiqi
y FrontendModule > > public static void contributeApplicationDefaults(MappedConfiguration String> configuration) { > > configuration.add("tapestry.production-mode", "true"); > > } > > The String "productionMode!" is never printed. Using Tapestry 5.3.

Re: Test if production or test mode..

2012-07-28 Thread sommeralex
onDefaults(MappedConfiguration 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-m

Re: Test if production or test mode..

2012-07-23 Thread Thiago H de Paula Figueiredo
On Sat, 21 Jul 2012 12:47:10 -0300, sommeralex wrote: @Value("${tapestry.production-mode}") @Property private boolean productionMode; You don't need @Property for injecting stuff. In addition, using @Symbol, you don't need to use expansions: @Inject @Symbol(Symbo

Re: Test if production or test mode..

2012-07-23 Thread Christian Riedel
> View this message in context: > http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714674.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To uns

Re: Test if production or test mode..

2012-07-22 Thread Lance Java
ect @Value("${tapestry.production-mode}") private boolean productionMode; I never use private field injection in my services (@Inject) as it makes it difficult to test but the option is there if you want it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-if-pro

Re: Test if production or test mode..

2012-07-21 Thread Howard Lewis Ship
c MyService(@Value("${tapestry.production-mode}") boolean > productionMode, ...) > { > if (productionMode) { > > can someone explain me why app properties can not more easiliy requested? > > > > -- > View this message in context: > http://tapestry.1045711.

Test if production or test mode..

2012-07-21 Thread sommeralex
mode}") boolean productionMode, ...) { if (productionMode) { can someone explain me why app properties can not more easiliy requested? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658.html Sent from the Tapestry - User mai