Yes, Luca, you are right.
Eric Baumier helped me with that issue; we also found that there where a
couple of bugs around at that time, but the main problem was that I was
missing the root element.

a.

-=(-----Original Message-----
-=(From: Luca Fossato [mailto:[EMAIL PROTECTED]]
-=(Sent: Wednesday, June 19, 2002 1:53 AM
-=(To: Alberto Bolchini
-=(Cc: [EMAIL PROTECTED]
-=(Subject: Re: RE : [dbforms] Validator Framework
-=(
-=(
-=(Hi Alberto,
-=(
-=(I had  the same problem...
-=(
-=(I resolved it adding the "<form-validation>" element as the "root 
-=(element" of the validation.xml file.
-=(Note that the dbforms guide gives the following information 
-=((page 91):
-=(
-=(--- cut here --- --- cut here --- --- cut here ---
-=(
-=(14.5.    Building the Validation.xml file
-=(
-=(In a previous section, we defined that our (dbform) form would be 
-=(associated to an [entry] called 'bugs'.  The 'bugs' form contained a 
-=(single textField entry (referring to 'title').  Let's take a 
-=(look at the 
-=(resulting Validation.xml file:
-=(
-=(<formset>
-=(<form    name="bugs">    
-=(<field    property="title" depends="required,mask,maxlength">
-=(    <msg name="required" key="errors.required" resource="true"/>
-=(    <arg0 name="required" key="bugsForm.title.displayname" 
-=(resource="true"/>
-=(               
-=(    <msg name="mask"     key="bugsForm.error.title.mask" 
-=(resource="true"/>
-=(               
-=(    <msg name="maxlength"     key="errors.maxlength" 
-=(resource="true"/>
-=(    <arg0 name="maxlength"     key="bugsForm.title.displayname" 
-=(resource="true"/>
-=(    <arg1 name="maxlength"      key="${var:maxlength}" 
-=(resource="false"/>
-=(    <var>
-=(    <var-name>mask</var-name>
-=(    <var-value>^[A-Z][A-Za-z0-9\s]*$</var-value>
-=(    </var>     
-=(    <var>
-=(    <var-name>maxlength</var-name>
-=(    <var-value>10</var-value>
-=(    </var>     
-=(    </field>  
-=(    </form>
-=( </formset>  
-=(
-=(--- cut here ------ cut here ------ cut here ---
-=(
-=(I follow this example to set up the DbForms validation 
-=(features, and it 
-=(didn't work.
-=(Then I watched the validation.xml of the bugtracker example and I 
-=(noticed that it starts with:
-=(
-=(<form-validation>
-=(   <global>
-=(    ...
-=(    <formset>
-=(    ...
-=(
-=(So, I simply added the <form-validation> element to the 
-=(configuration 
-=(taken from the dbforms guide example.
-=(The validation framework now works.
-=(
-=(Luca
-=(
-=(
-=(
-=(
-=(
-=(
-=(Alberto Bolchini wrote:
-=(
-=(>Thanx Eric.
-=(> 
-=(>How about the missing javascript, why do you think I keep 
-=(on missing it?
-=(>I now have a call to validateAdministrator(this); in the 
-=(onSubmit form
-=(>event, though I cannot get the function definition based on the
-=(>validation.xml file, I only get the
-=(>//  End --> 
-=(></SCRIPT> 
-=(>from the results.append(getJavascriptEnd()); call.
-=(>
-=(>  
-=(>
-=(
-=(

----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to