Hi,
we have upgraded from 6.0p-2016-05-28 to 6.0p-2016-08-04 and hit regression issue in our ListGrids. We have a ListGrid with couple of ListGridFields, e.g. fieldA, fieldB etc.
There are no dependencies between fields.
Behavior I see:
OLDER VERSION (6.0p-2016-05-28)
In older version validator is only triggered when user is editing field A. Nothing happens when user edits (inline-editor) field B.
CURRENT VERSION (6.0p-2016-08-04)
In the current version, validator is triggered all the time - when user edits (inline editing) field A, but also when he edits field B.
And this is breaking our application.
Was there any change? Is this a regression bug?
we have upgraded from 6.0p-2016-05-28 to 6.0p-2016-08-04 and hit regression issue in our ListGrids. We have a ListGrid with couple of ListGridFields, e.g. fieldA, fieldB etc.
There are no dependencies between fields.
Behavior I see:
OLDER VERSION (6.0p-2016-05-28)
In older version validator is only triggered when user is editing field A. Nothing happens when user edits (inline-editor) field B.
CURRENT VERSION (6.0p-2016-08-04)
In the current version, validator is triggered all the time - when user edits (inline editing) field A, but also when he edits field B.
And this is breaking our application.
Was there any change? Is this a regression bug?
Code:
On field fieldA we have a custom validator added with this piece of code (see below) and validator is defined as next (bottom). ListGridField elementName = [B]new [/B]ListGridField(...); elementName.setType(ListGridFieldType.[B][I]TEXT[/I][/B]); elementName.setValidators([B]new [/B]ElementNameValidator()); elementName.setEscapeHTML([B]true[/B]); ListGridField elementLabel = [B]new [/B]ListGridField(...); elementLabel.setType(ListGridFieldType.[B][I]TEXT[/I][/B]); elementLabel.setEscapeHTML([B]true[/B]); ... [B]class [/B]ElementNameValidator [B]extends [/B]CustomValidator { @Override [B]protected boolean [/B]condition(Object value) { ... } }
Comment