You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jim Downing <oj...@cam.ac.uk> on 2007/01/10 13:14:20 UTC

T4.1.1 Client-side validation problems

Can anyone help me to get client-side validation working?

I've enabled client side validation on my form component, and used a 
ScriptIncludes component to load the dojo components, but now whenever I 
submit the form (whether or not there are any invalid inputs) the 
following message is appended in a div at the end of the document: -

ERROR: 12:03:28: Error validating TypeError : value has no properties : 
http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js 
: line 24

Any ideas what gives?

thanks,
jim

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


Re: [Filtered!] Re: T4.1.1 Client-side validation problems

Posted by Jim Downing <oj...@cam.ac.uk>.
Hi Brian,

thanks for the advice - I'll see what happens when I turn off the input 
disabling.

cheers,

jim


Brian Duchek wrote:
> Back in Tap3, if you disabled form fields on the client it would
> totally screw up server side validation (and some client validation
> schemes).  It was a technique frought with peril. I recommend going
> thru a generated page with a fine tooth-comb to make sure that your
> client-side disabling wasn't messing up element references in the
> rendered client validation code. My guess is that it probably is.
>
> Also - disabling a field usually means it's not going to get sent to
> the server, so make sure your form listener accounts for that.
>
> The error message you're seeing is Dojo's debugging message. It's
> appended to the document when there's not another debugging console
> attached (google Firebug...).  I'm guessing you're not useing Tap3,
> and that Dojo has shouldered the load of performing field validation.
> If it's getting a field to validate, and it's missing properties -
> then the field is probably disabled.
>
> Hope this helps.




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


Re: [Filtered!] Re: T4.1.1 Client-side validation problems

Posted by Brian Duchek <ma...@gmail.com>.
Back in Tap3, if you disabled form fields on the client it would
totally screw up server side validation (and some client validation
schemes).  It was a technique frought with peril. I recommend going
thru a generated page with a fine tooth-comb to make sure that your
client-side disabling wasn't messing up element references in the
rendered client validation code. My guess is that it probably is.

Also - disabling a field usually means it's not going to get sent to
the server, so make sure your form listener accounts for that.

The error message you're seeing is Dojo's debugging message. It's
appended to the document when there's not another debugging console
attached (google Firebug...).  I'm guessing you're not useing Tap3,
and that Dojo has shouldered the load of performing field validation.
If it's getting a field to validate, and it's missing properties -
then the field is probably disabled.

Hope this helps.
</bd>

On 1/12/07, Jim Downing <oj...@cam.ac.uk> wrote:
> Warning: This message has had one or more attachments removed
> Warning: (verify.js).
> Warning: Please read the "FilterNotice.txt" attachment(s) for more information.
>
> Stefan Esterer wrote:
> > Can you post your script, page and html file so we can study it?
> >
>
> At the moment I'm just trying to use the built in validators (I'm using
> Required, Pattern, Min, Max and MaxDate).
>
> verify.js is a custom script that just does some input disabling based
> on a radio choice - I'm hoping it's not relevant.
>
> The validation works server side, when the form clientValidationEnabled
> is set to false, but I get the error message below when it's set to true.
>
> Thanks,
>
> jim
>
> >> Can anyone help me to get client-side validation working?
> >>
> >> I've enabled client side validation on my form component, and used a
> >> ScriptIncludes component to load the dojo components, but now whenever I
> >> submit the form (whether or not there are any invalid inputs) the
> >> following message is appended in a div at the end of the document: -
> >>
> >> ERROR: 12:03:28: Error validating TypeError : value has no properties :
> >> http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js
> >> : line 24
> >>
> >> Any ideas what gives?
> >>
> >> thanks,
> >> jim
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >>
> >
> >
>
>
>
> This is an automated message from the University of Cambridge's
> central email virus filter.
>
> The original email attachment "verify.js"
> had an unacceptable file name or type, so it has been deleted and
> replaced by this notice. For more information about the virus filter
> and advice on what to do about this message, see
> <http://www.cam.ac.uk/cs/email/scanner/filetype.html>
>
> On Fri Jan 12 12:53:07 2007 the virus scanner said:
>    JScript Scripts are dangerous in email (verify.js)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>

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


[Filtered!] Re: T4.1.1 Client-side validation problems

Posted by Jim Downing <oj...@cam.ac.uk>.
Warning: This message has had one or more attachments removed
Warning: (verify.js).
Warning: Please read the "FilterNotice.txt" attachment(s) for more information.

Stefan Esterer wrote:
> Can you post your script, page and html file so we can study it?
>   

At the moment I'm just trying to use the built in validators (I'm using 
Required, Pattern, Min, Max and MaxDate).

verify.js is a custom script that just does some input disabling based 
on a radio choice - I'm hoping it's not relevant.

The validation works server side, when the form clientValidationEnabled 
is set to false, but I get the error message below when it's set to true.

Thanks,

jim

>> Can anyone help me to get client-side validation working?
>>
>> I've enabled client side validation on my form component, and used a 
>> ScriptIncludes component to load the dojo components, but now whenever I 
>> submit the form (whether or not there are any invalid inputs) the 
>> following message is appended in a div at the end of the document: -
>>
>> ERROR: 12:03:28: Error validating TypeError : value has no properties : 
>> http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js 
>> : line 24
>>
>> Any ideas what gives?
>>
>> thanks,
>> jim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>     
>
>   


Re: T4.1.1 Client-side validation problems

Posted by Stefan Esterer <de...@gmail.com>.
Can you post your script, page and html file so we can study it?


Jim Downing-2 wrote:
> 
> Can anyone help me to get client-side validation working?
> 
> I've enabled client side validation on my form component, and used a 
> ScriptIncludes component to load the dojo components, but now whenever I 
> submit the form (whether or not there are any invalid inputs) the 
> following message is appended in a div at the end of the document: -
> 
> ERROR: 12:03:28: Error validating TypeError : value has no properties : 
> http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js 
> : line 24
> 
> Any ideas what gives?
> 
> thanks,
> jim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T4.1.1-Client-side-validation-problems-tf2952160.html#a8296253
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T4.1.1 Client-side validation problems

Posted by Jesse Kuhnert <jk...@gmail.com>.
A test case or more detail would be helpful for me, but only if you
wanted me to be able to fix it or know what the problem is.

On 1/10/07, Jim Downing <oj...@cam.ac.uk> wrote:
> Can anyone help me to get client-side validation working?
>
> I've enabled client side validation on my form component, and used a
> ScriptIncludes component to load the dojo components, but now whenever I
> submit the form (whether or not there are any invalid inputs) the
> following message is appended in a div at the end of the document: -
>
> ERROR: 12:03:28: Error validating TypeError : value has no properties :
> http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js
> : line 24
>
> Any ideas what gives?
>
> thanks,
> jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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