Re: T5: Teaching the BeanModel to always add my class

2008-04-16 Thread Tobias Wehrum
Hi Filip, it's good to hear that it is just a leftover, so I can ignore it and stop wondering. Thanks again for your help! Tobias Filip S. Adamsen schrieb: Hi, On 2008-04-15 19:13, Tobias Wehrum wrote: Thank you, Filip! Looking through the page you suggested, I found the missing piece of

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Filip S. Adamsen
Hi, On 2008-04-15 19:13, Tobias Wehrum wrote: Thank you, Filip! Looking through the page you suggested, I found the missing piece of code: -- public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration configuration) {

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
Thank you, Filip! Looking through the page you suggested, I found the missing piece of code: -- public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration configuration) { configuration.add(Status.class, "status");

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
Hi there, yes, maybe I caused confusion. To further point out what I'm trying to do: I just want to output whatever value Status.toString() will return to me, for example in a grid. When I add the property to the BeanModel, tapestry has no problems calling toString() automatically; but at the

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Filip S. Adamsen
Oh, sorry, didn't catch that all you want to edit is a String property from another class. I don't know what else there is to do, then. -Filip On 2008-04-15 18:41, Filip S. Adamsen wrote: Hi, You might need to add a new property editor, see Adding New Property Editors at http://tapestry.apa

Re: T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Filip S. Adamsen
Hi, You might need to add a new property editor, see Adding New Property Editors at http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html. -Filip On 2008-04-15 18:37, Tobias Wehrum wrote: Hi there, I have a class named "Status" which implements toString(). But still w

T5: Teaching the BeanModel to always add my class

2008-04-15 Thread Tobias Wehrum
Hi there, I have a class named "Status" which implements toString(). But still when I have class A, which has a property of type Status, I always have to add the Status property to the BeanModel with model.add("myStatus"). Obviously implementing toString() isn't enough to teach my the BeanMod