continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r366221 - in /maven/continuum/trunk/continuum-webapp/src/main: resources/ resources/org/apache/maven/continuum/web/action/ webapp/
Date Thu, 05 Jan 2006 17:15:54 GMT
Author: evenisse
Date: Thu Jan  5 09:15:47 2006
New Revision: 366221

URL: http://svn.apache.org/viewcvs?rev=366221&view=rev
Log:
Add projectEdit view validations

Added:
    maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
  (with props)
    maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
  (with props)
Modified:
    maven/continuum/trunk/continuum-webapp/src/main/resources/xwork.xml
    maven/continuum/trunk/continuum-webapp/src/main/webapp/projectEdit.jsp

Added: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml?rev=366221&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
(added)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
Thu Jan  5 09:15:47 2006
@@ -0,0 +1,21 @@
+<!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="name">
+        <field-validator type="required">
+            <message key="projectEdit.name.required"/>
+        </field-validator>
+    </field>
+    <field name="version">
+        <field-validator type="required">
+            <message key="projectEdit.version.required"/>
+        </field-validator>
+    </field>
+    <field name="scmUrl">
+        <field-validator type="required">
+            <message key="projectEdit.scmUrl.required"/>
+        </field-validator>
+    </field>
+</validators>

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction-validation.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties?rev=366221&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
(added)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
Thu Jan  5 09:15:47 2006
@@ -0,0 +1,3 @@
+projectEdit.name.required = Project Name is required
+projectEdit.version.required = version is required
+projectEdit.scmUrl.required = scmUrl is required

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/ProjectEditAction.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/xwork.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/xwork.xml?rev=366221&r1=366220&r2=366221&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/xwork.xml (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/xwork.xml Thu Jan  5 09:15:47
2006
@@ -94,6 +94,12 @@
             <result name="success" type="chain">projectView</result>
         </action>
 
+        <action name="projectSave"
+                class="projectEdit">
+            <result name="input">projectEdit.jsp</result>
+            <result name="success" type="chain">projectView</result>
+        </action>
+
         <action name="buildDefinitionEdit"
                 class="buildDefinitionEdit">
             <result name="input">buildDefinitionEdit.jsp</result>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/projectEdit.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/projectEdit.jsp?rev=366221&r1=366220&r2=366221&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/projectEdit.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/projectEdit.jsp Thu Jan  5 09:15:47
2006
@@ -10,7 +10,7 @@
         <h3><ww:text name="projectEdit.section.title"/></h3>
 
         <div class="axial">
-          <ww:form action="projectEdit.action" method="post">
+          <ww:form action="projectSave.action" method="post">
             <ww:hidden name="projectId"/>
             <ww:textfield label="%{getText('projectEdit.project.name.label')}" name="name"
required="true"/>
             <ww:textfield label="%{getText('projectEdit.project.version.label')}" name="version"
required="true"/>



Mime
View raw message