That's correct; my intention is to keep #arch very agnostic as to what
is used for the presentation and client interactions. So whatever
suits your fancy for client side validation is the most appropriate
response I suppose.
Billy
On Jan 13, 12:46 pm, Bobby Johnson <
bobby.john...@gmail.com> wrote:
> Both very valid points.
>
> My original question, albeit a fairly convoluted stream of consciousness
> sort of thing, was to ask if client side validation was going to be a part
> of S#. Sounds like no. So I can continue on my investigation of using xVal,
> which uses jquery validation. I do plan on making this functionality a UI
> concern. I am simply trying to keep it DRY by using the validation framework
> provided in S#.
>
> Thanks guys.
>
> On Tue, Jan 13, 2009 at 11:35 AM, Alec Whittington <
>
>
>
>
alec.whitting...@gmail.com> wrote:
> > To add my $.02. I actually prefer to use jQuery Validation for mine (
> >
http://bassistance.de/jquery-plugins/jquery-plugin-validation/)<
http://bassistance.de/jquery-plugins/jquery-plugin-validation/>
>
> > This allows me the customization I need to knock out complex validation
> > along with built-in validators to handle the simple things. I personally
> > would not want to see client side validators added to #Arch as the
> > validation would be different depending on what your presentation layer
> > consisted of. While MVC is baked in, nothing says the view has to be MVC, it
> > could be web forms, it could be a web service.
>
> > Alec Whittington
>
> > On Tue, Jan 13, 2009 at 11:31 AM, Billy <
googlegro...@emccafferty.com>wrote:
>
> >> Hi Bobby,
>
> >> This is a very good question for the NHibernate forums at
>
> >>
http://forum.hibernate.org/viewforum.php?f=25&sid=b47de9ef47e05dffed2...
> >> . My recommendation is to keep validation on the server side; you can
> >> use Ajax requests to make it appear as though it were client-side.
>
> >> Billy
>
> >> On Jan 13, 11:19 am, Bobby Johnson <
bobby.john...@gmail.com> wrote:
> >> > Are there any plans to add client side validation based on
> >> > NHibernate.Validator? I have been looking around for a project that
> >> > implements this but am having no luck. Everything seems to point to
> >> > Castle.Validation. I did find an interesting project called xVal on
> >> codeplex
> >> > that takes attribute based constraints and turns them into client side
> >> > validation. It currently works with Castle.Validaiton and
> >> DataAnnotations.
> >> > Looks like I would have to write my own RulesProvider to translate
> >> > NHibernate.Validator to xVal rules. But before I go down that road I
> >> thought
> >> > I would find out what the plans are.
>
> >> > --
> >> > "The explanation requiring the fewest assumptions is most likely to be
> >> > correct."
>
> >> > - Occam's Razorhttp://
en.wikipedia.org/wiki/Occam's_Razor<
http://en.wikipedia.org/wiki/Occam%27s_Razor>