Hi Simon,
I think that all jsf components are nested within an f:view tag. The
blank.jsp page uses layout.tag and has no jsf components. The layout.tag uses
f:view at the beginning of the file.
Is there any new behaviour with jsf 1.2 related to 1.1 I don“t know?
blank.jsp
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:tags="urn:jsptagdir:/WEB-INF/tags"
>
<jsp:directive.page contentType="text/html"/>
<tags:layout>
</tags:layout>
</jsp:root>
layout.tag
<%--
--%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:loadBundle basename="org.basegen.base.view.messages-base" var="msgBase"/>
<f:loadBundle basename="com.acme.teste.view.messages-teste" var="msgteste"/>
<f:loadBundle basename="com.acme.teste.view.msgcustom-teste"
var="msgcustomteste"/>
<%@ attribute name="onload" %>
<html>
<f:view>
<head>
<meta http-equiv="Cache-Control" CONTENT="no-store"/>
<meta http-equiv="Pragma" CONTENT="no-cache"/>
<meta HTTP-EQUIV="Expires" CONTENT="0"/>
<title><h:outputText value="#{msgteste['module.title']}"/></title>
<link rel="stylesheet" type="text/css" href="<%=
request.getContextPath() + "/css/stylesheet.css" %>" title="Default" />
<link rel="alternate stylesheet" type="text/css" href="<%=
request.getContextPath() + "/css/stylesheet-alternate.css" %>" title="Clean" />
<script type="text/javascript" src="<%= request.getContextPath() +
"/scripts/styleswitcher.js" %>" ></script>
<script type="text/javascript" src="<%= request.getContextPath() +
"/scripts/script.js" %>" ></script>
</head>
<body onload="<%=onload%>" >
<h:panelGrid columns="1"
styleClass="base-h-panelGrid-layout"
headerClass="base-h-panelGridHeader-layout"
footerClass="base-h-panelGridFooter-layout"
rowClasses="base-h-panelGridRow-layout"
columnClasses="base-h-panelGridColumn-layout-body">
<f:subview id="body">
<jsp:doBody/>
</f:subview>
</h:panelGrid>
</body>
</f:view>
</html>
----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Friday, May 16, 2008 5:32:12 AM
Subject: Re: error migrating myfaces from 1.1 to 1.2
Marcelo Romulo Fernandes schrieb:
> Hi,
>
> My webapp using myfaces 1.1.5 runs fine. When I migrate
> to myfaces 1.2.3, I got an error with my custom taglib. The following
> files are attached:
> 1- error.log: error log from tomcat
> 2- layout.tag: my custom tablib located at WEB-INF/tags
> 3- blank.jsp: simple jsp using tag lib layout
> My environment is: win xp sp2, tomcat 6.0.14, java sun 1.6.0_05, jstl 1.2.
> I look forward you help.
>
>
From a brief look at the code, it seems that this can only happen when a
JSF tag is processed before an f:view tag is processed.
Are all your JSF components nested within an f:view tag?