jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

RequiredIf within Ajax.BeginForm #52

Closed gerb0n closed 9 years ago

gerb0n commented 9 years ago

ExpressiveAnnotations isn't showing validation-errors on the clientside when used with Ajax-Forms and PartialViews. The validation on the server is going fine but when the PartialView is returned no validation-errors are shown. I created a small solution to explain the problem, am I doing something wrong or is there no support for Ajax.BeginForm?

See this sample project: https://github.com/GVersluiss/ExpressiveAnnotationIssue

Thanks in advance, Gerben

gerb0n commented 9 years ago

In the sample project it is now working fine. In my own project it is not working so there has to be some difference between the two projects. I can savely say that there is no issue with your package.

jwaliszko commented 9 years ago

Hi, Good, I'm glad it works.

Best regards /jarek