Author: jdonnerstag
Date: Mon Dec 27 10:08:21 2010
New Revision: 1053037

URL: http://svn.apache.org/viewvc?rev=1053037&view=rev
Log:
make form more easily available to subclasses

Modified:
    
wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel.java

Modified: 
wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel.java?rev=1053037&r1=1053036&r2=1053037&view=diff
==============================================================================
--- 
wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel.java
 (original)
+++ 
wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel.java
 Mon Dec 27 10:08:21 2010
@@ -55,6 +55,8 @@ public class SignInPanel extends Panel
        /** Log. */
        private static final Logger log = 
LoggerFactory.getLogger(SignInPanel.class);
 
+       private static final String SIGN_IN_FORM = "signInForm";
+
        /** True if the panel should display a remember-me checkbox */
        private boolean includeRememberMe = true;
 
@@ -93,7 +95,16 @@ public class SignInPanel extends Panel
 
                // Add sign-in form to page, passing feedback panel as
                // validation error handler
-               add(new SignInForm("signInForm"));
+               add(new SignInForm(SIGN_IN_FORM));
+       }
+
+       /**
+        * 
+        * @return signin form
+        */
+       protected SignInForm getForm()
+       {
+               return (SignInForm)get(SIGN_IN_FORM);
        }
 
        /**


Reply via email to