Hi all,

As of now, governance API validates all the fields which has
validate="<some-regex>" attribute in the field, and throws an exception
whenever regex is not matched with input value. Hence, such fields get
required by default even thought required="true" is not set to the field
definition in RXT.

ex:
<field type="text" validate="^\d+$">
            <name>Age</name>
</field>

Should this be the default behavior or should we only check regex match for
fields which are explicitly defined to be required.


Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to