You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Franz Amador <fg...@gmail.com> on 2008/04/18 23:11:19 UTC
T5.0.11: Registering type with DefaultDataTypeAnalyzer no longer works?
I'm getting an error after switching to 5.0.11. I'm using
BeanEditForm for a bean that has a field of type java.io.File, which I
want to render as a text box (that holds the file path). I do this in
AppModule:
public static void
contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class<?>,
String> configuration) {
configuration.add(File.class, "text");
}
This worked fine in 5.0.10, but now in 5.0.11 I get this exception:
Caused by: java.lang.IllegalArgumentException: No translator is
defined for type java.io.File. Registered types: java.lang.Byte,
java.lang.Double, java.lang.Float, java.lang.Integer, java.lang.Long,
java.lang.String.
at org.apache.tapestry.internal.services.TranslatorSourceImpl.getByType(TranslatorSourceImpl.java:72)
at $TranslatorSource_11963312d49.getByType($TranslatorSource_11963312d49.java)
at org.apache.tapestry.corelib.components.PropertyEditor$1.getTranslator(PropertyEditor.java:157)
at $PropertyConduit_11963312d94.get($PropertyConduit_11963312d94.java)
at org.apache.tapestry.internal.bindings.PropBinding.get(PropBinding.java:53)
... 102 more
Has the process for registering custom types changed?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org