if you name your properties like:
getKey_Number
setKey_Number
intake should not complain about it, but maybe the java.bean classes
used to perform the introspection do not like the odd syntax. _ are not
used in java naming conventions. I assumed the introspection just tried
adding "get", "set", "is", maybe more to the property name and tested
for a match.
john mcnally
Diogo Saad wrote:
>
> I'm using intake in my webapp to validate some form fields.
> I get errors if I use _ (underscore caracter) in intake.xml
>
> Eg: mapToProperty="Key_Number" DOES NOT WORK
> mapToProperty="KeyNumber" WORKS
>
> <group name="Car" key="c" mapToObject="om.Car">
> <field name="KeyNum" key="k" type="String" mapToProperty="Key_Number">
> <rule name="mask" value="^([0-9]*)$">wrong syntax .</rule>
> </field>
> </group>
>
> Is there a problem with intake and underscores or I'm not supposed to use them
>anyway ??
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]