Hello, all
I use SmartGWT 6.1. My task is very simple: I need create TextItem with mask. Method setMask() works fine for empty form. But when I call it on TextItem with value, then it clears value of TextItem.
How to create TextItem with filled value (not empty) and with mask ?
For example:
TextItem tx = new TextItem();
....
tx.setValue("ТС RU Д-CN.АБ12.В.12345");
...
tx.setMask(">ТС RU Д\\-[A-Z][A-Z].[А-Я][А-Я]##.[А-В].#####"); // Clears value, but user should see value and can edit it.
Best regards,
Eugeny
I use SmartGWT 6.1. My task is very simple: I need create TextItem with mask. Method setMask() works fine for empty form. But when I call it on TextItem with value, then it clears value of TextItem.
How to create TextItem with filled value (not empty) and with mask ?
For example:
TextItem tx = new TextItem();
....
tx.setValue("ТС RU Д-CN.АБ12.В.12345");
...
tx.setMask(">ТС RU Д\\-[A-Z][A-Z].[А-Я][А-Я]##.[А-В].#####"); // Clears value, but user should see value and can edit it.
Best regards,
Eugeny
Comment