Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Struts Javascript Validator Accessibility Issues??

Reply
Thread Tools

Struts Javascript Validator Accessibility Issues??

 
 
Dom
Guest
Posts: n/a
 
      08-31-2004
Hi,

does the struts validator use client-side or server-side javascript?

If it uses client-side validation then will there be accessibility
issues as outlined by W3C ( http://www.w3.org/TR/WAI-WEBCONTENT/ ).

Many thanks for any replies!

Dom
 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      08-31-2004
Dom wrote:
> Hi,
>
> does the struts validator use client-side or server-side javascript?
>
> If it uses client-side validation then will there be accessibility
> issues as outlined by W3C ( http://www.w3.org/TR/WAI-WEBCONTENT/ ).


It uses server-side validation with the option for creating JavaScript
for the client-side. Since you don't control the client, you still need
to perform validation on the server.
Accessibility is an entirely different consideration.

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      08-31-2004
On Tue, 31 Aug 2004 08:31:27 -0400, Sudsy wrote:
> Dom wrote:

...
>> If it uses client-side validation then will there be accessibility
>> issues as outlined by W3C ( http://www.w3.org/TR/WAI-WEBCONTENT/ ).

>
> It uses server-side validation with the option for creating JavaScript
> for the client-side. Since you don't control the client, you still need
> to perform validation on the server.
> Accessibility is an entirely different consideration.


I understand the OP's question though.

Too many JS based apps. *require* JS
or you do not see the GUI, whereas
Struts JS validation simply adds a
layer of DHTML (validation), over a
completely functional HTML (the form).

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
Reply With Quote
 
Dom
Guest
Posts: n/a
 
      09-01-2004
Andrew Thompson <(E-Mail Removed)> wrote in message news:<3hlaw1ttzlq4$.7jrzsc6ao0n1$(E-Mail Removed)>. ..
> On Tue, 31 Aug 2004 08:31:27 -0400, Sudsy wrote:
> > Dom wrote:

> ..
> >> If it uses client-side validation then will there be accessibility
> >> issues as outlined by W3C ( http://www.w3.org/TR/WAI-WEBCONTENT/ ).

> >
> > It uses server-side validation with the option for creating JavaScript
> > for the client-side. Since you don't control the client, you still need
> > to perform validation on the server.
> > Accessibility is an entirely different consideration.

>
> I understand the OP's question though.
>
> Too many JS based apps. *require* JS
> or you do not see the GUI, whereas
> Struts JS validation simply adds a
> layer of DHTML (validation), over a
> completely functional HTML (the form).



Great! The fact that its server-side saves me a lot of hassle.

Currently all my forms extend ValidatorForm. Implementing the validate
method on my form would have been a pain (but not difficult) to do
through out all my forms......espcially when I thought I've finished!

My thinking was that Struts somehow forced its JS (in
validator-rules.xml) down to the browser and got the browser to
execute the JS.....which would have caused accessibility
issues.......which is all WRONG.

Many thanks for you replies guys!
Dom
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      09-01-2004
On 1 Sep 2004 06:37:04 -0700, Dom wrote:

> My thinking was that Struts somehow forced its JS (in
> validator-rules.xml) down to the browser and got the browser to
> execute the JS.....


No. The way it works is more like this,
when the UA (read browser) sees.. a tring like
<script type='text/javascript' src='common.js'></script>

It requests and downloads the file if and when
it damn well feels like it.

If it does not understand JS it will
ignore it and save the bytes.

> ..which would have caused accessibility
> issues.......which is all WRONG.


No. The point is that the JS (that arrives
or not, and is exectued or not) simply enhances
the existing form and provides faster form
validation feedback than is possible with the
round trip to the server.

If it is a well designed web-app., even with
JS, there is no question of accessibility issues.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
Javascript disabled Menu control Accessibility Mike Logan ASP .Net Web Controls 4 09-04-2006 02:34 AM
Javascript Accessibility Techniques Jim Ley Javascript 2 06-13-2004 04:41 PM
struts javascript validator message problem Alex M Java 3 02-24-2004 12:53 PM
[Struts]output javascript in struts perform() sin Java 3 02-22-2004 08:27 AM



Advertisments