ok I have to see what's wrong with "cocoon://", when I use "xml\mydesc.xml" it's ok (forgot to type the ".xml" lol :-/ ).
----- Original Message ----- From: "Barbara Post" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 4:36 PM Subject: Re: form never validates !... > My generated descriptor is empty, I wonder why... > > Pipeline for "getdescriptor" works ok alone (database query)... but not when > I use : > cocoon://getdescriptor/hard_coded_template_name > > Even when I write : > <map:parameter name="descriptor" value="xml/mydesc.xml"/> > assuming that it is in my webapp's root \ xml folder... > > :-o > ----- Original Message ----- > From: "Barbara Post" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, August 02, 2002 4:03 PM > Subject: form never validates !... > > > > 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. > > > > 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> > > > > Piece of pipeline : > > > > <map:match pattern="form2fill"> > > <!-- be sure one gets the request parameters --> > > <map:act type="request"> > > <map:parameter name="parameters" value="true"/> > > <!-- authenticate as usual --> > > <map:act type="sunRise-auth"> > > <map:parameter name="handler" value="baepp-handler"/> > > <!-- form validation --> > > <map:act type="form-validator"> > > <map:parameter name="descriptor" > > value="cocoon://getdescriptor/{../../template}"/> > > <map:parameter name="validate-set" value="default"/> > > <!-- ok so generate license and show it --> > > <!-- test --> > > <map:redirect-to uri="http://www.google.fr"/> > > </map:act> > > <!-- failed so show input form --> > > <map:aggregate .....> </map:aggregate> > > <map:transform type="sunShine"/> > > <map:transform src="xsl/genlicform2fill.xsl"> > > <map:parameter name="use-request-parameters" value="true"/> > > </map:transform> > > <map:transform src="xsl/select.xsl"/> > > <!-- keeps request params --> > > <map:transform type="simple-form"/> > > <map:serialize type="html"/> > > </map:act> > > </map:act> > > </map:match> > > > > Thanks for any clue... > > > > Barbara > > > > > > --------------------------------------------------------------------- > > 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]> > > > > > --------------------------------------------------------------------- > 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]> > --------------------------------------------------------------------- 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]>