5 Replies Latest reply on Sep 22, 2008 11:10 AM by roku

    Tomahawk data table header a4j:commandLink - ajaxSingle=true

    roku

      If I use a a4j:commandLink with ajaxSingle set to true inside the header facet of a tomahawk datatable , no re-rendering is done. If I set it to false, everything is false. Is that a problem on my side or is it a bug?

      <html
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:t="http://myfaces.apache.org/tomahawk"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:p="http://www.neo-partners.com/psa/facelets">
      
      <body>
      
      
       <h:form >
       <t:dataTable id="persons" value="#{personBean.resultPageBeans}"
       var="resource" styleClass="datatable"
       headerClass="datatable-header"
       rowClasses="datatable-row-even, datatable-row-odd"
       rowIndexVar="planningResourcesTableRowIndex"
       sortColumn="#{personBean.sortPropertyName}"
       sortAscending="#{personBean.sortAscending}"
       preserveSort="false" renderedIfEmpty="false"
       forceIdIndexFormula="#{resource.id}">
      
       <h:column>
       <f:facet name="header">
      
       <a4j:commandLink value="test" reRender="persons" ajaxSingle="true" actionListener="#{personBean.handleNew}">
       </a4j:commandLink>
       </f:facet>
      
       <h:panelGrid columns="1">
       <h:inputText id="firstName" tabindex="#{tabIndexBean.nextIndex}"
       value="#{resource.firstName}" required="true" />
       <t:message for="firstName" styleClass="error" />
       </h:panelGrid>
      
       </t:dataTable>
       </h:form>
      </body>
      
      </html>