hi all ,
i'm generate some form using appfuse:gen ,but when i tried to insert un
valid data, it still insert the data. i guess it's not tried to validate
it. What should i do so the validation work ?
i've attached the XML for validation.
thanks
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<field name="customer.number">
<field-validator type="requiredstring">
<message key="errors.required"/>
</field-validator>
</field>
</validators> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<field name="customer">
<field-validator type="visitor">
<param name="appendPrefix">false</param>
<message/>
</field-validator>
</field>
</validators> ---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]