Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
5.0.6
-
None
Description
The documentation in how to add a new property editor in Tapestry 5 Core -> BeanEditForm documentation has a code sample which reads
public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)
{
configuration.put(BigDecimal.class, "currency");
}
but should be
public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)
{
configuration.add(BigDecimal.class, "currency");
}
"put" replaced with "add".