myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <renzo.tomase...@tecnotp.it>
Subject [Trinidad] missing close() call in HtmlResponseWriter.close
Date Thu, 10 May 2007 13:57:56 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="white" lang="IT" link="blue" text="#000000"
 vlink="purple">
Hi, while investigating about a modal panel failure in using RichFaces,
I noticed that Ajax4jsf failed to render a cached css. The final effect
is an apparently random failure in showing the modal panel, depending
on browser caching of involved css.<br>
This is turn was due to a missing close() call in class
org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter: its close()
method simply flushes, without closing the associated stream. This
close is needed (class CacheContent of Ajax4jsf) to mark cached obj
contents presence. Without this mark, no contents will be returned to
the browser.<br>
Adding _out.close() at line # 98 fixes this issue.<br>
<br>
-- Renzo<br>
<br>
</body>
</html>

Mime
View raw message