Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:20:23+00:00 2026-06-10T12:20:23+00:00

I am trying to apply filter on my datatable but i don’t why it

  • 0

I am trying to apply filter on my datatable but i don’t why it is not working.I have checked all the things again and again but still it is not working and even not showing any error or exception.Here is my code
page.xhtml

<p:dataTable id="masterResult" value="#{masterSearch.masterSearchResultList}" var="srvc" 
                             styleClass="display" style="cursor:pointer;" rows="6" 
                             paginator="true" rowsPerPageTemplate="5,10,15" paginatorAlwaysVisible="false" paginatorPosition="bottom"
                             widgetVar="viewTable" filteredValue="#{masterSearch.filterMasterSearchResult}">
                                
                                <p:column filterBy="#{srvc.serviceNumber}"  
                                                headerText="Service Number"
                                                filterMatchMode="endsWith">  
                                        <h:outputText value="#{srvc.serviceNumber}"/>  
                                </p:column>
                                
                                <p:column headerText="Rank">
                                #{srvc.rank}
                                </p:column>
                                
                                <p:column headerText="Name">
                                #{srvc.name}
                                </p:column>
                                         
                                <p:column headerText="Course">
                                #{srvc.course}
                                </p:column>
                                         
                                <p:column headerText="Unit">
                                #{srvc.unit}
                                </p:column>
                                         
                                <p:column headerText="Relation">
                                #{srvc.relation}
                                </p:column>
                            </p:dataTable>

Here I am getting the values properly but when I write anthing in filter text field (showed by primefaces)it won’t work.
Please help if anyone get idea about this
Thanks

Edit:

public class MasterSearch {
    
    String serviceNumber;
    String rank;
    String fullName;
    String CNICNumber;
    String phoneNumber;
    String emailAddress;
    List<MasterSearchResult> masterSearchResultList;
    List<MasterSearchResult> filterMasterSearchResult;

               // getter 
               //  setters
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:20:24+00:00Added an answer on June 10, 2026 at 12:20 pm

    Remove this part : filteredValue="#{masterSearch.filterMasterSearchResult}"

    check my sample from here : https://dl.dropbox.com/s/v3ihl25aozt8qyn/mavenproject.zip?dl=1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to apply smoothing filter to image . But I get this
I'm trying to apply a Kalman Filter to sensor readings using Java, but the
I have a filter that would like to apply to all controllers except for
I'm trying to apply a tooltip to a toolstripbutton but it keeps giving me
I'm trying to apply a DASL Filter [customized View] on a search Folder with
Trying to use CIColorMap filter, but getting run-time error [NSImage _feImage]: unrecognized selector sent
I am trying to create a line-by-line filter in python. However, stdin.readlines() reads all
I am trying to apply more than three filter criteria on Query. I came
I'm trying to apply cursor to my app, however, the document is not clear
I am trying to apply a filter to a Map. The intention is to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.