Re: T5 Localized Select

2008-02-10 Thread Harald Geritzer
Olivier Jacquet schrieb: Yes, I figured out that much by now (I'm not that experienced with Java). Yet, I think it is a feasable use case that you would want access to a message catalog in an OptionModel, no? well, guess you could write your own SelectModel, create it in your page and pass th

Re: T5 Localized Select

2008-02-10 Thread Olivier Jacquet
Yes, I figured out that much by now (I'm not that experienced with Java). Yet, I think it is a feasable use case that you would want access to a message catalog in an OptionModel, no? Harald Geritzer wrote: Now, when you @Inject the messages in the OptionModel it is null when you try to acc

Re: T5 Localized Select

2008-02-10 Thread Harald Geritzer
Now, when you @Inject the messages in the OptionModel it is null when you try to access it in getLabel() and I was wondering if that is intended? Now I have to pass the catalog from my wrapper component (SelectCountry) with its own catalog to my SelectModel which passes it down to the OptionModel.

Re: T5 Localized Select

2008-02-10 Thread Davor Hrg
You have to be aware: @Inject is intended for pages, components... and if your option model is a service then you have to inject services by declaring it in the constructor. Davor Hrg On 2/10/08, Olivier Jacquet <[EMAIL PROTECTED]> wrote: > Hello, > > > I'm trying to build a select component whi