Version 3

    Hi All....

     

    Here is the code that we can use to restrict a file size to be uploaded in RichFaces..

     

    in web.xml we need to give

    -------------------------------

    <filter>
            <display-name>RichFaces Filter</display-name>
            <filter-name>richfaces</filter-name>
            <filter-class>org.ajax4jsf.Filter</filter-class>
            <init-param>
                <param-name>maxRequestSize</param-name>
                <param-value>file size</param-value>
            </init-param>
    </filter>