2013-08-01 19 views
0

我有下面的代碼形式。 。我想全球搜索。請建議我如何能做到這一點總理臉上的數據表過濾器

  <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> 
+0

做? http://www.primefaces.org/showcase/ui/datatableFiltering.jsf –

+0

我認爲@Uday想要這個:http://stackoverflow.com/a/10702116/617373 – Daniel

+0

@丹尼爾我hav follwed該鏈接也不是加工。你可以發送完整的代碼 – Uday

回答