Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2198

HybridUrlCodingStrategy & FeedbackPanel when Cookies are disabed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.4-RC2
    • 1.4.0
    • wicket
    • None

    Description

      In my application I use HybridUrlCodingStrategy for all my pages. I've noticed that when cookies are disabled, the FeedbackPanel isn't visible any more (when the form is submitted and there are errors or other types of messages -> they are simply not shown). When I disable the HybridUrlCodingStrategy, everything is ok.

      Here is the quickstart:
      in Application class:

      public class MyApplication extends AuthenticatedWebApplication {
          @Override
        protected void init() {
          super.init();
          mount(new HybridUrlCodingStrategy(url, HomePage.class));
        }
      }
      

      In HomePage.java, I have a form

      public class HomePage extends WebPage {
      private final class SignInForm extends Form {
         private final ValueMap properties = new ValueMap();
          public SignInForm(final String id) {
            super(id);
            add(new FeedbackPanel("feedback"));
            add(new TextField<String>("username", new PropertyModel<String>(properties, "username")).setRequired(true));
            add(new PasswordTextField<String>("password", new PropertyModel<String>(properties, "password")).setRequired(true));
        }
      }
      

      Then, disable cookies in FF3 using Developer Toolbar. Access the page, hit the submit button when all fields are empty. Feedback messages are expected to be shown. But with cookies disabled, nothing happens. If you remove HybridUrlCodingStrategy mount, it works ok.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            alexandru.objelean Alexandru Objelean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: