Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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"})
    (See the bold part).

    Is i18n supposed to work in SimpleTypes as well? I'm using current 5.1p.

    Best regards
    Blama


    #2
    Hi Isomorphic,

    sorry for the inconvenience. I forgot to add the
    Code:
    <fmt:bundle basename="..." encoding="utf-8" />
    definition. Now everything is working.

    Best regards
    Blama

    Comment


      #3
      Good to know. Thanks for the update

      Isomorphic Software

      Comment

      Working...
      X