On 02.Aug.2002 -- 04:03 PM, Barbara Post wrote: > Hello, my form does not validate.... The "submit" button of form sends to > "form2fill" and thanks to Christian's transformer I keep my request > parameters to regenerate fully the form (will add a template to my xsl to > add an error message). I can't go to the "success" part (google to test > :-p ). > In fact if all required fields are filled I get redirected to my form ! > > I only decide on "nullable" attribute of "parameter" in the descriptor.
Look at the log, for every parameter is says what constraint it tests and if it is fulfilled or not. It usually helps to find the error. > Here are elements : > > This is my descriptor for form validation : > > <?xml version="1.0" encoding="UTF-8" ?> > <root> > <parameter name="InternalInfo_Email" nullable="yes" type="string" /> > <!-- a big bunch of parameters --> > > <constraint-set name="default"> > <validate name="SalesInfo_CustomerID" /> > <validate name="SalesInfo_CustomerName" /> > </constraint-set> > </root> This validates two parameters named "SalesInfo_CustomerID" and "SalesInfo_CustomerName", which are not included above, unfortunately. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>