Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
I've already tried to inject the ComponentResources into my class without success :-( public static void contributeComponentClassTransformWorker(OrderedConfiguration configuration, PropertyAccess propertyAccess, ComponentResources componentResources) { configuration.add("InjectSelectio

Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
I've already tried to inject the ComponentResources into my class without success :-( public static void contributeComponentClassTransformWorker(OrderedConfiguration configuration, PropertyAccess propertyAccess, ComponentResources componentResources) { Caused by: java.lang.RuntimeException:

Re: T5 : localization in ComponentClassTransformWorker

2008-10-16 Thread Howard Lewis Ship
Classes are non-localized. However, you can write code that can access the current Locale or localed Messages object via the ComponentResources object injected into each class. On Thu, Oct 16, 2008 at 2:48 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > Hi everybody, > > Is there a way to use

T5 : localization in ComponentClassTransformWorker

2008-10-16 Thread Stephane Decleire
Hi everybody, Is there a way to use Tapestry localization services like Messages in a ComponentClassTransformWorker ? My goal is to localize the component described by Marcelo Lotif in the Tapestry Wiki (http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects). Thanks in advance