• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Spring Web Flow 2 Web Development

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sven Lüppken and Markus Stäuble,

Congrats both on the release of your new book.

I have a couple of questions.
(i) Does your book cover the Validation part? Validations are crucial in any application particularly when you are trying to upload some data through your front end screens(jsps,html).
(ii) Any future plans to cover spring web services in any of your next releases?

Regards,
Kiran.
 
Author
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree, that validation is an important point of a web application. In chapter 3 we have a section about valdation. The topic web services is outside of scope of that book. But if moore readers are interested in we can think about it.

A first description of validation is provided here: http://static.springframework.org/spring-webflow/docs/2.0.x/reference/htmlsingle/spring-webflow-reference.html#view-validate

Markus
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
About model validate method, I don't like it.
It defeats separation of concern to have validation code in model class. Do you know the reason why Spring Web Flow supports this method natively?

And it seems that Spring Web Flow 2 embraces convention-over-configuration. I'm no fan of CoC, I think it makes code less understandable. Does Spring Web Flow 2 allow to disable CoC and use configuration mode instead?
 
K Kiran Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Markus Staeuble for the valuable info.
Regards,
Kiran.
 
Markus Staeuble
Author
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

@Kengkaj What do you mean with disable of CoC? What do you want to do in the code?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Then define a public method with the name validate${state}, where ${state} is the id of your view-state


I don't like to use convention, I want to config which method would be used for validation.
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring uses CoC by default but you can override it
 
Those are the largest trousers in the world! Especially when next to this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic