3 Replies Latest reply on Nov 22, 2007 7:46 AM by Sven Mueller

    exception handling in pages.xml: message params possible?

    Sven Mueller Newbie

      hi,

      i tried the following way but without success:

      pages.xml

      <exception class="org.jboss.seam.web.FileUploadException">
       <redirect view-id="/pages/error.xhtml">
       <message severity="ERROR">#{messages['error.fileUpload']}</message>
       <param>#{org.jboss.seam.web.multipartFilter.maxRequestSize/1000}</param>
       </redirect>
      </exception>


      message.properties
      error.fileUpload = maximum allowed size {0} kB. please select another file.


      i'm using seam 2 cr3...is it somehow possible?

      cheers,
      sven