about <h:head>

UI Components for JSF
navin
Posts: 2
Joined: 05 Jun 2013, 11:42
Location: Pune, India

05 Jun 2013, 12:45

Hello!

Use the <f:view> tag.
I hope the below reference will help you find out the way out of this. (For me it worked and solved the same problem you had)

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<body>
	<f:view>
		 <h:head>
			<title><ui:insert name="title">Insert Title</ui:insert></title>
			<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
			<link type="text/css" rel="stylesheet"
				href="/JSF2nFacelets/theme/redmond/skin.css" /> 
		</h:head> 
		<h:body>
			<h:form id="form">
            <h:panelGrid columns="3">
                <h:outputText value="Keyup: " />
                <p:inputText id="counter">
                    <f:ajax event="keyup" update="out" listener="#{counterBean.increment}" render="out" />
                </p:inputText>
                <h:outputText id="out" value="#{counterBean.count}" />
                <br />
                <h:messages />
            </h:panelGrid>
        </h:form>
		</h:body>
	 </f:view> 
</body>
</html>
Navin Vijaykumar

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

05 Jun 2013, 13:05

Don't raise the old threads viewtopic.php?f=3&t=1194
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Locked

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 78 guests