Re: Contributing to BeanBlockSource and HibernateEntityValueEncoder

2008-08-02 Thread Alejandro Scandroli
Hi I finally was able to make it work. I cant' believe how simple it was, and how long it took me to figure it out. The solutions is to provide a ValueEncoder to the BeanBlock (so simple!) Here is my code: then: public ValueEncoder getValueEncoderForProperty() {

Re: Contributing to BeanBlockSource and HibernateEntityValueEncoder

2008-06-09 Thread Massimo Lusetti
On Fri, Jun 6, 2008 at 10:58 PM, Alejandro Scandroli <[EMAIL PROTECTED]> wrote: > Hi Massimo > > I'm experiencing the same thing. I'm trying to create an editor for > properties annotated with "@ManyToOne" > The BeanBlockContribution renders ok, but when I submit the form I get > an exception: > >

Re: Contributing to BeanBlockSource and HibernateEntityValueEncoder

2008-06-06 Thread Alejandro Scandroli
Hi Massimo I'm experiencing the same thing. I'm trying to create an editor for properties annotated with "@ManyToOne" The BeanBlockContribution renders ok, but when I submit the form I get an exception: org.apache.tapestry5.runtime.ComponentEventException Failure writing parameter 'value' of comp

Contributing to BeanBlockSource and HibernateEntityValueEncoder

2008-06-04 Thread Massimo Lusetti
The HibernateEntityValueEncoder (very nice feature!) does not work properly when needs to look up a property from a PropertyEditContext from within a BeanBlock contributed to the main BeanBlockSource. I mean i got an entity Customers which has a property Provinces which is another entity. When it