Announcement

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

    How to mark a FormField as erroneous

    Hi

    To validate a FormField I have to check the value against values in the database. To do this I use a GWT-RPC call. Because this calls are asynchronous I have to mark the field as erroneous after the result returns from the server.
    According to the API of DynamicForm there should be a methods called setErrors or setFieldErrors (see the extract of the javadoc below). But I can't find this methods an also don't see a possibility how to mark the field as erroneous.
    Can anybody show me a way how I can do this? Thanks!

    Code:
    Validation errors are set up automatically by validation, or may be explicitly set via 
    {@link com.smartgwt.client.widgets.form.DynamicForm#setErrors} or
    {@link com.smartgwt.client.widgets.form.DynamicForm#setFieldErrors}.
Working...
X