On Thu, 24 Feb 2011 13:33:44 -0300, Stephan Windmüller
<[email protected]> wrote:
List<String> valueTypes = dao.getValueTypes();
BeanModel<TreatmentModel> model =
beanModelSource.createEditModel(MyObject.class, messages);
for (String type : valueTypes) {
PropertyConduit propertyConduit = new PropertyConduit() { ... };
model.add(type, propertyConduit);
}
This looks correct.
The resulting model contains properties with a null datatype.
That surely looks like something you shouldn't do. How can the component
know how edit an value which hasn't a data type? In this case, you either
define a custom datatype and provide edition and viewing blocks for them
or you don't add this property to the bean model.
If you need more information like how I build the PropertyConduit,
please let me know.
Please post it.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]