title: Custom filter is not executing in jsf portal
body: <p>I am trying to add a filter to my application which is build with java 6, jsf 2.0, jsr 286, WebSphere_Portal 8.0, primefaces 3.4.2.</p>
  
  <p>my addition to <strong>portlet.xml</strong> is</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;filter&gt;
     &lt;filter-name&gt;CustomFilter&lt;/filter-name&gt;
     &lt;filter-class&gt;com.filter.CustomFilter&lt;/filter-class&gt;
     &lt;lifecycle&gt;ACTION_PHASE&lt;/lifecycle&gt;
   &lt;/filter&gt;
   &lt;filter-mapping&gt;
      &lt;filter-name&gt;CustomFilter&lt;/filter-name&gt;
      &lt;portlet-name&gt;UploadFileDemo&lt;/portlet-name&gt;
   &lt;/filter-mapping&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>my filter class is <strong>CustomFilter.java</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    package com.filter;
      import javax.portlet.ActionFilter;
      public class CustomFilter implements ActionFilter {
  @Override
       public void destroy() {
       System.out.println("destroy");
       }
  @Override
       public void init(FilterConfig arg0) throws PortletException {
       System.out.println("custom filter initiated");
       }
  @Override
       public void doFilter(ActionRequest arg0, ActionResponse arg1,FilterChain arg2) throws IOException, PortletException {
       System.out.println("doFilter method is called");
        }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>when i deploy the application and submit the form, i am not seeing any SOP of init() and doFilter() method of CustomeFilter class.</p>