7 Replies Latest reply on Apr 19, 2007 12:46 PM by Sergey Smirnov

    rich:column and a4j:commandLink issues... (sorting rich:data

    todd brown Newbie

      Quite simply the a4j:commandLInk is not working when being fired from inside the rich:column. If I change the table implmentation to h:dataTable and h:column it works fine. ALSO if I move the link to outside the rich:dataTable it works as well. I am thinking there must be a conflict somewhere...

      jsf 1.2_03
      facelets 1.1.12
      a4j 1.5
      rich face 3.0.0
      tomcat 6.0.0


      if I add onsubmit and oncomplete handlers to the commandLink the onsubmit fires while the oncomplete doesn't.

      Fidler shows that the request is being made to the server, and that there are no componets to update:

      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      X-Powered-By: JSF/1.2
      Set-Cookie:
      Ajax-Update-Ids:
       Ajax-Response: true
      Cache-Control: no-cache, must-revalidate, max_age=0, no-store
      Expires: 0
      Pragma: no-cache
      Content-Type: text/xml;charset=UTF-8
      Content-Length: 670
      Date: Wed, 18 Apr 2007 15:56:41 GMT
      
      <?xml version="1.0"?>
      <html xmlns="http://www.w3.org/1999/xhtml"><head><link type="text/css" rel="stylesheet" href="/ExecutionMonitor/a4j.res/org/richfaces/renderkit/html/css/table.xcss/DATA/eAGz-yBjAQAEPAGD.xhtml" /><script type="text/javascript" src="/ExecutionMonitor/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.xhtml">
      </script><meta name="Ajax-Update-Ids" content="" /><title></title><meta id="Ajax-Response" name="Ajax-Response" content="true" /></head><body><span id="ajax-update-ids"><input type="hidden" name="jsf_sequence" value="1" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id7:j_id9" /></span></body></html>


      Snippet of source for the column (like I siad it works if it is from teh jsf/html package)...

      <rf:column id="${columnId}" width="${width}" headerClass="${headerClass}" onlclick="${onlclick}">
       <f:facet name="header">
       <h:panelGroup id="${columnId}pg">
       <a4j:commandLink id="#{columnId}srt" action="#{actionBean[sortMethod]}" reRender="${tableId}" >
       <h:outputText value="${title}" styleClass="${class}" id="#{columnId}colHead" />
       <a4j:actionparam id="#{columnId}srtBy" name="sortBy" value="${cellProperty}" assignTo="${actionBean[sortBy]}"/>
       </a4j:commandLink>
       </h:panelGroup>
       </f:facet>