title: How to check if a request is GET or POST in Wicket?
body: <p>Currently I use following way to check if a request is GET or POST in Wicket WebPage:</p>
  
  <pre><code>public DummyPage(PageParameters pageParameters) {
      super(pageParameters);
  
      final WebRequest wr = (WebRequest) getRequest();
      final HttpServletRequest hsr = wr.getHttpServletRequest();
      if (hsr.getMethod().equalsIgnoreCase("post")) {
      }
  }     
  </code></pre>
  
  <p>Is there better way to do so?</p>