Results 1 to 1 of 1
  1. #1
    julius is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default templating, file not found

    hi,

    where do i put the .xhtml files that i reference with: <ui:insert ?

    this is what i currently have:
    Java Code:
    ls -alh ajaxhello/src/main/webapp/
    total 52K
    drwxrwxr-x 4 julius julius 4.0K Aug 15 22:10 .
    drwxrwxr-x 5 julius julius 4.0K Aug 15 19:53 ..
    -rw-rw-r-- 1 julius julius 1.8K Aug 15 22:01 ajaxgreeting.xhtml
    -rw-rw-r-- 1 julius julius 1.4K Aug 15 21:58 ajaxhello.xhtml
    drwxrwxr-x 3 julius julius 4.0K Aug 15 19:53 resources
    -rw-rw-r-- 1 julius julius  744 Aug 15 22:06 start.xhtml
    drwxrwxr-x 2 julius julius 4.0K Aug 15 22:03 WEB-INF

    this is the "starting" page for the app:
    Java Code:
    <?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:h="http://java.sun.com/jsf/html"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          >
     
        <h:head>
    	<h:outputStylesheet name="common-style.css" library="css" />
        </h:head>
     
        <h:body>
     
    	<div id="page">
     
    	    <div id="left">
    		<ui:insert name="header" >
    			<ui:include src="ajaxgreeting.xhtml" />
    		</ui:insert>
    	    </div>
     
    	 <!--   <div id="right">
    	  	<ui:insert name="content" >
    	 		<ui:include src="helloworld.xhtml" />
    	   	</ui:insert>
    	    </div> -->
     
     
            </div> 
     
        </h:body>
    </html>

    i also tried to put faces in front of the path inside start.xhtml, again filenotfoundexception.
    whats the right path?
    Last edited by julius; 08-15-2012 at 11:19 PM.

Similar Threads

  1. Replies: 1
    Last Post: 07-28-2011, 08:50 PM
  2. File not found when using jar
    By nandj987 in forum New To Java
    Replies: 4
    Last Post: 02-22-2011, 02:54 PM
  3. file not found
    By smartshahezad in forum JDBC
    Replies: 2
    Last Post: 03-04-2010, 12:14 PM
  4. Javac, file not found
    By Zorobay in forum New To Java
    Replies: 1
    Last Post: 02-15-2010, 12:30 PM
  5. Javascript Templating Language 0.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-02-2007, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •