Hi,
We developped a framework sending requests to cws and we realized a problem after informing a category attribute with a null value. After this update, we verified that category attribute field was showed as non editable when this attribute was displayed accessing to corresponding associated folder.
In order to avoid it, we decided to substitute null value by a blank. Then, this attrubte was displayed as editable. However, it is a problem as this attribute is computed as informed by the system when really it is should be computed as empty.
Below you can see code portion used for informing a value to the attribute (one of them can be null):
if (dataValue instanceof StringValue) {
log.debug("DataValue {} {} es StringValue", dataValue.getDescription(), dataValue.getKey());
log.debug("DataValue StringValue con valor {}", value);
StringValue strValue = (StringValue)dataValue;
strValue.getValues().clear();
strValue.getValues().add(value);
}
Any advices?