geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r477811 - /geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp
Date Tue, 21 Nov 2006 18:42:05 GMT
Author: vamsic007
Date: Tue Nov 21 10:42:04 2006
New Revision: 477811

URL: http://svn.apache.org/viewvc?view=rev&rev=477811
Log:
GERONIMO-2533 Password setup forms should use a confirmation field

Modified:
    geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp

Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp?view=diff&rev=477811&r1=477810&r2=477811
==============================================================================
--- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp
(original)
+++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/dbwizard/basicParams.jsp
Tue Nov 21 10:42:04 2006
@@ -14,11 +14,28 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 --%>
+
+<%-- $Rev$ $Date$ --%>
+
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
 <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
 <portlet:defineObjects/>
 
+<script language="JavaScript">
+var <portlet:namespace/>formName = "<portlet:namespace/>DatabaseForm";
+var <portlet:namespace/>requiredFields = new Array("driverClass", "jars");
+var <portlet:namespace/>passwordFields = new Array("password");
+function <portlet:namespace/>validateForm(){
+    if(!textElementsNotEmpty(<portlet:namespace/>formName,<portlet:namespace/>requiredFields))
+        return false;
+    if(!passwordElementsConfirm(<portlet:namespace/>formName, <portlet:namespace/>passwordFields))
{
+        return false;
+    }
+    return true;
+}
+</script>
+
 <p><b>Create Database Pool</b> -- Step 2: Select Driver, JAR, Parameters</p>
 
 <!--   FORM TO COLLECT DATA FOR THIS PAGE   -->
@@ -86,6 +103,10 @@
         <td><input name="password" type="password" size="20" value="${pool.password}"></td>
       </tr>
       <tr>
+        <th><div align="right">Confirm Password:</div></th>
+        <td><input name="confirm-password" type="password" size="20" value="${pool.password}"></td>
+      </tr>
+      <tr>
         <td></td>
         <td>The password used to connect to the database</td>
       </tr>
@@ -110,7 +131,7 @@
     <!-- SUBMIT BUTTON -->
       <tr>
         <td></td>
-        <td><input type="submit" value="Next" /></td>
+        <td><input type="submit" value="Next"  onClick="return <portlet:namespace/>validateForm();"/></td>
       </tr>
     </table>
 </form>



Mime
View raw message