Hi,
How do we use velocity expressions in the errorMessage?
E.g. something like this (doesn't seem to be working?):
btw, there is no field 'errorMessage' explained here:
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/Validator.html
How do we use velocity expressions in the errorMessage?
E.g. something like this (doesn't seem to be working?):
Code:
<validators> <validator type="serverCustom"> <serverCondition><![CDATA[ $value <= $dataSources.StockItem.fetchById($record.itemId).quantity ]]></serverCondition> <errorMessage>We don't have $value in stock, only $dataSources.StockItem.fetchById($record.itemId).quantity</errorMessage> </validator> </validators>
btw, there is no field 'errorMessage' explained here:
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/Validator.html
Comment