RE: t5: using Messages in a service

2009-08-01 Thread Angelo Chen
Hi, Passing Messages as a parameter to a service does not work, I always get [missing key:?], any idea? Angelo Robin K. wrote: > > This is because Messages is not a service. > It can be injected into pages thanks to InjectWorker / InjectionProvider / > CommonResourcesInjectionProvider which

Re: t5: using Messages in a service

2009-07-31 Thread Peter Stavrinides
s, Beirut, Bucharest, Istanbul Subject: RE: t5: using Messages in a service This is because Messages is not a service. It can be injected into pages thanks to InjectWorker / InjectionProvider / CommonResourcesInjectionProvider which will call the ComponentResources of the current component/page.

RE: t5: using Messages in a service

2009-07-31 Thread Komiwes Robin
This is because Messages is not a service. It can be injected into pages thanks to InjectWorker / InjectionProvider / CommonResourcesInjectionProvider which will call the ComponentResources of the current component/page. That's why, in fact, you can only inject Messages into a page or a component

Re: t5: using Messages in a service

2009-07-31 Thread P . Stavrinides
Hi Angelo, I don't think you can use Messages as a service dependency as Messages is based around a ResourceBundle, for which the lookup is usually provided by your page/component Class, kind of similar to ComponentResources in a way. Unless someone is aware of a workaround, you may be better o