title: JSF Ajax updates makes commandLink fails at the first click
body: <p>In my JSF page I have a combobox that updates a table when an item of the combobox is selected.</p>
  
  <p>The table contains items with an edit link.</p>
  
  <p>The problem is when the table is changed by the combobox you need to click twice on the link to go to the page. The first click just refresh the page. </p>
  
  <p>Here is the xhtml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
      &lt;body&gt;
          &lt;ui:composition template="/template.xhtml"&gt;
              &lt;ui:define name="windowTitle"&gt;Comment packages&lt;/ui:define&gt;
              &lt;ui:define name="content"&gt;
                  &lt;h3&gt;Select the package to comment.&lt;/h3&gt;
                  &lt;h:form prependId="false"&gt;
                      Section:
                      &lt;h:selectOneMenu id="selectSection" value="#{platformService.currentSection}"&gt;
                          &lt;f:ajax render=":list-packages" /&gt;
                          &lt;f:selectItems value="#{platformService.releasePlatform.sections}" /&gt;
                      &lt;/h:selectOneMenu&gt;
                  &lt;/h:form&gt;
                  &lt;p/&gt;
                  &lt;h:panelGroup id="list-packages"&gt;
                      &lt;h:dataTable id="packageList" var="package" value="#{packageService.packages}" border="1" &gt;
                          &lt;h:column&gt;
                              &lt;f:facet name="header"&gt;Package name&lt;/f:facet&gt;
                              #{package.name}
                          &lt;/h:column&gt;
                          &lt;h:column&gt;
                              &lt;h:form&gt;
                                  &lt;h:commandlink action="#{commentService.commentPackage}" value="Comment"&gt;
                                      &lt;f:param name="packageName" value="#{package.name}" /&gt;
                                  &lt;/h:commandLink&gt;
                              &lt;/h:form&gt;
                          &lt;/h:column&gt;
                      &lt;/h:dataTable&gt;
                  &lt;/h:panelGroup&gt;
              &lt;/ui:define&gt;
          &lt;/ui:composition&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I've also tried with commandButton but you also need to click twice on the button.</p>
  
  <p>I'm running JSF 2.0.1-FCS in Maven/Jetty.</p>