oh well, I dont even remember how we implemented the client side validation. You should check the js lib used.
2012/1/27 Rémi BOURGAREL <[email protected]>: > You don't override it : > >> protected static string FormatIfNecessary(object value, IDictionary >> attributes) >> { >> var formatString = >> CommonUtils.ObtainEntryAndRemove(attributes, "textformat"); >> >> if (value != null && formatString != null) >> { >> var formattable = value as IFormattable; >> >> if (formattable != null) >> { >> value = formattable.ToString(formatString, null); >> } >> } >> else if (value == null) >> { >> value = String.Empty; >> } >> >> return value.ToString(); >> } > > > the second parameter of toString is "null", so you're using the current > UICulture : French so you logically display decimal with a comma, but client > side validation will fail : > >> IsNaN("1,4") > > > Will return false. > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/castle-project-devel/-/3GkIvya2jeQJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-devel?hl=en. -- Cheers, hammett http://hammett.castleproject.org/ -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
