Re: overriding dateeditor

2009-06-03 Thread DH
BeanBlockSourceImpl call BeanBlockOverrideSource first to find the display/edit block, so contribute to BeanBlockOverrideSource give you the chance to overwrite the default. DH - Original Message - From: "Moritz Gmelin" Sent: Thursday, June 04, 2009 4:01 AM Subject: Re:

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Wow, found a strange solution: calling the method contributeBeanBlockOverrideSource instead of contributeBeanBlockSource fixes it. My method is called after tapestrys'. I got this from tapx-datefield where the method has this name. Can anyone explain this? M. Am 03.06.2009 um 21:36 schrieb

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:36:22 -0300, Moritz Gmelin escreveu: Well yes, I'm using 5.1.0.5 too. Your example is working for the DataTypeAnalyzer whicht takes an ordered List. BeanBlockContribution unfortunately only takes an unorderedList. You're right, but I am too. :) As far as I know, yo

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Well yes, I'm using 5.1.0.5 too. Your example is working for the DataTypeAnalyzer whicht takes an ordered List. BeanBlockContribution unfortunately only takes an unorderedList. M. Am 03.06.2009 um 21:29 schrieb Thiago H. de Paula Figueiredo: Em Wed, 03 Jun 2009 16:16:19 -0300, Moritz Gmelin

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:16:19 -0300, Moritz Gmelin escreveu: Sorry, does not work. org.apache.tapestry5.ioc.internal.OperationException Service 'BeanBlockSource' is configured using org.apache.tapestry5.ioc.Configuration, not org.apache.tapestry5.ioc.OrderedConfiguration. What Tapestry

Re: overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Sorry, does not work. org.apache.tapestry5.ioc.internal.OperationException Service 'BeanBlockSource' is configured using org.apache.tapestry5.ioc.Configuration, not org.apache.tapestry5.ioc.OrderedConfiguration. What is funny is that the order of execution of those contributeBeanBlockSour

Re: overriding dateeditor

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 15:49:13 -0300, Moritz Gmelin escreveu: Hi, HI! public static void contributeBeanBlockSource(Configuration configuration) You should use an OrderedConfiguration as a parameter, not a Configuration. Example: Tapestry CRUD provides an editing block for entity classes

overriding dateeditor

2009-06-03 Thread Moritz Gmelin
Hi, I am still trying to find the proper way to override the default date editor component. I have tried to do the following in my AppModule class public static void contributeBeanBlockSource(Configuration configuration) { configuration.add(new BeanBlock