mvc-spec | Moved to https
kandi X-RAY | mvc-spec Summary
kandi X-RAY | mvc-spec Summary
Moved to https://github.com/eclipse-ee4j/mvc-api
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mvc-spec
mvc-spec Key Features
mvc-spec Examples and Code Snippets
Community Discussions
Trending Discussions on mvc-spec
QUESTION
In a view, I've created one form for my view model. I've separated the form over multiple sections using the Twitter Bootstrap Wizard plugin. The user can access the next section by clicking a "Next" button. Each section has a Fluent Validation RuleSet defined for the model properties on that section. The rules I've defined in each RuleSet are compatible with Fluent Validaiton's client-side validation.
QuestionUpon clicking the next button, what's the best way:
- To get the validation state for only the current section's RuleSet on the client-side with Fluent Validation?
- To get Fluent Validation to display client-side validation for only the current section's RuleSet?
I've read the Fluent Validation start guide and this question. While they demonstrate how to achieve what I'm looking for on the server-side, they don't seem to address my client-side questions. I bold "seem" because I'm reasonably new to Fluent Validation and MVC, so, I may have misunderstood the links' content.
...ANSWER
Answered 2018-Sep-26 at 23:28You can use commands from the jQuery validation library, which Fluent Validation uses.
In an element in your form, define an attribute that will help you recognise a validation group. For example
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mvc-spec
You can use mvc-spec like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the mvc-spec component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page