Re: [CForms] Creating an intermediate object in binding

2005-08-02 Thread Ugo Cei
Il giorno 29/lug/05, alle 16:34, Sylvain Wallez ha scritto: The solution would be to allow each JXPath binding to have its own factory class. This can be easily implented by adding support for a factory attribute in JXPathBindingBuilderBase. I just committed (BRANCH_2_1_X only ATM) a fix

Re: [CForms] Creating an intermediate object in binding

2005-08-01 Thread Ugo Cei
Il giorno 31/lug/05, alle 14:01, Leszek Gawron ha scritto: I have defined a custom type and convertor for that. The convertor is actually managed by Spring and populated with a DAO and the convertor's factory returns the Spring-managed instance instead of creating a new one. The convertor

Re: [CForms] Creating an intermediate object in binding

2005-07-31 Thread Leszek Gawron
Ugo Cei wrote: Il giorno 29/lug/05, alle 16:34, Leszek Gawron ha scritto: There is one more thing that is awkward with binding: imagine you have a OR model with many-to-many relationship. Cforms will allow you to create a form with a selection list to define those relationships. But wait:

Re: [CForms] Creating an intermediate object in binding

2005-07-30 Thread Ugo Cei
Il giorno 30/lug/05, alle 05:25, Antonio Gallardo ha scritto: Do you tried the 2.1.8-dev branch? I remember to have a similar problem few months ago, but I am not sure if this is exactly what are you looking for. I am using 2.1.8-dev right now. Ugo -- Ugo Cei Tech Blog:

Re: [CForms] Creating an intermediate object in binding

2005-07-30 Thread Sergio Bossa
I posted a solution in my blog: it doesn't require to modify Cocoon code. If you are interested, this is the link: http://sbtourist.blogspot.com/2005/07/strategy-for-binding-complex.html I'd like to know your opinion. Regards, Sergio B. -- Sergio Bossa (http://sbtourist.blogspot.com/) -

[CForms] Creating an intermediate object in binding

2005-07-29 Thread Ugo Cei
Let's assume I have a Person class: public class Person { public String getFirstname(); public String getLastname(); public Address getAddress(); ... } and an Address class: public class Address { public String getStreet(); public String getTown(); ... } I am building a form

Re: [CForms] Creating an intermediate object in binding

2005-07-29 Thread Leszek Gawron
Ugo Cei wrote: Let's assume I have a Person class: public class Person { public String getFirstname(); public String getLastname(); public Address getAddress(); ... } and an Address class: public class Address { public String getStreet(); public String getTown(); ... } I am

Re: [CForms] Creating an intermediate object in binding

2005-07-29 Thread Sylvain Wallez
Ugo Cei wrote: Let's assume I have a Person class: public class Person { public String getFirstname(); public String getLastname(); public Address getAddress(); ... } and an Address class: public class Address { public String getStreet(); public String getTown(); ... } I am

Re: [CForms] Creating an intermediate object in binding

2005-07-29 Thread Ugo Cei
Il giorno 29/lug/05, alle 16:34, Leszek Gawron ha scritto: There is one more thing that is awkward with binding: imagine you have a OR model with many-to-many relationship. Cforms will allow you to create a form with a selection list to define those relationships. But wait: what you get are

Re: [CForms] Creating an intermediate object in binding

2005-07-29 Thread Antonio Gallardo
Hi Ugo: Do you tried the 2.1.8-dev branch? I remember to have a similar problem few months ago, but I am not sure if this is exactly what are you looking for. Best Regards, Antonio Gallardo. Ugo Cei wrote: Let's assume I have a Person class: public class Person { public String