trsvax wrote > > I did something similar to this by creating a BeanModel > > @Property > private Map<String, Object> args; > > BeanModel model = beanModelSource.createEditModel(args.getClass(), > resources.getMessages()); > > and then add the datatypes I wanted like this > > model.add(name, mapConduit(name,clazz)).dataType(datatype); > > mapConduit looks like this > > PropertyConduit mapConduit(final String key, final Class<?> datatype) { > return new PropertyConduit() { > > @Override > public <T extends Annotation> T getAnnotation(Class<T> > clazz) { > return null; > } > > @Override > public void set(Object instance, Object value) { > ((Map)instance).put(key, value); > > } > > @Override > public Class getPropertyType() { > return datatype; > } > > @Override > public Object get(Object instance) { > return ((Map) instance).get(key); > } > }; > } > > Then the tml just has > > <t:beaneditform object="args" model="model"/> >
It could be very useful to me. Thank you all. -- View this message in context: http://tapestry.1045711.n5.nabble.com/writer-writeRaw-String-text-tp5601234p5601842.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org