Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Geert Bevin
On 8-nov-05, at 06:57, Emmanuel Okyere wrote: Yes, Geert, that cleared it up and allowed me to move some of the code bits from the implementation class into the bean itself and everything is gelling now. Cool! :-) -- Geert Bevin Uwyn bvba "Use what you need"

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Yes, Geert, that cleared it up and allowed me to move some of the code bits from the implementation class into the bean itself and everything is gelling now. thanks, Emmanuel On 11/7/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > Hi Emmanuel, > > I think I have a feeling that I know where the misun

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Geert Bevin
Hi Emmanuel, I think I have a feeling that I know where the misunderstanding lies. What I have noted is, as this is the same set of Constraints I was placing on it initially, the problem seems to be with the dynamically generated resources attached to the template.. so that while the following

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Yes, Geert, I notice that; that isn't a problem anymore... can you pls take a look at my latest email? thanks, Emmanuel On 11/7/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > CmfValidation expects CmfProperty > Validation expects ContrainedProperty > > On 7-nov-05, at 22:04, Emmanuel Okyere wrote:

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Geert Bevin
CmfValidation expects CmfProperty Validation expects ContrainedProperty On 7-nov-05, at 22:04, Emmanuel Okyere wrote: Geert, does ths example compile? I know addConstraint expects a CmfProperty? I am using the 1.3-snapshot. Thanks, Emmanuel On 11/7/05, Geert Bevin <[EMAIL PROTECTED]> wrote:

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
OK Geert, I changed the ConstrainedPropertys to CmfProperty and it is working as expected when the form is submited. What I have noted is, as this is the same set of Constraints I was placing on it initially, the problem seems to be with the dynamically generated resources attached to the templat

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Geert, does ths example compile? I know addConstraint expects a CmfProperty? I am using the 1.3-snapshot. Thanks, Emmanuel On 11/7/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > Hi Emmanuel, > > I don't see why it doesn't work, when I use it, it does. I included > snippets of an example I just wro

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Geert Bevin
Hi Emmanuel, I don't see why it doesn't work, when I use it, it does. I included snippets of an example I just wrote to try it out. Does this help you? What is your Name? id="name" What is your

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Ok Geert, For instance I have a radio button set in the template like: [code] What is your sex? id="sex" style="vertical-align: middle;"

Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Geert Bevin
Hi Emmanuel, can you give some code excerpts of the things that you're doing? That makes it easier to talk about. Best regards, Geert On 7-nov-05, at 17:43, Emmanuel Okyere wrote: Geert, Could you give an example of how best to use 'generateForm' and Collection fields? I have a form tha

[Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Geert, Could you give an example of how best to use 'generateForm' and Collection fields? I have a form that has a radio button set, and a couple of select lists that are being generated with no problem when the page/form is loaded, however after a submission, when I call [code] generateForm(tem