wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

A validation failure for boolean value field in listgrid is not visible #548

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In general validators which were set for boolean fields in a listgrid work but 
they are not visible.

It seems to me that in such case the row editor is closed (the editing mode is 
aborted) and the error icon and error message is visible only after reenter 
editing mode again. 

This occurs only for a field of boolean type, e.g.

        field2.setType(ListGridFieldType.BOOLEAN);

        CustomValidator customFieldValidator = new 
                CustomValidator() {         
            @Override
            protected boolean condition(Object value)
                        {               
                return false;               
            }
        };

        customFieldValidator.setErrorMessage("some error message");
        field2.setValidators(customFieldValidator);

In the attached application just click "add new record" button and type any 
values. A validation error occurs, but the icon with error message is not 
visible unitil reediting erroneous row again.

Original issue reported on code.google.com by WPieprzy...@gmail.com on 16 Dec 2010 at 10:31

Attachments:

GoogleCodeExporter commented 9 years ago
This should be resolved with the next nightly build (Dated Dec 23rd)

Original comment by smartgwt...@gmail.com on 22 Dec 2010 at 8:18