Good to know. Thanks for the update
Isomorphic Software
Announcement
Collapse
No announcement yet.
X
-
Hi Isomorphic,
sorry for the inconvenience. I forgot to add the
Code:<fmt:bundle basename="..." encoding="utf-8" />
Best regards
Blama
Leave a comment:
-
i18n of validator errorMessages in simpleTypes (v5.1p)
Hi Isomorphic,
I'm trying to use the technique discussed here for my email-simplyType i18n (error message of the address-format validator)
It does seem though as if it does not work in this case. The DataSourceLoader returns this for the type:
Code:if (window.isc == undefined || window.isc.DataSource == undefined){ alert("Can't load DataSources - SmartClient runtime not loaded");}isc.SimpleType.create({inheritsFrom:"text",xmlns:"http://mydomain/SmartGWT/TYPE_XML",validators:["isString",{expression:"^[a-zA-Z0-9._%+-]+@(?:[a-zA-Z0-9-]+\\.)+(?:[a-zA-Z]{2}|[aA][aA][aA]|...many more...|[tT][rR][aA][vV][eE][lL][eE][rR][sS][iI][nN][sS][uU][rR][aA][nN][cC][eE])$",type:"regexp",errorMessage:"[B]<fmt:message key=\"validatorValidEmail\">[/B]"}],name:"emailType",fmt:"lmscompany/fmt"})
Is i18n supposed to work in SimpleTypes as well? I'm using current 5.1p.
Best regards
Blama
Tags: None
Leave a comment: