Well, i have two commandLinks, see:
<h:commandLink action="#{cursoDetalheMB.deletarPagina()}"
title="clique para deletar a página">
<i class="fa fa-trash"></i>
<f:ajax execute="@this" render="depCursoDetalhe:frmcursoDetalhe:depbCursoDetalhe:tabPaginas" />
</h:commandLink>
<h:commandLink action="#{cursoDetalheMB.selecionarPagina()}"
title="clique para ver a página">
<i class="fa fa-pencil-square-o fa-fw"></i>
</h:commandLink>
Both within a h:form. When i click in second button everything works fine (the action is called and page is redirected), but if i click in first button and after in second button nothing happens, because of f:ajax in first button.
If i put this in second button :
<f:ajax execute=@this />
Everything works fine, but i don't know why. Another solution is change to this in first button:
<f:ajax execute="@this" render="@form" />
Works fine too but the TAB changes and i don't wanna this.