You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by BURGHARD Éric <er...@systheo.com> on 2005/03/16 14:22:34 UTC

CForms: validation on binding (before submit)

Hi,

Is it possible to trigger the validate process just after a binding without
submitting ? Let me explain.

We have a huge model with many validation rules. It's used by authentified
users to edit/change their own data. Because it's huge we need to save the
submitted data even if they are not valid.

When a user relog in (i assume he leaves the previous edition in an
inconsistent state), he saw directly his form with the same error messages
he had just before he left the editing process.

I can save data with errors by the mean of form.setBookmark, but after
reloging i see my form/data without error msgs (i need to do a fake
submit).

I quickly try to change v2/Form.js but without success.

Could someone point me to the direction to do that ?

thanks.

regards


Re: CForms: validation on binding (before submit)

Posted by Luca Garulli <l....@gmail.com>.
I don't know if it can be useful, but you can use a client-side
validation for CForms:

http://issues.apache.org/bugzilla/show_bug.cgi?id=32419

bye,
Luca Garulli
www.Pro-Netics.com (member of Orixo.com - The XML business alliance)
OrienTechnologies.com - Light ODBMS, All in one JDO solution

On Wed, 16 Mar 2005 14:22:34 +0100, BURGHARD Éric
<er...@systheo.com> wrote:
> Hi,
> 
> Is it possible to trigger the validate process just after a binding without
> submitting ? Let me explain.
> 
> We have a huge model with many validation rules. It's used by authentified
> users to edit/change their own data. Because it's huge we need to save the
> submitted data even if they are not valid.
> 
> When a user relog in (i assume he leaves the previous edition in an
> inconsistent state), he saw directly his form with the same error messages
> he had just before he left the editing process.
> 
> I can save data with errors by the mean of form.setBookmark, but after
> reloging i see my form/data without error msgs (i need to do a fake
> submit).
> 
> I quickly try to change v2/Form.js but without success.
> 
> Could someone point me to the direction to do that ?
> 
> thanks.
> 
> regards