This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit 563c0b77c4d4ede024dcc2916f15d14a32a7e09d Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Oct 15 14:41:43 2015 +0200 mise en place de la validation (refs #7600) --- ...nsmittingBuoyDto-n1-update-error-validation.xml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/FloatingObjectTransmittingBuoyDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/FloatingObjectTransmittingBuoyDto-n1-update-error-validation.xml new file mode 100644 index 0000000..f0004da --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/FloatingObjectTransmittingBuoyDto-n1-update-error-validation.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU 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 Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="comment"> + + <!-- comentaire de moins de 1024 caractères --> + <field-validator type="stringlength"> + <param name="maxLength">1024</param> + <message>validator.floatingObject.comment.tobig</message> + </field-validator> + + <!-- comment requis selon le type de la premiere balise --> + <field-validator type="fieldexpression"> + <param name="expression"> + <![CDATA[ + transmittingBuoy == null + || transmittingBuoy.empty + || transmittingBuoy.get(0) == null + || transmittingBuoy.get(0).transmittingBuoyType == null + || !transmittingBuoy.get(0).transmittingBuoyType.needComment + || (comment != null && !comment.empty) + ]]> + </param> + <message>validator.floatingObject.required.comment.for.balise1</message> + </field-validator> + + <!-- comment requis selon le type de la seconde balise --> + <field-validator type="fieldexpression"> + <param name="expression"> + <![CDATA[ + transmittingBuoy == null + || transmittingBuoy.empty + || transmittingBuoy.size() < 2 + || transmittingBuoy.get(1) == null + || transmittingBuoy.get(1).transmittingBuoyType == null + || !transmittingBuoy.get(1).transmittingBuoyType.needComment + || (comment != null && !comment.empty) + ]]> + </param> + <message>validator.floatingObject.required.comment.for.balise2</message> + </field-validator> + + </field> +</validators> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.