]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Sample of the client side validation
authormka <mka@opencascade.com>
Wed, 27 Mar 2013 07:13:11 +0000 (07:13 +0000)
committermka <mka@opencascade.com>
Wed, 27 Mar 2013 07:13:11 +0000 (07:13 +0000)
Workspace/Siman/src/org/splat/simer/NewStudyAction-valid-new-validation.xml [new file with mode: 0644]

diff --git a/Workspace/Siman/src/org/splat/simer/NewStudyAction-valid-new-validation.xml b/Workspace/Siman/src/org/splat/simer/NewStudyAction-valid-new-validation.xml
new file mode 100644 (file)
index 0000000..6525f9e
--- /dev/null
@@ -0,0 +1,13 @@
+<!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="requiredstring">
+            <message>${getText("message.error.noenteredvalue", "-", getText("field.studytitle"))}</message>
+        </field-validator>
+    </field>
+    <field name="projectContext">
+       <field-validator type="requiredstring">
+            <message>${getText("message.error.noenteredvalue", "-", getText("field.product"))}</message>
+        </field-validator>
+    </field>
+</validators>
\ No newline at end of file