I have the follwing datatable structure:
<p:dataTable editable="true" editMode="cell"..>
<p:column headerText="value_1">
<p:cellEditor>
<f:facet name="output">
<h:outputText ...
</f:facet>
<f:facet name="input">
<p:inputText ....
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="value_2">
<p:cellEditor>
<f:facet name="output">
<h:outputText ...
</f:facet>
<f:facet name="input">
<p:inputText ....
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="action">
<p:commandButton tabindex="-1"...
</p:column>
The problem is that the last column breaks the tab-navigation. I can tab from column1 to column2 but cannot reach the next row. When I remove the last column everything works as expected. I want a tab-behaviour like this:
row1_column1 -> row1_column2 -> row2_column1 -> row2_column2 -> ....
I also tried to remove tabindex="-1"
and use a p:cellEditor
in the third column, but the behaviour stays the same, I can only tab in row1.
What am I missing?
I'm using Primefaces version 6.0