That's it - thanks
On 08/02/2008, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > It's early, that should be TranslatorSource and TranslatorDefaultSource. > > On Feb 8, 2008 6:18 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > The ValidatorDefaultSource service has gone away. You must make sure > > you are contributing to the ValidatorSource service (it has "absorbed" > > the ValidatorDefaultSource service). > > > > > > On Feb 8, 2008 6:12 AM, Patrick Moriarty <[EMAIL PROTECTED]> > wrote: > > > We implemented getType(). For example, > > > > > > public Class<BigDecimal> getType() { > > > return BigDecimal.class; > > > } > > > > > > But we observe the same behaviour. Looks like the lookup by type > isn't > > > working correctly. > > > > > > > > > On 08/02/2008, Kevin Menard <[EMAIL PROTECTED]> wrote: > > > > > > > > It looks like the Translator interface has been changed. There is > now a > > > > method with the following signature that you must implement: > > > > > > > > public Class<T> getType(); > > > > > > > > I haven't dug into why that is, but my guess is that has something > to do > > > > with generics and type erasure. > > > > > > > > -- > > > > Kevin > > > > > > > > > > > > On 2/8/08 7:39 AM, in article > > > > [EMAIL PROTECTED], "Denis > > > > McCarthy" <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > In my AppModule.java, I had contributed code for an Enum class > like > > > > this: > > > > > > > > > > public static void contributeTranslatorDefaultSource( > > > > > MappedConfiguration<Class<?>, Translator<?>> > configuration) > > > > > { ... > > > > > configuration.add(ReleaseType.class, new Translator<ReleaseType>() > { > > > > > > > > > > public ReleaseType parseClient(String clientValue, > Messages > > > > > messages) > > > > > throws ValidationException { > > > > > ... > > > > > > > > > > }); > > > > > > > > > > Where ReleaseType is a java 1.5 enum I'm using. However, just > after > > > > updating > > > > > to the latest snapshot, I'm getting an application > > > > > exception saying > > > > > > > > > > Parameter(s) translate are required for > > > > > org.apache.tapestry.corelib.components.TextField, but have not > been > > > > bound. > > > > > > > > > > When I navigate to the page in my app where I have a TextField > that is > > > > > populated with values from this enum. Obviously > > > > > the default behaviour has changed, but I can't seem to figure out > what > > > > > exactly I have to do to get this working again. > > > > > Any suggestions would be welcome > > > > > Thanks > > > > > Denis > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > -- > > Howard M. Lewis Ship > > > > Creator Apache Tapestry and Apache HiveMind > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >