Could you step in the code and see whether we are overriding the
conversion code with an InvariantCulture or so? That'd be the only
explanation for the misbehavior..

2012/1/26 Rémi BOURGAREL <[email protected]>:
> Yes it is, I'm sorry I posted my thread and I didn't finish the title.
>
> On Jan 25, 10:56 pm, hammett <[email protected]> wrote:
>> 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 
>> > athttp://groups.google.com/group/castle-project-devel?hl=en.
>>
>> --
>> Cheers,
>> hammetthttp://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.
>



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