• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Qus on validator framework

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Validator framework for the first time. I have some usual validations like required etc for which I have used client as well as server side validations. I have used server side validations just to ensure that when Javascript is disabled, the input should still get validated. However, isnt this an overhead? I mean when javascript is enabled, it will not let bad input reach the server but server-side validation will happen nevertheless. Can I in some way activate server-side validations only in case of javascript being disabled?

Also, there are some client side validations for which I need additional custom functions. Can I include my javascript file in some way so that it can be available to the javascript functions in the validator-rules.xml file?

Thanks
 
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic