[ovirt-devel] Validation issue with IntegerEntityModelTextBoxEditor

Lior Vernia lvernia at redhat.com
Thu Apr 30 11:50:07 UTC 2015


I think it's an issue with other validations as well - "we" typically
return true for frontend validations if the Object being validated is of
the wrong type.

In my opinion, it would be better to let a ClassCastException be thrown
to allow developers see they're doing something wrong...

On 30/04/15 14:38, Ramesh wrote:
> Hi,
> 
>  We have a validation issue with IntegerEntityModelTextBoxEditor. It
> converts non numeric values as null to the model. As a result
> IntegerValidation.validate() will be success always even in case of non
> integer value.
> 
> Any suggestion to fix this issue?.
> 
> Regards,
> Ramesh
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel



More information about the Devel mailing list