Hi,
SC_SNAPSHOT-2010-10-24/EVAL Deployment
I think there might be a problem with the following:
We have our own simpletype, linked with a custom editor and java object.
I have defined a "isOneOf" validator on my field (in the datasource xml).
The validation is always failing which, when you think of it, is normal...
Because how is the validator going to know which variable in my java object to validate against?!?
SC_SNAPSHOT-2010-10-24/EVAL Deployment
I think there might be a problem with the following:
We have our own simpletype, linked with a custom editor and java object.
I have defined a "isOneOf" validator on my field (in the datasource xml).
The validation is always failing which, when you think of it, is normal...
Because how is the validator going to know which variable in my java object to validate against?!?
Code:
<DataSource ID="106" dropExtraFields="true" sparseUpdates="true"> <fields> <field sraId="422" name="id" title="Id" canEdit="false" type="integer" primaryKey="true" defaultValue="-2000000" crud="2" > </field> <field sraId="15" name="defaultDistanceUnitEnumID" title="default Distance Unit EnumID" type="silkEnum" javaClass="outpost.parameter.SraEnum" crud="15" > <valueMap> <value ID="165">Km</value> <value ID="166">Mls</value> <value ID="167">Hours</value> </valueMap> <validators> <validator clientOnly="true" stopIfFalse="true" type="isOneOf" errorMessage="Value is not in list" /> </validators> </field> </fields> </DataSource>
Code:
public class SraEnum implements Serializable { private Integer enum_id = DBConstants.NULL_INT; private Integer attributeType = DBConstants.NULL_INT; ... }
Code:
public class SilkEnumEditor extends ComboBoxItem { }
Code:
[ { invalidateCache:false, data:{ leasingCompanies:[ { defaultDistanceUnitEnumID:{ attributeType:127, dataType:9, enum_id:166 }, id:100001 } ], sessDtoId:100001 }, status:0, isDSResponse:true } ]
Comment