p:dataTable not displaying

UI Components for JSF
Post Reply
dhanaraja
Posts: 12
Joined: 11 Feb 2011, 08:12

11 Feb 2011, 08:23

I am using dataTable like this-->>


<h:form id="primefacesForm">
<table style="width:100%;">
<tr>
<td>
<p:dataTable id="dhana" var="asset" value="#{admAssetsAction.retrieveAssets()}" width="100%" paginator="true" dynamic="false or true">
<p:column>
<f:facet name="header">
<h:outputText value="NAME"/>
</f:facet>
<h:outputText value="#{asset.name}"/>
</p:column>
</p:dataTable>
</td>
</tr>
</table>
</h:form>


I added primefaces in my jsp page like this->>

xmlns:p="http://primefaces.prime.com.tr/ui"


But I dont know why it is not displaing??.........

And I dont know what are all the things i have to add in WEB.INF xml files..........
Can Any One Help Me out From This Problem

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

11 Feb 2011, 15:49

Check out the showcase for examples of how to use the components:

http://www.primefaces.org/showcase/ui/home.jsf

Note: PrimeFaces 2.x does NOT support JSP. You must use Facelets.

dhanaraja
Posts: 12
Joined: 11 Feb 2011, 08:12

15 Feb 2011, 06:48

Thanks for your reply............I gone through your url.....with the reference of that i did following changes.....
am using "primeface 1.0" version......................

change no 1: WEB.INF->web.xml (i added below code)

<servlet>
<servlet-name>Primefaces Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Primefaces Resource Servlet</servlet-name>
<url-pattern>/primefaces_resource/*</url-pattern>
</servlet-mapping>

Change No 2 : build.xml

<fileset dir="${basedir}">
<include name="lib/primefaces*.jar" />
</fileset>

<copy todir="${war.dir}/WEB-INF/lib">
<fileset dir="${lib.dir}">
<include name="primefaces*.jar" />
</fileset>
</copy>

Change No 3: Added primefaces 1.0.0.0.jar file in both "lib" folder as well as "Build path" of my project

Change No 4: I added following thing in my template as well as my jsp where iam using primeface dataTable
xmlns:p="http://primefaces.prime.com.tr/ui"

Already i posted that how I wrote dataTable in my jsp file........

But Still not able to disply "p:dataTable" !!!!!!!!!!!!!!!!!! not only p:dataTable regarding primefaces nothing is working in my project !!!!!!!!!!!!!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests