cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuno Miguel Borges Leong <>
Subject Re: [Fwd: form validation]
Date Thu, 11 Sep 2003 14:28:23 GMT
Hey Peter,

We had a similar problem with form-validation. Our form had two textboxes, and 
we wanted to submit only if at least one textbox was filled. There is no native 
form validator action to perform this validation so we decided to implement it 

Basically, you'll need to browse through the form-validator logicsheet and the 
action classes associated:

(these path's are based of the cocoon source)
src/java/org/apache/cocoon/acting/ (not sure if changes 
are necessary on this one)



We just upgraded to cocoon2.1, and i'm going to re-implement the changes.
If you want more details contact me, and i'll send you the sources.

Nuno Leong
Práxia SI

Quoting Peter Choe <>:

> i want to validate a form using form validation.  i can the validation 
> to work if it checks to see if each field enter matches the criteria, 
> but i would like a validation that checks a conditional.
> for example:
> if a person doesn't check one check box, i want to check if a text box 
> has a certain number of characters
> else if the check box is selected, the number of characters in the text 
> box doesn't matter.
> is there a way to do this through cocoon form validation?
> i am using cocoon 2.0 for now.
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message