Hi
I followed the example Server Application DMI Validation
But after quantity inputted, it did not call the com.isomorphic.examples.server.validation.ValidatorDMI.java
Is there any setup required in web.xml or other files?
Many Thanks
<DataSource ID="validationDMI_orderForm" serverType="sql">
<fields>
<field name="orderItem" type="sequence" primaryKey="true"/>
<field name="itemId" foreignKey="StockItem.id" required="true"/>
<field name="quantity" type="integer" length="9">
<validators>
<validator type="serverCustom">
<serverObject lookupStyle="new" className="com.isomorphic.examples.server.validation.ValidatorDMI"/>
<errorMessage>Only $available in stock</errorMessage>
</validator>
</validators>
</field>
<field name="instructions" type="text"/>
</fields>
</DataSource>
I followed the example Server Application DMI Validation
But after quantity inputted, it did not call the com.isomorphic.examples.server.validation.ValidatorDMI.java
Is there any setup required in web.xml or other files?
Many Thanks
<DataSource ID="validationDMI_orderForm" serverType="sql">
<fields>
<field name="orderItem" type="sequence" primaryKey="true"/>
<field name="itemId" foreignKey="StockItem.id" required="true"/>
<field name="quantity" type="integer" length="9">
<validators>
<validator type="serverCustom">
<serverObject lookupStyle="new" className="com.isomorphic.examples.server.validation.ValidatorDMI"/>
<errorMessage>Only $available in stock</errorMessage>
</validator>
</validators>
</field>
<field name="instructions" type="text"/>
</fields>
</DataSource>