Is the current thread uiculture set to french?

2012/1/25 Rémi BOURGAREL <[email protected]>:
> Hi All
> I have this model
>
> public class MyViewModel{
> [ValidateDecimal]
> public decimal ADecimal{get;set;}
> }
>
> And this view
>
> $FormHelper.NumberField("myobject.ADecimal")
>
> If myobject.ADecimal is equal to "13.6"
>
> The input will have "13,6" for value (note the comma).
> But this value is not passing the Prototype validation.
>
> And if you enter "13.6" in the input the prototype validation is OK
> but after the posting myobject.ADecimal is 0 without raising a
> validation error on the server side.
>
> Possible Solutions :
>
> - Overriding the prototype number validation so it works with "," (and
> every other culture)
> - Or forcing the use of "." as separator (ie forcing the culture when
> you display the input tag and when you parse the content)
>
> --
> 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.
>



-- 
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.

Reply via email to