I have an index page where I want to include a SignIn panel. So I do
this for the page:

public class IndexPage extends WebPage {

        private static final long serialVersionUID = 1L;

        public IndexPage() {
                this(null);
        }
        
    /**
         * Constructor that is invoked when page is invoked without a session.
         *
         * @param parameters
         *            Page parameters
         */
    public IndexPage(final PageParameters parameters) {
        // Add the simplest type of label
        add(new Label("message", "We have a liftoff"));
        add(new SignInPanel("signInPanel", true));
    }
}

I do this for the application
public class MyApplication extends AuthenticatedWebApplication
{
        @Override
        protected Class< ? extends AuthenticatedWebSession> getWebSessionClass()
        {
                return MyAuthenticatedWebSession.class;
        }

        @Override
        protected Class< ? extends WebPage> getSignInPageClass()
        {
                return IndexPage.class;
        }
        
    /**
     * Constructor
     */
        public MyApplication()
        {
        }
        
        /**
         * @see wicket.Application#getHomePage()
         */
        public Class getHomePage()
        {
                return IndexPage.class;
        }

}

And I copied over MyAuthenticatedWebSession from the examples.
When I try to access the IndexPage I get the following exception


Root cause:

java.lang.UnsupportedOperationException: FormComponent class
org.apache.wicket.markup.html.form.PasswordTextField does not support
cookies
at 
org.apache.wicket.markup.html.form.FormComponent.setPersistent(FormComponent.java:944)
at 
org.apache.wicket.authentication.panel.SignInPanel.setPersistent(SignInPanel.java:195)
at 
org.apache.wicket.authentication.panel.SignInPanel$SignInForm.<init>(SignInPanel.java:94)
at 
org.apache.wicket.authentication.panel.SignInPanel.<init>(SignInPanel.java:143)
...
..
.


Anyone has a clue as to what's wrong?

-- 
Thanks,
Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to