4 Replies Latest reply on Feb 16, 2011 11:43 PM by dhanarajar

    Not able to configure primeface in my project......

    dhanarajar

      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 !!!!!
        • 1. Re: Not able to configure primeface in my project......
          dhanarajar
          <blockquote>
          _dhanaraja rajendiran wrote on Feb 15, 2011 03:42:_<br/>


          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 help me out from this problem.......
          </blockquote>

          Click HELP for text formatting instructions. Then edit this text and check the preview.
          • 2. Re: Not able to configure primeface in my project......
            dhanarajar
            <blockquote>
            _dhanaraja rajendiran wrote on Feb 15, 2011 08:22:_<br/>

            <blockquote>
            _dhanaraja rajendiran wrote on Feb 15, 2011 03:42:_<br/>


            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 help me out from this problem.......
            • 3. Re: Not able to configure primeface in my project......
              gdeudney

              Did you add the


              <p:resources>



              in the header section of your page?
              If the project was created with seamgen you would need to add this to the template file in the layout folder.

              • 4. Re: Not able to configure primeface in my project......
                dhanarajar

                Oh !!!!!!!!!! Realy thanks for your reply...........


                That is Working fine for me!!!!!!!!!!!