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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:58:36+00:00 2026-05-31T17:58:36+00:00

I can not figure out why my rich:dataTable is not rendering. I am using

  • 0

I can not figure out why my rich:dataTable is not rendering. I am using JSF 2 and Richfaces 4. URL is http://localhost:8080/contacts-as7/me2.jsf?sitecode=0Z56, but it behaves the same without the sitecode parameter.

Here is the view

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:rich="http://richfaces.org/rich"
  xmlns:a4j="http://richfaces.org/a4j">

<h:head>
  <title>contacts</title>
</h:head>

<f:metadata>
  <f:viewParam name="sitecode" value="#{contactView.siteCode}" />
  <f:event listener="#{contactView.retrieve056}" type="preRenderView"></f:event>
</f:metadata>

<h:form>
  <h:messages />

  <rich:panel rendered="#{not empty contactView.doors}">
    <f:facet name="header">
      <h:outputText value="Site Code #{contactView.doors.siteCode}" />
    </f:facet>
    <h:panelGrid columns="1">
      <h:outputText
        value="Report corrections to your DOORS administrator" />
      <h:outputText id="nm1" value="#{contactView.doors.name}" />
      <h:outputText id="pgr1" value="#{contactView.doors.pager}" />
      <h:outputText id="adr1" value="#{contactView.doors.addr1}" />
      <h:outputText id="adr2" value="#{contactView.doors.addr2}"
        rendered="#{not empty contactView.doors.addr2}" />
      <h:outputText id="csz"
        value="#{contactView.doors.city}, #{contactView.doors.state} #{contactView.doors.zip}" />
    </h:panelGrid>
  </rich:panel>

  <rich:dataTable value="#{contactView.doors.alternateList}" var="_xyz">
    <h:panelGrid columns="1">
      <h:outputText id="nm11" value="#{_xyz.name}" />
      <h:outputText id="pgr11" value="#{_xyz.phone}" />
      <h:outputText id="adr11" value="#{_xyz.pager}" />
      <h:outputText id="adr21" value="#{_xyz.comment}" />
    </h:panelGrid>
  </rich:dataTable>

</h:form>

</html>

Here is my view bean

@Named
@ViewScoped
public class ContactView implements Serializable {

    public ContactView() {
    }

    @EJB
    ContactService contactService;

    private String siteCode;
    private Doors doors;
    private AlternateContact alternateContact;


    public String retrieve056() {
        System.out.println("RETRIEVE");
        this.doors = this.contactService.findDoors("0Z56");
        System.out.println("doors_id is "+ doors.getDoorsId());
        for ( AlternateContact alt : doors.getAlternateList() ){
            System.out.println("alt name "+ alt.getName());
        }
        return "me2.jsf?sitecode=0Z56&faces-redirect=true";
    }

}

And here is the output on the console — the doors.getAlternateList() is definitely populated.

15:30:58,382 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) alt name Thomas Cahill

15:30:58,392 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) alt name Micahel Henry

And yet it doesn’t show up on my view! I have been looking at this all day and am desparate. Any ideas? It was working at some point in the last few days, but I have no idea how I broke it as I was working on other things.

TDR

  • 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-31T17:58:38+00:00Added an answer on May 31, 2026 at 5:58 pm

    When using dataTable you should use rich:column or rich:columnGroup

    Try using <rich:dataGrid> instead of <rich:dataTable>

    Just look at rich:dataGrid…

    Regards

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

Sidebar

Related Questions

I can not figure out why ActionLink is not generating the url correctly in
For the life of me, I can not figure out why some styles are
I can not seem to figure out how to count the number of seconds
Can someone figure out how to get rid of the NOT EXISTS statements in
I can't figure out why this list is not displaying properly in IE7. The
I'm learning xForms, but apparently not well enough because I can't figure out why
How do I match U1234, but not \U1234 in Javascript? I can't figure out
Not sure why I can't figure this out. When a user makes a selection,
I can not figure out why my code is not working, key_one= raw_input(Enter key
Here is a flow that I can not figure out how to work. (

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.