3 Replies Latest reply on Feb 19, 2011 7:31 PM by samwun9988

    Web application project file structure.

    samwun9988

      Hello,

       

      I am not sure whether my web applicaition project is correct or not.

      After deployed my EAR file to jboss 6.0, I don't see my xhtml web page is picking up css and js files. The web applicaiton (client) has all the js, css and xhtml pages bundled. primefaces 2.2.1 is also bundled in the war project.

       

      Here is my war project stucture:

       

      Web Pages

               - WEB-INF

               - resources

                       |- css

                       |- images

                       |- scripts

               - templates

                       |- layout-with-right-left.xhtml

               - index.html

       

      Here is my index.xhtml file:


      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

            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:p="http://primefaces.prime.com.tr/ui">

          <ui:composition template="/WEB-INF/templates/layout_with_right_left.xhtml">

              <ui:define name="login_register">

                  <p class="topnav">Login | Register</p>

              </ui:define>

      ....

       

      is the line path "/WEB-INF/templates/layout_with_right_left.xhtml" defined correctly in my index.xhtml file?

       

      Thank you advance for any suggestion.

       

      Thanks

      Sam