You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Co...@hydro.qc.ca on 2004/12/14 21:25:39 UTC
PhaseListener question
Using tiles, when I step through a page request in the debugger the header
of my jsp gets rendered
before the method "public void beforePhase(PhaseEvent event)" with the event
RENDER_RESPONSE
gets called...is this normal ? In my default layout, all the flush commands
== false, here is the file:
****************************************************************************
***********************************************
<%@page <ma...@page> errorPage="/error/ErrorHandlerServlet?popup=false"
%>
<%@ taglib uri="/WEB-INF/tags/myfaces_core.tld" prefix="f"%>
<%@ taglib uri="/WEB-INF/tags/struts-tiles.tld" prefix="tiles"%>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<link rel="stylesheet" href='<%= request.getContextPath() +
"/style/sapsic.css" %>' type="text/css"/>
<script src='<%= request.getContextPath() + "/js/toggle.js" %>'></script>
<script src='<%= request.getContextPath() + "/js/fureteurUtils.js"
%>'></script>
<script src='<%= request.getContextPath() + "/js/lswUtils.js" %>'></script>
<title><tiles:getAsString name='title' /></title>
</head>
<f:view>
<f:subview id="subview1">
<tiles:insert attribute="header" flush="false"/>
</f:subview>
<f:subview id="subview2">
<tiles:insert attribute="body" flush="false"/>
</f:subview>
<f:subview id="subview3">
<tiles:insert attribute="footer" flush="false"/>
</f:subview>
</f:view>
</html>
****************************************************************************
*************************************
Any ideas ? This creates all kind of "response already committed" errors
when we try to redirect to error pages.
Thanks in advance !
Mark