p:commandLink is calling row selection with selectRow=false
Posted: 30 Jan 2018, 15:26
Dear support team,
I've got the following component structure:
In general the row selection and the disabling of selecting a row in spezified columns works as expected.
In the first column I've got this content:
If I click somewhere in the cell in the first column everything is ok, nothing happend because of disabled row selection for this column. If I hit the Icon (span node) which means clicking the commandLink the command action is called first and the event is being forwarded to datatable row selection as well. So the selection is done as well - and this is not as expected!
Is there a way to prevent p:commandLink form passing the click to the dataTable row or is it just a bug in implementation of disabling the row selection in the p:columns component?
Thanks in advance.
It is PrimeFaces 6.1 with CDI on a JBoss EAP.
Lars
I've got the following component structure:
Code: Select all
<p:dataTable ... >
<p:ajax
event="rowSelect"
listener="#{....}">
</p:ajax>
<p:columns
...
selectRow="true/false depending on column content">
..Content of columns..
</p:columns>
</p:dataTable>
In the first column I've got this content:
Code: Select all
<h:form ... >
<p:commandLink
....
immediate="true"
update="...">
<h:panelGroup >
<span
id="cb_searchResultSelected"
class="fa ..." />
</h:panelGroup>
</p:commandLink>
</h:form>
Is there a way to prevent p:commandLink form passing the click to the dataTable row or is it just a bug in implementation of disabling the row selection in the p:columns component?
Thanks in advance.
It is PrimeFaces 6.1 with CDI on a JBoss EAP.
Lars