Closed yanLanglois closed 9 years ago
h/p should already be working in the latest version. See #14. I did not test a4j/r so maybe those don't work.
With the last release: 1.0.2.Final. I used a4j:commandLink in the rich:column header like this:
<rich:dataTable id="...">
<rich:column sortBy="..." sortOrder="...">
<f:facet name="header">
<a4j:commandLink value="..." action="..." />
</f:facet>
<h:outputText value="..." />
</rich:column>
...
</rich:dataTable>
And I got this information on the excel sheet:
I just checked the RichFaces 5.x JavaDoc. The problem is that UICommandLink does not extend HtmlCommandLink. The PrimeFaces commandLink implementation does extend HtmlCommandLink, which is why that works.
The best way to fix this is probably to change CommandLinkFormatter so it handles UICommand instead of HtmlCommandLink. That would make it work for the RichFaces components, as well as h/p:commandButton (which would resolve #15).
Fixed in 1.0.3.Final, which should be in Maven Central shortly.
"a4j:" for richfaces 4x "r:" for richfaces 5.x