<div class="gmail_quote">On Tue, Jun 2, 2009 at 12:33 PM, Drew Kutcharian <span dir="ltr">&lt;<a href="mailto:drew@venarc.com" target="_blank">drew@venarc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div style="font-family: Verdana; font-size: 10pt; color: rgb(0, 0, 0);">Ian,<br><br>I had the same issue. What I ended up doing was creating/registering a custom Seam ExceptionHandler to catch ViewExpiredExceptions and redirecting to the page. The good thing is that the ViewExpiredException contains the View Id of the view that the user was trying to access, so you can just do a GET redirect to the page. The user will loose their inputed data, but at least the page will render correctly.<br>

</div></div></blockquote><div><br>Thanks Drew! I&#39;m guessing that this is a fairly common situation that we should put on the FAQ and perhaps even add as a feature of Seam.<br><br>I&#39;d like to note, however, that you can do exactly what you described with this bit of configuration:<br>
<br>&lt;exception class=&quot;javax.faces.application.ViewExpiredException&quot;&gt;<br>   &lt;redirect view-id=&quot;#{org.jboss.seam.handledException.viewId}&quot;&gt;<br>      &lt;message severity=&quot;warn&quot;&gt;Your session has timed out. You were redirected to the current page with a new session.&lt;/message&gt;<br>
   &lt;/redirect&gt;<br>&lt;/exception&gt;<br><br>-Dan<br clear="all"></div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>

<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan" target="_blank">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>

basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don&#39;t hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>

caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>you feel that it did not reach my attention.<br>