Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Howard Lewis Ship
> } > > > > -Original Message- > From: Davor Hrg [mailto:[EMAIL PROTECTED] > Sent: 10 September 2007 12:33 > To: Tapestry users > Subject: Re: Trying to read tapestry.supported-locales > > > you can not use Inject in the getter > firstly because it is

Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Davor Hrg
.bind(AvailableLocales.class, AvailableLocalesImpl.class); > > Finally, in the page class: > > @Inject > private AvailableLocales locales; > > public String getLocaleNames() { > return locales.getLocales(); > } > > > > -----Original Message- &g

RE: Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
7 12:33 To: Tapestry users Subject: Re: Trying to read tapestry.supported-locales you can not use Inject in the getter firstly because it is not a getter method if it has parameters, and secondly because you can use inject only for page variables, injecting inside methods only works inside you AppMo

RE: Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
stom service if I want to know the available locales... -Original Message- From: Davor Hrg [mailto:[EMAIL PROTECTED] Sent: 10 September 2007 12:33 To: Tapestry users Subject: Re: Trying to read tapestry.supported-locales you can not use Inject in the getter firstly because it is not a g

Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Davor Hrg
you can not use Inject in the getter firstly because it is not a getter method if it has parameters, and secondly because you can use inject only for page variables, injecting inside methods only works inside you AppModule class change your code: @Inject @Symbol("tapestry.supported-locales") priv

Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
I am trying to read the value of tapestry.supported-locales in the code and display it in an expansion. Tried like so: public String getLocaleNames(@InjectService ("tapestry.supported-locales") String localeNames) { return localeNames; } And like so: public String getLocaleNames(@Inject