All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaxx.demo.validation.model.Movie-update-warning-validation.xml Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
<!--
  #%L
  JAXX :: Tutorial Validation
  
  $Id: Movie-update-warning-validation.xml 2164 2011-01-25 12:03:38Z tchemit $
  $HeadURL: http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.4.1/jaxx-tutorial-validation/src/main/resources/jaxx/demo/validation/model/Movie-update-warning-validation.xml $
  %%
  Copyright (C) 2008 - 2011 CodeLutin
  %%
  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="title">
    <field-validator type="fieldexpression">
      <param name="expression">
        <![CDATA[ title != null && title.length() > 1]]></param>
      <message>Title should be more than One caracter.</message>
    </field-validator>
  </field>
  <field name="year">
    <field-validator type="int">
      <param name="min">1920</param>
      <message>Year should be after 1920</message>
    </field-validator>
  </field>
</validators>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy