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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:50:24+00:00 2026-05-23T01:50:24+00:00

I have a problem with my datatable, I want display the information of a

  • 0

I have a problem with my datatable, I want display the information of a datatable’s row when selecting it, for that I created a value called currentChangerStatus I wanted to set it to the current selection, here is my code:

<p:dataTable id="projets"  var="p" value="#{projet.init()}" rowSelectListener="#{projet.currentChangerStatus(currentChangerStatus)}" selectionMode="single" onRowSelectStart="datecreation">  

                                    <f:facet name="header">  
                                            Listes des projets Gpsi  
                                        </f:facet>  

                                        <p:column>  
                                            <f:facet name="header">  
                                                <h:outputText value="Code" />  
                                            </f:facet>  
                                            <h:outputText value="#{p.projets.codeProjet}" />  
                                        </p:column>  

                                        <p:column>  
                                            <f:facet name="header">  
                                                <h:outputText value="Intitulé" />  
                                            </f:facet>  
                                            <h:outputText value="#{p.projets.libelle}" />  
                                        </p:column>  


                                    </p:dataTable>  

the bean:

 public void setCurrentChangerStatus(ChangerStatus currentChangerStatus)
{
    this.currentChangerStatus=currentChangerStatus;
}
  public ChangerStatus getCurrentChangerStatus()
{
        return currentChangerStatus;
    }

the problem is that the datable is not accepting this expression :

rowSelectListener="#{projet.currentChangerStatus(currentChangerStatus)}"
  • 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-23T01:50:24+00:00Added an answer on May 23, 2026 at 1:50 am

    This is other way to display the information of a datatable’s row.

    <p:dataTable>
    .....
    .....
       <p:column>
        <p:commandLink update="xhtmlElementID" title="View Detail"  >
                         <p:graphicImage value="/images/search.png" />
                       <f:setPropertyActionListener value="#{p}" target="#{project.SomeObject}" />
             </p:commandLink>
    </p:column>
    </p:dataTable>
    

    here target=”#{project.SomeObject}” is the Data to be updated when you cleck on command link

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

Sidebar

Related Questions

I have a very simple C# DataTable problem that I cannot seem to wrap
I have a dataGridView whose dataSource is a dataTable. My problem is that I
I have an application that needs to display a set of rows that is
I have created WPF MVVM application, and set WPFToolkit DataGrid binding to DataTable so
I have a <ice:dataTable> and I want to add a checkbox to each row.
I have a DataTable that will be modified by the user. I want to
I have a datatable and I want to filter this table with a company
I have a DataTable that I'm trying to enumerate over with the AsEnumerable extension
my DataTable has over 1000 columns and I want to display values on the
I have the following problem: In my data model I have a class called

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.