Hi,
well.
i am creating project in the following environment
facelet+jsf+seam+ejb+oracle in jboss server. well its progressing fine.
but while using datatable i stuck with an issue.
i cant display data in datatable
please help me to overcome it.
if my coding is wrong please correct me.
my coding for the particular datatable as follows,
my java file is,
@Stateless @Name("searchsession") public class SearchSession implements SearchLocal { @Out private List details; @PersistenceContext private EntityManager em; public String search() { long productid = 101; details = em.createQuery("select s from Stores s").getResultList(); return "query"; }
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" template="layout/template.xhtml"> <rich:dataTable width="483" id="details" rows="10" columnClasses="col" value="#{details}" var="val"> <h:column> <h:outputText value="#{val.storeName}" /> </h:column> <h:column> <h:outputText value="#{val.website}" /> </h:column> </rich:dataTable>
"alexrozario" wrote:
i cant display data in datatable
please help me to overcome it.
if my coding is wrong please correct me.