title: JSF h:commandLink JavaScript error
body: <p>I am using JSF 2.0 tag <code>&lt;h:commandLink&gt;</code> and I'm trying to open an window with <code>target</code> as <code>_blank</code>. In the target I am trying to populate the document which was fetched from the server. But while doing so I am getting an error in jsf.js (function name is <code>jsfcljs</code>) at <code>f.submit()</code>.</p>
  
  <p>Declaration is as follows:</p>
  
  <pre><code>&lt;h:commandLink id="viewDocument" value="#{template.orderBean.documentBean.documentName}"
                 action="#{template.viewCustomDocument}" target="_blank" styleClass="textbold"&gt;
      &lt;f:param name="documentId" value="#{template.orderBean.documentBean.documentId}"/&gt;
  &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>The error I got is </p>
  
  <blockquote>
    <p>Object doesn't support this property.</p>
  </blockquote>
  
  <p>If I use <code>&lt;h:commandButton&gt;</code> instead then I am able to call the server and fetch the document.</p>
  
  <p>What can the problem cause be?</p>