title: Wicket open Bookmarkable page on new tab
body: <p>I have a <code>WebPage</code> in Wicket with <code>PageParameters</code> so that it could be used via <code>BookMarkablePageLink</code>.</p>
  
  <p>I can open it also giving:</p>
  
  <pre><code> setResponsePage(MyPage.class, params);
  </code></pre>
  
  <p>, but what I cannot do is open it similar way as a new tab.</p>
  
  <p>I use a form and there in <code>onSubmit()</code> -method I want to call the page and place it to tab. I cannot figure out how I could</p>
  
  <blockquote>
    <p>a) validate form<br/>
      b) open the page on successful validation<br/>
      c) page appearing in a new tab.</p>
  </blockquote>
  
  <p>How to make the part <code>c</code>? I know how to validate and open page, please help me about the opening to a tab.</p>
  
  <p>For the form I give <code>target="_blank"</code>, but did not help, maybe due the fact of using the <code>setResponsePage()</code> method.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>This is not a duplicate of <a href="https://stackoverflow.com/questions/18121236/wicket-how-to-open-new-tab-when-button-is-clickd">Open new Tab when button is clicked</a> because none of solutions worked. </p>
  
  <p>Page is opened in <code>AjaxSubmitLink</code>'s <code>onSubmit()</code> method with <code>setReponsePage()</code>. I have to validate form before sending, thus direct Bookmarkable link or form is not a case. Adding to tag <code>target="_blank"</code> works if you directly open after click. I have to validate first and then I try to set the response page like stated above.</p>