Results 1 to 5 of 5

Thread: new spring mvc project, client side validation needed

  1. #1
    Join Date
    May 2011
    Posts
    2

    Default new spring mvc project, client side validation needed

    hi guys,

    I'm starting a new spring MVC 3 project in these days, looking for an easy and good solution for client side validation. I need to validate form input fields on the fly (when user is typing), and on submit. I need autocomplete feature as well.

    I can find several solutions on the web like DWR, DOJO, GWT, etc. supported by spring.

    Is there a best practice, or offering what should I use?

    thx,
    fifty

  2. #2

    Default

    Hey ,
    I am also looking for some client-side validation library that I can use with Spring 3.

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    I can find several solutions on the web like DWR, DOJO, GWT, etc. supported by spring.
    how you could do a validation with DWR?

    I need to validate form input fields on the fly (when user is typing), and on submit. I need autocomplete feature as well.
    I suggest you use jquery since it has an excellent API and is easy and powerful for the client side, you could therefore use events like keyup and blur, you must consider regex too.

    It is not closely related with Spring
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  4. #4
    Join Date
    Oct 2005
    Location
    Mobile, AL
    Posts
    345

    Default

    I have used the following JQuery Plugin on several projects and it has always served me well.

    bassistance validation plugin

  5. #5
    Join Date
    May 2011
    Location
    Hamburg Germany
    Posts
    33

    Default

    a bit off-topic but autocomplete was also mentioned - anyone knows a number one solution for jquery autocomplete ?
    This one here is pretty neat as it has regex syntax highlighting and json key/value support and thus can be used to replace large drop-down's.
    However keyboard input could be improved and on IE it shows sometimes a strange offset behaviour. (as can be seen in this demo [need to follow the navigation to find the autocomplete] ).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •