Announcement

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

    Appending the Number at Custom Position in SmartGwt Error Message for The Validation

    Hi,
    We are using Smart GWT-4.0p/Pro/2014-03-04.
    Google Chrome : Version 34.0.1847.131 m
    Internet Explorer: Version-9, 10.

    We have a requirement like to change the position of the integer in the Smart Gwt error message for integer validator.
    Following are the Smart Gwt messages:
    Smart Gwt Messages :
    @DefaultMessage("Must be no more than")
    @Key("validator_mustBeLessThan")
    String validator_mustBeLessThan();

    @DefaultMessage("Must be at least ")
    @Key("validator_mustBeGreaterThan")
    String validator_mustBeGreaterThan();

    Sample Code :
    TextItem sampleText = new TextItem();

    IntegerRangeValidator rangeValidator= new IntegerRangeValidator();
    rangeValidator.setMin(1000);
    rangeValidator.setMax(30000);
    sampleText .setValidators(rangeValidator);
    If I give the input out of the range,

    SmartGwt is showing error message in UI like:
    "Must be no more than 30000"
    "Must be at least 1000"

    For some of the languages like "Japanese" we have to show the integer value at the starting position as follows,
    30000 以上でなければなりません
    1000 以上である必要があります
    is Smart Gwt allow us to append the number as per our requirement ?
    Please provide a solution for my requirement.

    Thank you.

    #2
    This is not currently supported. We would recommend rephrasing the message text to avoid the need to put the number at the front.

    Comment

    Working...
    X