title: Liferay + JSP + AlloyUI: Button as link and submit
body: <p>I use Liferay 6.2 on JBoss 7.1.1.
  Also I am using a JSP as view with AlloyUI.</p>
  
  <p>I want a button as a link and as a submitter of a value to a method in the MVCPortlet class.
  The link is inside a java array.
  The attribute that is passed to the java method is inside a input field.</p>
  
  <p>It works if I use just one of this two.
  I tried to combine them but it doesn't work.
  I tried this:</p>
  
  <pre><code>&lt;a href="&lt;%=unread[i][k]%&gt;" target="_blank" &gt;
  &lt;aui:button type="submit" /&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>It calls the method but it doesnt opens a new tab in my browser. In my browser I can see that it is a link, if I click right on it -> new tab, it opens it correctly in a new tab. But not if I just click on the button.
  Second way:</p>
  
  <pre><code>&lt;aui:button type="submit" onclick="window.open('http://www.google.de', '_blank', ''); return false;"/&gt;
  </code></pre>
  
  <p>It just opens google but doesn't calls the method. Also it is not possible to get an Java attribute inside of a Javascript, but I could get the value out of a hidden input field. But still there would be the problem that it doesn't call the method.</p>