Primefaces put Filter in the footer instead of the header

Asked

Viewed 383 times

1

  • Luídne had answered here but deleted and I think that’s right: "You can add the filterPosition="bottom" attribute in your <p:column>."

  • Unfortunately filterPosition positions the filter just below or above the headerText and not in the column footer.

1 answer

0

Try to put the prime Facet inside the footer tag, like this:

<footer>
  <f:facet name="header">
            <p:outputPanel>
                <h:outputText value="Pesquisar por: " />
                <p:inputText id="globalFilter" onkeyup="PF('widgetVarDaSuaTabela').filter()" style="width:150px" placeholder="Digite aqui"/>
            </p:outputPanel>
        </f:facet>
</footer>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.