1 Reply Latest reply on Feb 15, 2011 9:57 AM by Robert Morse

    Not able to configure primefaces with my project

    dhanaraja rajendiran Newbie
      I am using dataTable like this in my jsp page-->>

      <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??.........

      I am using "primeface 1.0" version......................
      I did following changes in xml files

      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 !!!!!

      Can any one please help me out from this pbm.........