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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:35:26+00:00 2026-06-10T23:35:26+00:00

I am trying to create the world most simple dataTable using JSF tomahawk like

  • 0

I am trying to create the world most simple dataTable using JSF tomahawk like this:

<html 
    xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:t="http://myfaces.apache.org/tomahawk">
<h:head>
  <title></title>
</h:head>
  <h:body>
    <h:form id="theForm">
      <h:outputText value="#{theBean.theList eq null}"/>
        <t:dataTable id="dt1" value="#{theBean.theList}" var="item">
          <t:column>
            <f:facet name="header">
              <t:outputText value="Header A"/>
            </f:facet>
            <t:outputText value="#{item.itemA}"/>
          </t:column>
        </t:dataTable>
    </h:form>
  </h:body>
</html>

The above code was save as XHTML file. The bean class is look like this:

@ManagedBean(name="theBean")
@SessionScoped
public class MyBean {
  private MyData[] theList = new MyData[] {
        new MyData("1111", "", "", "")};

  public MyData[] getTheList() {
    return theList;
  }

  public void setTheList(MyData[] theList) {
    this.theList = theList;
  }
}

public class MyData {

   private String itemA;

   ...
   ...
}

In the output of the screen I don’t see a data table, I see a black color false word and white blank screen, this is due to this code <h:outputText value="#{theBean.theList eq null}"/> telling me that the list is not empty.

I see this from the output from the web browser source:

<t:dataTable id="dt1" value="[Lcom.foo.MyData;@1798a6c" var="item">
  <t:column>
    <t:outputText value=""></t:outputText>
  </t:column>
</t:dataTable>

I am just curious to know why the data table doesn’t show? How to make it show on the screen?

  • 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-10T23:35:27+00:00Added an answer on June 10, 2026 at 11:35 pm

    Sorry for my bad. I didn’t include tomahawk jar and other dependencies as well in my classpath. Once I have them inside my classpath, the dataTable is rendered on the web page. And I notice that, the warning on the tomahawk line located on top of the page has been gone.

    <html 
        xmlns="http://www.w3.org/1999/xhtml" 
        xmlns:f="http://java.sun.com/jsf/core" 
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:t="http://myfaces.apache.org/tomahawk">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an Hello World JSF application. I have a bean with
this is most likely a simple answer that i have overlooked.. I am trying
I've created a simple 3D world using GLKit. I'm trying to find a specific
I'm trying to create a simple poll function using php and sql. I have
I'm trying to follow the instructions located at How-To Create a Hello World Snap-in
i am trying to create word 2007 add-in using VS2008, and i need to
I'm trying to create a word search game (kind of like Wordament but much
Just for the kicks i am trying to create a simple data object in
I'm building a web service using Flask and I'm trying to deploy a simple
I am trying to create a simple android app in Java but I have

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.