Find Jobs
Hire Freelancers

bugfix - PrimeFaces Datatable with inputText and selectBooleanCheckbox refresh correctly

€8-30 EUR

Closed
Posted over 3 years ago

€8-30 EUR

Paid on delivery
Hi all, on my frontend I have a p:dataTable with several columns (many of that are outputText, but some are p:inputText and p:selectBooleanCheckbox). When I filter the list of elements using the header filter of the column to save only few elements to database, the header filters are cleaned. So I solved this problem using filterValue="#{[login to view URL]}" in p:column, but when the p:dataTable is updated the editable components like p:inputText and p:selectBooleanCheckbox are not updated correctly, however if I change the filters the p:dataTable is update and the editable fields shows the correct values, THI HAPPENS ONLY IF I CHANGE THE FILTER VALUES This is the XHMTL code: <p:dataTable id="trips-table" widgetVar="trips-table" first="#{[login to view URL]}" rowIndexVar="tripIdx" rowKey="#{[login to view URL]}" var="trip" value="#{[login to view URL]}" filteredValue="#{[login to view URL]}" paginator="true" paginatorPosition="top" rows="15" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {Exporters} {RowsPerPageDropdown}"> <!-- ManyColumns --> <p:column headerText="#{text['[login to view URL]']}" filterBy="#{[login to view URL]}" filterMatchMode="contains" filterValue="#{[login to view URL]}" sortBy="#{[login to view URL]}"> <p:inputText value="#{[login to view URL]}" title="#{[login to view URL]}" /> </p:column> </p:dataTable> filteredTrips in TripList (bean) is defined as List<Map> and tableFilters is defined as Map tableFilters = new HashMap<>(); I ma looking for anyone can help me to fix it.
Project ID: 28000346

About the project

2 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of ITALY
reggio emilia, Italy
5.0
2
Payment method verified
Member since Feb 6, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.