Author: chatellier Date: 2010-11-08 10:22:45 +0000 (Mon, 08 Nov 2010) New Revision: 181 Log: Deplacement du nombre de d?\195?\169cimale pour les traits en fatal Added: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-fatal-validation.xml Modified: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml Modified: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml 2010-11-05 17:21:38 UTC (rev 180) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml 2010-11-08 10:22:45 UTC (rev 181) @@ -1,6 +1,6 @@ <!-- #%L - Coser :: UI + Coser :: Business $Id$ $HeadURL$ @@ -56,28 +56,16 @@ <field-validator type="checkDouble" short-circuit="true"> <message>sweptSurface attribute is not a valid double</message> </field-validator> - <field-validator type="regex"> - <param name="expression">\-?[0-9]+\.[0-9]{5,}</param> - <message>lat must contains at least 5 decimal</message> - </field-validator> </field> <field name="lat"> <field-validator type="checkDouble" short-circuit="true"> <message>lat attribute is not a valid double</message> </field-validator> - <field-validator type="regex"> - <param name="expression">\-?[0-9]+\.[0-9]{5,}</param> - <message>lat must contains at least 5 decimal</message> - </field-validator> </field> <field name="long"> <field-validator type="checkDouble" short-circuit="true"> <message>long attribute is not a valid double</message> </field-validator> - <field-validator type="regex"> - <param name="expression">\-?[0-9]+\.[0-9]{5,}</param> - <message>long must contains at least 5 decimal</message> - </field-validator> </field> <field name="depth"> <field-validator type="checkDouble" short-circuit="true"> Added: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-fatal-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-fatal-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-fatal-validation.xml 2010-11-08 10:22:45 UTC (rev 181) @@ -0,0 +1,47 @@ +<!-- + #%L + Coser :: Business + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin, Chatellier Eric + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!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="sweptSurface"> + <field-validator type="regex"> + <param name="expression">\-?[0-9]+\.[0-9]{3,}</param> + <message>lat must contains at least 5 decimal</message> + </field-validator> + </field> + <field name="lat"> + <field-validator type="regex"> + <param name="expression">\-?[0-9]+\.[0-9]{3,}</param> + <message>lat must contains at least 5 decimal</message> + </field-validator> + </field> + <field name="long"> + <field-validator type="regex"> + <param name="expression">\-?[0-9]+\.[0-9]{3,}</param> + <message>long must contains at least 5 decimal</message> + </field-validator> + </field> +</validators> \ No newline at end of file