incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <renzo.tomase...@tecnotp.it>
Subject [Trinidad] missing FacesContext while deserializing
Date Tue, 19 Dec 2006 17:19:17 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="#ffffff" text="#000000">
<font size="+1">Hi, once more while adapting to Trinidad an existing
application (Tomahawk + Facelets):<br>
a request-scoped bean LoginBean was made persistent across requests
through Tomahawk t:saveState.<br>
Thus LoginBean exports a deserialization method such as:<br>
<br>
private void readObject(java.io.ObjectInputStream aInputStream) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FacesContext fc = FacesContext.getCurrentInstance();<br>
...<br>
At application startup I see a LoginBean deserialized first, but there
is no FacesContext at that time, since fc = null.<br>
This used to work fine before extending web/faces-config to Trinidad.<br>
Any idea ?<br>
Thanks -- Renzo<br>
<br>
<br>
<br>
<br>
</font>
</body>
</html>

Mime
View raw message