ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Upload Files with JSF and MyFaces
Subject:   Inform the user that the size exceeded
Date:   2009-02-26 11:42:27
From:   BenoĆ®t de CHATEAUVIEUX
In the org/apache/myfaces/webapp/filter/MultipartRequestWrapper.java:80 I saw that, in case of FileUploadBase.SizeLimitExceededException, the following attribute is set in the request: "org.apache.myfaces.custom.fileupload.exception".

You can test it to inform the user that the size exceeded.