(1) Is it possible to do the same thing via Java code rather than JSNI/JavaScript? Or, as an alternative, is there any way to set Validator Message at design-time in JavaScript rather than run-time, similar to how custom scrollbars are turned off?
(2) Please advise me how to localize month and weekday names in DateItem and DateChooser. In DateChooser.js there is this code:
getDayNames : function () {
if (isc.DateChooser._dayNames == null) {
// Don't hard-code day-names -- we need them to be localizeable
// isc.DateChooser._dayNames = ["Su", "Mo","Tu", "We", "Th", "Fr", "Sa"]
var dateObj = new Date();
isc.DateChooser._dayNames = Date.getShortDayNames(2);
}
return isc.DateChooser._dayNames;
},
I have tried returning hardcoded array of localized values but it did not work. I was not able to spot any other place in code where I could localize month and weekday names.