Hi,

I have the problem that my facesMessages get lost when handling 
org.jboss.seam.web.FileUploadException. 

I have this in pages.xml:

<exception class="org.jboss.seam.web.FileUploadException">
  |   <redirect view-id="/welcome.xhtml">
  |    <message severity="ERROR">
  |     File is too big.
  |    </message>
  |   </redirect>
  |  </exception>

When I raise a FileUploadException from my application code the exception gets 
handled as expected and the correct faces message is displayed. When Seam 
generates the exception in the MultipartFilter, welcome.xhtml is invoked, but 
the message is lost. After some debugging I think I found the cause of the 
problem: in this case the faces message is generated in a different 
conversation, and even in a different session (!) than the current user 
conversation/session. So the FacesMessages object which contains the correct 
message is not available any more in welcome.xhtml.

Is there an easy workaround for this issue? Currently I have no other idea than 
not using message at all, but to redirect to a specific error page that knows 
that it was a FileUploadException. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102855#4102855

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102855
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to