简体   繁体   中英

Data Table filter on Prime faces

I have code below form. . i wanted to search globally. please suggest me how can i do it

            <p:ajax event="rowSelect" listener="#{employeeCategoryBean.onRowSelect}" />
            <p:ajax event="contextMenu" listener="#{employeeCategoryBean.onRowSelect}" />

            <f:facet name="header">  
                      <p:outputPanel>  
            <h:outputText value="Search all fields:" />  
            <p:inputText id="globalFilter" onkeyup="modelTable.filter()" style="width:150px" />  
        </p:outputPanel>  
                </f:facet>

            <p:column headerText="Name">
                    #{model.name}
                </p:column>

            <p:column headerText="Prefix">
                    #{model.prefix}
                </p:column>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM