v8.3p_2012-11-29/PowerEdition Deployment (built 2012-11-29)
I'm using unique validator on a field
when i call
I get "Value must be unique" message near my form field. The problem is that it's not translated.
What can be done here? Even if it shouldn't be translated and it's kind of system message for a developer, i've been unable to intercept server validation response somehow. saveData callback is only called in case of success.
ValuesManager.hasErrors() and validate() say that there's no error at all (even it's shown near the form field).
TY.
I'm using unique validator on a field
Code:
<DataSource ID="users" serverType="hibernate" beanClassName="ru.eurotechnologygroup.etgcrm.server.model.User" schemaBean="ru.eurotechnologygroup.etgcrm.server.model.User" allowAdvancedCriteria="true"> .... <field name="login" title="Логин" length="20" required="true" groupId="Параметры доступа"> <validators> <validator type="isUnique"/> </validators> </field> ...
Code:
editForm.getValuesManager().saveData(new DSCallback() { @Override public void execute(DSResponse response, Object rawData, DSRequest request) { ... } });
What can be done here? Even if it shouldn't be translated and it's kind of system message for a developer, i've been unable to intercept server validation response somehow. saveData callback is only called in case of success.
ValuesManager.hasErrors() and validate() say that there's no error at all (even it's shown near the form field).
TY.
Comment