Using smart GWT EE 2.3 (evaluation and nightly build of 28/07).
In my datasource xml I have defined following field with a floatRange validator. Min and max set to values shown below...
When I set the value in the field to a value that should give a validation error nothing happens... digging in my log I get the following message?!?
Am I missing something?!? Seems pretty straight forward...
Thanx!
In my datasource xml I have defined following field with a floatRange validator. Min and max set to values shown below...
Code:
<field sraId="1315" name="deviationPercOnDistanceAllowed" title="deviation Perc On Distance Allowed" type="float" emptyCellValue="0.1" crud="15" > <validators> <validator clientOnly="true" stopIfFalse="true" type="floatRange" min="0.1" max="1.0" /> </validators> </field>
Code:
WARN Validation - Validation errors validating a 'DataSource':
{
"/DataSource[@ID=106]/fields/field[@name=deviationPercOnDistanceAllowed]/validators/validator":{
recordPath:"/DataSource[@ID=106]/fields/field[@name=deviationPercOnDistanceAllowed]/validators/validator",
max:{
errorMessage:"Must be a whole number."
},
min:{
errorMessage:"Must be a whole number."
}
}
}
Thanx!
Comment