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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:15:53+00:00 2026-06-16T00:15:53+00:00

I have a problem with java primefaces, I have my xhtml as follows; <p:layoutUnit

  • 0

I have a problem with java primefaces,

I have my xhtml as follows;

<p:layoutUnit position="center">
            <h:form>
                <p:dataTable id="dataTable" var="car" value="#{myProjects.projects}" sortMode="multiple" rows="25" paginator="true">
                    <f:facet name="header">
                        Dahil Olduğum Projeler
                    </f:facet>

                    <p:column id="modelHeader" sortBy="#{projectsList.sector}">
                        <f:facet name="header">
                            <h:outputText value="Sektör" />
                        </f:facet>
                        <h:outputText value="#{projectsList.sector}" />
                    </p:column>

                    <p:column sortBy="#{projectsList.projectName}">
                        <f:facet name="header">
                            <h:outputText value="İşin Adı" />
                        </f:facet>
                        <h:outputText value="#{projectsList.projectName}" />
                    </p:column>

                    <p:column sortBy="#{projectsList.startDate}">
                        <f:facet name="header">
                            <h:outputText value="Başlangıç Tarihi" />
                        </f:facet>
                        <h:outputText value="#{projectsList.startDate}" />
                    </p:column>

                    <p:column sortBy="#{projectsList.endDate}">
                        <f:facet name="header">
                            <h:outputText value="Bitiş Tarihi" />
                        </f:facet>
                        <h:outputText value="#{projectsList.endDate}" />
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Son Durum" />
                        </f:facet>
                        <h:outputText value="#{projectsList.lastStats}" />
                    </p:column>
                </p:dataTable>

            </h:form>


        </p:layoutUnit>

And also I have my MyProjects java file:

@ManagedBean(name="MyProjects")
@SessionScoped
public class MyProjects implements Serializable {

    private List<ProjectsList> projects;

    public MyProjects(){
        projects=new ArrayList<ProjectsList>();
    projects.add(new ProjectsList("asd","asd","asd","asd","asd"));
    projects.add(new ProjectsList("asd","asd","123","123","123"));
    projects.add(new ProjectsList("asd","asd","123","123","123"));
    projects.add(new ProjectsList("asd","asd","123","123","123"));
} 

public List<ProjectsList> getProjects(){
    projects.get(0);



       return projects;
    }


}

When I want to see the rows in datatable I (for example here I have added 4 entries) I only see 4 rows without text in it.

How can I make the entries visible?

Thanks in advance.

  • 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-16T00:15:54+00:00Added an answer on June 16, 2026 at 12:15 am

    <h:outputText value="#{projectsList.sector}" /> should be <h:outputText value="#{car.sector}" /> (and similar for all EL expression in your table. As defined in the “var” property of the datatable.

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

Sidebar

Related Questions

I have problem with google map Loading and making center in my java script
I have a h:dataTable that displays ProfileNotification like below: <h:dataTable value=#{myBean.profileNotifications} var=item rendered=#{myBean.renderProfileNotification}> <h:column>
I have a simple problem. I have a Primefaces Datatable. When the user clicks
So I have a problem where Java is telling me that the following line
Good evening ladies and gentlemen, I have a problem with Java Swing that I
I have a problem with my Java progam suddenly exiting, without any exception thrown
I recently have a problem that my java code works perfectly ok on my
I am new to Java. I have problem to understand the relation between anonymous
Possible Duplicate: Java - Regex problem I have list of URLs of types: http://www.example.com/pk/etc
I have a weird problem with a Java Gregorian Calendar: SimpleDateFormat sdf = new

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.