continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r536738 - in /maven/continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/ProjectGroupAction.java webapp/WEB-INF/jsp/projectGroupEdit.jsp
Date Thu, 10 May 2007 03:36:12 GMT
Author: oching
Date: Wed May  9 20:36:11 2007
New Revision: 536738

URL: http://svn.apache.org/viewvc?view=rev&rev=536738
Log:
CONTINUUM-1264 Applied patch submitted by Nap Ramirez. Added empty string validation in ProjectGroupAction.
Also added displaying of action error messages in projectGroupEdit.jsp

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupEdit.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java?view=diff&rev=536738&r1=536737&r2=536738
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Wed May  9 20:36:11 2007
@@ -250,6 +250,12 @@
             addActionError( authzE.getMessage() );
             return REQUIRES_AUTHORIZATION;
         }
+        
+        if ( name != null && name.equals( "" ) )
+        {
+            addActionError( "projectGroup.error.name.required" );
+            return INPUT;
+        }
 
         projectGroup = getContinuum().getProjectGroupWithProjects( projectGroupId );
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupEdit.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupEdit.jsp?view=diff&rev=536738&r1=536737&r2=536738
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupEdit.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupEdit.jsp
Wed May  9 20:36:11 2007
@@ -37,6 +37,13 @@
                     <p><ww:text name="%{getText('project.in.checkout.queue.error')}"/></p>
                             </div >
               </c:if>
+              <c:if test="${!empty actionErrors}">
+              <div class="errormessage">
+                <c:forEach items="${actionErrors}" var="actionError">
+                  <p><ww:text name="${actionError}"/></p>
+                </c:forEach>
+              </div>
+              </c:if>
             <table>
               <tbody>
                 <ww:hidden name="projectGroupId"/>



Mime
View raw message