title: Apache Wicket error : Class does neither have a constructor with PageParameter nor a default constructor
body: <p>My code</p>
  
  <pre><code>package com.remp.xyz;
  
  import org.apache.wicket.PageParameters;
  import org.apache.wicket.markup.html.WebPage;
  import org.apache.wicket.markup.html.form.Button;
  import org.apache.wicket.markup.html.form.Form;
  import org.apache.wicket.markup.html.form.RequiredTextField;
  import org.apache.wicket.markup.html.form.TextField;
  import org.apache.wicket.markup.html.panel.FeedbackPanel;
  import org.apache.wicket.model.Model;
  import org.apache.wicket.validation.validator.EmailAddressValidator;
  import org.apache.wicket.validation.validator.NumberValidator.RangeValidator;
  
  public class FormValidation extends WebPage { 
  
      FormValidation(final PageParameters parameters) { 
          prepareComponent(); 
      }
  
      void prepareComponent() {
          FeedbackPanel feedBackPanel = new FeedbackPanel("feedbackMsg");
  
          Form&lt;?&gt; form = new Form&lt;Object&gt;("form");
  
          TextField&lt;String&gt; name = new RequiredTextField&lt;String&gt;("name", new Model&lt;String&gt;()); 
          TextField&lt;Integer&gt; age = new RequiredTextField&lt;Integer&gt;("age", new Model&lt;Integer&gt;()); 
          TextField&lt;String&gt; email = new RequiredTextField&lt;String&gt;("email", new Model&lt;String&gt;()); 
          TextField&lt;String&gt; zipcode = new RequiredTextField&lt;String&gt;("zipcode", new Model&lt;String&gt;()); 
  
  
          age.setType(Integer.class);
          age.add(RangeValidator.range(12, 60));
          email.add(EmailAddressValidator.getInstance());
  
          form.add(new Button("submit") { 
  
              private static final long serialVersionUID = 1L;
  
              @Override
              public void onSubmit() {
                  super.onSubmit();
              }
          });
  
      add(feedBackPanel);
      add(form);
      form.add(name);
      form.add(age);
      form.add(email);
      form.add(zipcode);
  
      }
  
  }
  </code></pre>
  
  <p>I am getting below error :</p>
  
  <pre><code>Apache Wicket error : Class does neither have a constructor with PageParameter nor a default constructor
  </code></pre>
  
  <p>Is there something I am missing? obviously this class has a constructor so I am not sure what the problem is?</p>