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 7188763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:09:19+00:00 2026-05-28T19:09:19+00:00

I am working on a sample app with primefaces 3 , using datatables incell

  • 0

I am working on a sample app with primefaces 3 , using datatables incell editing mode. Although when i edit , i see the event.getObjects gives me the object which is not modified.

Changed the property of the object on debug mode, it does update.

So i couldn’t figure out why i cant get the edited property.

Below are my eventlistener method and the xhtml;

Any pointers are welcomed

Thanks in advance

EventListener

public void editListener(RowEditEvent event){
    System.out.println("EDIT LISTENER");
    update((Employer)event.getObject());

}

JSF :

   <h:form id="form">
                <h1><h:outputText value="List"/></h1>
                <p:dataTable value="#{employer.employers}" var="item" paginator="true" rows="10" style="width:300px">
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Id"/>
                        </f:facet>

                        <h:outputText value="#{item.id}"/>
                    </p:column>
                    <p:column headerText="Name">
                        <p:cellEditor>
                            <f:facet name="output">
                                <h:outputText value="#{item.name}"/>
                            </f:facet>
                            <f:facet name="input">
                                <p:inputText value="#{item.name}"></p:inputText>
                            </f:facet>
                        </p:cellEditor>
                    </p:column>
                    <p:column>

                        <f:facet name="header">
                            <h:outputText value="Surname"/>
                        </f:facet>
                        <h:outputText value="#{item.surname}"/>

                    </p:column>
                    <p:column>

                        <f:facet name="header">
                            <h:outputText value="Phone"/>
                        </f:facet>
                        <h:outputText value="#{item.phone}"/>

                    </p:column>
                    <p:column>

                        <f:facet name="header">
                            <h:outputText value="Email"/>
                        </f:facet>
                        <h:outputText value="#{item.email}"/>

                    </p:column>
                    <p:column headerText="Options" style="width:50px">
                        <p:rowEditor />
                    </p:column>
                    <p:ajax event="rowEdit" listener="#{employer.editListener}"></p:ajax>
                </p:dataTable>
            </h:form>
  • 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-28T19:09:19+00:00Added an answer on May 28, 2026 at 7:09 pm

    After this…

    <p:dataTable value="#{employer.employers}" var="item" paginator="true" 
        rows="10" style="width:300px">
    

    …put the following:

    <p:ajax event="rowEdit" update="@this" listener="#{HandlerClassName.rowEditListener}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a simple budget app using Sinatra and DataMapper in Ruby.
When working on the Hello, Gallery tutorial/sample app, after following the instructions on the
I'm a complete newb to Django working on a sample app. It appears that
I am working with Bluetooth Chat sample code. In sample app the Device opens
I have developed a sample app, which uses Facebook features, and it is working
My sample Facebook app was working great yesterday in Chrome. The page integrates Silverlight
In my sample app, I'm drawing a view using a Canvas and GestureDetector. For
I have successfully integrated the in app sample in my project and its working
I developing Barcode Scanner sample app in iPhone. Am using ZBar framework in iphone,
I am working on a simple app in Sinatra with DataMapper. I want 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.