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

  • Home
  • SEARCH
  • 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 6689705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:33:02+00:00 2026-05-26T05:33:02+00:00

Hi I am using Primefaces 3.0.M and it’s data table. I have set it

  • 0

Hi I am using Primefaces 3.0.M and it’s data table.

I have set it to use in-line edition, but know I need to persist my data after it’s been modified, so I figured rowEditListener would do it.

But when I do this it says rowEditListener is not a defined in the interface of the component, and I cannot find any doc about this..

<p:dataTable var="car" value="#{carBean.cars}"
rowEditListener="#{carBean.onEditRow}">

Anyone ? is there another solution to call a method after edition mode is done in the in-line editor ?

Thanks !

  • 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-05-26T05:33:02+00:00Added an answer on May 26, 2026 at 5:33 am

    In primefaces 3.0.M3 it should be done using ajax like this

    <p:dataTable var="user" value="#{userController.allUsers}" id="userList">  
    <p:ajax event="rowEdit" update="@this" listener="#{userController.onEditRow}" />
    

    Instead of using the old rowEditListener, and there should be a method taking RowEditEvent as a parameter in your managed bean

    public void onEditRow(RowEditEvent event) {
        User nutzer = (User) event.getObject();                 
    
        User user = userFacade.find(nutzer.getId());
    
        user.setName(nutzer.getName());
        user.setLogin(nutzer.getLogin());
    
        userFacade.edit(user);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using primefaces datatable. How to set width when the table is empty
I have correctly set up a Push server using PrimeFaces p:push component (using a
I'm using primefaces' accordion panel. Inside the tabs i have forms which are created
I have a modal ConfirmDialog that is shown over a modal Dialog using PrimeFaces
I'm using primefaces and jstl to loop a datatable.I have a List in backing
Simple question (using JSF 2.0 and primefaces 2.2.1): I need to create a button
Primefaces Datatable let you configure the filtering type you use for a column, using
I want to dynamically load images from a database withing a PrimeFaces data table.
I'm using JSF 2.0 and PrimeFaces library. I have a page with several inputs
I have a inputTextarea that I refresh using PrimeFaces' AJAX poll. When the inputTextarea

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.