Search code examples
jsfwebkitrichfaces

Rich:DataTable sorting breaks when row contains h:commandLink


I have a rich:dataTable with sorting. Each row in the table has a h:commandlink through to another page. This works fine in all non webkit browsers.

When sorting by clicking the header the contents of the table is cleared and the following error is displayed in the Chrome JavaScript console:

Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9

This appears to be a known issue (https://issues.jboss.org/browse/RF-6096) but without any solution.


Solution

  • I have found that using:

    <a4j:commandLink ... />
    

    instead of

    <h:commandlink .../>
    

    Resolves all issues with the table sorting.

    (I could not log in to the JBoss issue tracker to add this comment, so if you have access and this works for you please add a comment.)