Looks like a bug to me. The default value of "remember" on SignInPanel is
true so I guess there is no other option then using previous beta2 until it
is fixed. Or the hard way is to write own SignInPanel...
Alex Shneyderman wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/SigIn-page-example-not-working-for-me.-tf4375661.html#a12478386
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]