title: JSF p:commandLink and p:ajax have different behavior in update
body: <p>I have a menu with list items and a <code>p:commandLink</code> inside. While using this for different pages I realized that I have problems updating form with a <code>p:dataTable</code> and <code>p:columns</code> inside. After clicking on the link, <code>form2</code> which actually has some panels and the table inside should be updated. Now my problem: Only <em>most</em> of the content in  <code>form2</code> is updated correctly, but the <code>p:columns</code> have the <em>old</em> value. If I click again on the link, the correct values are shown.</p>
  
  <p>The bean method <code>public void selectProject(Project myProject)</code> is called correctly and the values are correctly processed.</p>
  
  <p>Now the strange thing: If I add a <code>h:graphicImage</code> with a <code>p:ajax</code> everything works fine!!</p>
  
  <pre><code>&lt;h:form id="form1"&gt;
    ...
    &lt;li&gt;
      &lt;p:commandLink update=":form2" actionListener="#{bean.selectProject(p)}"&gt;  
        &lt;h:outputText value="#{p.name}" /&gt;
      &lt;/p:commandLink&gt;
      &lt;!-- Code below is for testing only, but works fine! --&gt;
      &lt;h:graphicImage value="#{iconBean.icon(12,'clock')}"&gt;
        &lt;p:ajax event="click" update=":form2" listener="#{bean.selectProject(p)}"/&gt;
      &lt;/h:graphicImage&gt;
    &lt;/li&gt;
    ...
  &lt;/h:form&gt;
  </code></pre>
  
  <p><strong>Update</strong> This does not seem to be related to <code>p:columns</code>, a simplified test case shows the expected behavior of <code>p:commandLink</code>. In the original (still failing) setting the menu is implemented as a composite component.</p>