2 Replies Latest reply on Aug 21, 2009 3:56 PM by gunhed

    Links in rich:column of my rich:dataTable are removed when c

    gunhed

      Hi all,

      I use :

      Jboss 4.2.3
      Seam 2.0.2GA
      Facelet
      Riches Faces 3.3.1

      I also had the probleme with richfaces 3.1.4

      I have this dataTable code:

      <rich:dataTable
      id="resultListId"
      var="client_entry"
      cellpadding="5"
      value="#{selectionsList}"
       styleClass="fondTableSearch"
      rendered="#{selectionsList.size>0}"
      rows="4" width="708px"
      classes="fondRowSearch"
      columnClasses="fondColSearch"
      border="0">
      
      <rich:column>
      <h:outputLink id="lidtest" value="#"
       rendered="#{client_entry != null}" onclick="Richfaces.showModalPanel('panel_destAction');"
      style="text-decoration:none;">
      
      <f:param name="userId" value="#{client_entry.username}"/>
      <table>
      <tr>
      <td>
      <img src="img/pictos/edit_document_icon_y.gif" alt="Envoyer" title="Message !" border="0" />
       </td>
      <td>Write</td>
      </tr>
      </table>
      </h:outputLink >
      
      </rich:column>
      <rich:column>
       <h:outputText value="#{client_entry.text}" />
      </rich:column>
      
      </rich:dataTable>
      
      <rich:datascroller for="formPaginationResultsId:resultListId" maxPages="5" rendered="#{selectionsList.size>0}" />
      
      


      First my list displays my link well . When I see generated code with firebug I get (for the link only):

      <a style="text-decoration: none;" onclick="Richfaces.showModalPanel('panel_destAction'); href="#?userId=pergola" name="formPaginationResultsId:resultListId:0:sendMessageId"
      id="formPaginationResultsId:resultListId:0:sendMessageId">
       <table><tbody><tr><td>
       <img border="0" title=" Envoyer" alt=" Message!" src="img/pictos/edit_document_icon_y.gif"/>
       </td><td>Ecrire</td></tr></tbody></table></a>



      Then when I go on page 2 with my datascroller, and for unknown reason my link has been removed. (When I check generated code with firebug : It shows :
      <a id="formPaginationResultsId:resultListId:4:sendMessageId" name="formPaginationResultsId:resultListId:4:sendMessageId" href="#?userId=rosa" onclick="Richfaces.showModalPanel('panel_destAction');" style="text-decoration: none;"/> (table code is after ...)


      It eliminated the closing tag
      </a>
      !

      Does someone had already encountered this issue ? If anyone has an idea .. Thank you by advance ...

      Nicolas