[nbj2ee] Re: JSF not picking ash tag from database

  • From: Rick Fincher < >
  • To:
  • Subject: [nbj2ee] Re: JSF not picking ash tag from database
  • Date: Sun, 30 Sep 2012 11:24:24 -0400

Debug your getters and setters to see if they are called.

Google is your friend.  Here is the first entry under <h:datatable examples:

http://www.mkyong.com/jsf2/jsf-2-datatable-example/

Rick

On 9/28/2012 4:32 AM, twonjee2002 wrote:
I am building a simple application that retrieves username and email address 
from a mysql database with jsf. The index.xhtml looks as below

  <h:dataTable border="1" value="#{demoBean.listofUser}" var="userdetail">
             <h:column>
                 <f:facet name="header">
                     User Name
                 </f:facet>
                 #{userdetail.userId}
                 </h:column>

              <h:column>
                 <f:facet name="header">
                     Email Address
                 </f:facet>
                 #{userdetail.email}
             </h:column>

             <h:column>
                 <f:facet name="header">
                    First Name
                 </f:facet>
                 #{userdetail.firstname}
             </h:column>
         </h:dataTable>

When the app is run, only the Header is displayed in the browser i.e
  <f:facet name="header">
                    First Name
                 </f:facet>

the content is not picked from the database and when i use firebug, i dont 
see any content retrieved with the tag  
#{userdetail.firstname},#{userdetail.email} etc. Anyone please help, I am 
using netbeans 6.9.1 with glassfish server and mysql database. Thanks






[nbj2ee] JSF not picking ash tag from database

twonjee2002 09/28/2012

[nbj2ee] Re: JSF not picking ash tag from database

Rick Fincher 09/30/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close