xval get message from resource file
I'm working on a CMS system which uses a resource file to get information and errorm开发者_如何学编程essages from. The client side validation is working without problems, only it's not getting the errormessage from the resource file. While debugging i figured out xval seems to get the errormessages from a javascript file where the messages are set hard-coded. Is there some way to override this?
Below the code which should make the relation to the resourcefile en specify the error when the field is left empty.
[Property]
[Required(ErrorMessageResourceType = typeof(CMSMessages), ErrorMessageResourceName = "EnterValidMoney")]
public virtual Double ShippingCost { get; set; }
xVal comes with a bunch of message JS files (in the Optional/Internationalization folder) but there appears to be no documentation on how to use them!
It looks like you simply need to include a <script src="..."> block after the min library is inluded.
精彩评论