You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ben Anderson <be...@gmail.com> on 2004/12/17 18:49:42 UTC

javascript validation

Does cocoon have the ability to generate javascript validation for me?
 I thought it did, but I can't the documentation anywhere and don't
see anything in the samples.
Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: javascript validation

Posted by Luca Garulli <l....@gmail.com>.
Yes,
I'm writing more features to client-side validation even with very
short generated code.

When tested I'll post here and on bugzilla ;-)

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 Mon, 20 Dec 2004 12:58:43 -0500, Ben Anderson
<be...@gmail.com> wrote:
> It took me while to get that script working.  I put my modifications
> in bugzilla.  So this funciontionality isn't currently in the cocoon
> base, correct?  Also, I believe only type validation is currently
> implemented?  e.g. no client-side validation would get created for
> something like (besides to validate that it is a number):
>     <fd:field id="age">
>       <fd:label>Your age:</fd:label>
>       <fd:datatype base="long"/>
>       <fd:validation>
>         <fd:range min="0" max="150"/>
>       </fd:validation>
>     </fd:field>
> 
> -Ben
> 
> 
> On Sat, 18 Dec 2004 12:56:54 +0100, oceatoon <t....@systheo.com> wrote:
> > Ben Anderson wrote:
> >
> > > Does cocoon have the ability to generate javascript validation for me?
> > >  I thought it did, but I can't the documentation anywhere and don't
> > > see anything in the samples.
> > > Thanks,
> > > Ben
> > If you mean client side validation,
> > check this out
> >
> > New patch: http://issues.apache.org/bugzilla/show_bug.cgi?id=32517
> > Previous (dependent) patch:
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=32419
> >
> > depending on your use case, there several ways to integrate it. But in the
> > submitted version it will create js client side validation for every widget
> > you have in your form template.If you need only validation on specific
> > widgets it's not much to change, just ask for it.
> > Regards
> > Tibor

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: javascript validation

Posted by Ben Anderson <be...@gmail.com>.
It took me while to get that script working.  I put my modifications
in bugzilla.  So this funciontionality isn't currently in the cocoon
base, correct?  Also, I believe only type validation is currently
implemented?  e.g. no client-side validation would get created for
something like (besides to validate that it is a number):
    <fd:field id="age">
      <fd:label>Your age:</fd:label>
      <fd:datatype base="long"/>
      <fd:validation>
        <fd:range min="0" max="150"/>
      </fd:validation>
    </fd:field>

-Ben


On Sat, 18 Dec 2004 12:56:54 +0100, oceatoon <t....@systheo.com> wrote:
> Ben Anderson wrote:
> 
> > Does cocoon have the ability to generate javascript validation for me?
> >  I thought it did, but I can't the documentation anywhere and don't
> > see anything in the samples.
> > Thanks,
> > Ben
> If you mean client side validation,
> check this out
> 
> New patch: http://issues.apache.org/bugzilla/show_bug.cgi?id=32517
> Previous (dependent) patch:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32419
> 
> depending on your use case, there several ways to integrate it. But in the
> submitted version it will create js client side validation for every widget
> you have in your form template.If you need only validation on specific
> widgets it's not much to change, just ask for it.
> Regards
> Tibor
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: javascript validation

Posted by oceatoon <t....@systheo.com>.
Ben Anderson wrote:

> Does cocoon have the ability to generate javascript validation for me?
>  I thought it did, but I can't the documentation anywhere and don't
> see anything in the samples.
> Thanks,
> Ben
If you mean client side validation, 
check this out 

New patch: http://issues.apache.org/bugzilla/show_bug.cgi?id=32517
Previous (dependent) patch:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32419

depending on your use case, there several ways to integrate it. But in the
submitted version it will create js client side validation for every widget
you have in your form template.If you need only validation on specific
widgets it's not much to change, just ask for it.
Regards
Tibor



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org