gtsiga 0 Newbie Poster

Hello guys
I have the following message (One or more resources have the target of 'head', but no 'head' component has been defined within the view.) showing on my jsf page and I am not sure of its root cause.

Here is the code behind my page for the page.

<?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://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <link href="/images/nbsz.ico" rel="shortcut icon" type="image/x-icon" />
        <title><ui:insert>Login</ui:insert></title>
    </h:head>
    <body>
<h:form>
        <ui:composition template="./Outertemplate.xhtml">

                <ui:define name="mainTemp">

                    <h2 class="title"><a href="#">Login</a></h2>
                    <div class="entry">
                        <h:outputText value="#{login.msg}" id="msgs">
                            <f:event type="preRenderComponent" listener="#{login.colorME}"/>
                        </h:outputText><br/>
                        Username &nbsp;<p:inputText value="#{login.username}" id="user"/><br/><br/>
                        Password &nbsp;&nbsp;<p:password value="#{login.password}" id="pass"/><br/><br/>
                        <a href="tests.xhtml">Forgot password?</a><br/><br/>
                        <a href="Donor/NewDonor.xhtml">New User, create account</a>&nbsp;&nbsp;
                        <p:commandButton value="Login" id="_loginButton" action="#{login.getLogin}" ajax="false"/><br/>

                    </div>

                </ui:define>

        </ui:composition>
</h:form>
    </body>
</html>

The following is also the code of the Template.

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

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Archivo+Narrow:400,700" rel="stylesheet" type="text/css"/>
<link href="default.css" rel="stylesheet" type="text/css" media="all" />
<link href="/images/nbsz.ico" rel="shortcut icon" type="image/x-icon" />

</head>
<body>
<div id="logo" class="container">
    <h1><a href="#">blood bank system</a></h1>
</div>
<div id="menu-wrapper">
    <div id="menu" class="container">
        <ul>
                    <li class="current_page_item"><a href="index.xhtml">Home</a></li>
            <li><a href="newTemplateClient.xhtml">Services</a></li>
            <li><a href="#">Photos</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Contact Us</a></li>
                        <li><a href="login.xhtml">Login</a></li>
        </ul>
    </div>
</div>

<div id="page" class="container">
    <div id="box1">

        <h2 class="title"><ui:insert name="mainTemp">
                    <a href="#">Welcome to NBSZ </a></ui:insert></h2>
        <div style="clear: both;">&nbsp;</div>
        <div class="entry">

    </div> 
    </div>
</div>

<div id="footer" class="container">
    <p>Copyright (c) 2013 George Tsiga. All rights reserved. Design by <a href="http://google.com/+GeorgeTsigaTigereNyaude" rel="nofollow">Software Developer</a>. </p>
</div>
</body>
</html>

Your help will be greatly appriciated.

jsf
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.