Package org.richfaces.test.staging

Examples of org.richfaces.test.staging.FilterContainer


    try {
      // Check for an ajax4jsf filter.
      Class<? extends Filter> ajaxFilterClass = contextClassLoader
          .loadClass("org.ajax4jsf.Filter").asSubclass(Filter.class);
      Filter ajaxFilter = ajaxFilterClass.newInstance();
      FilterContainer filterContainer = new FilterContainer(ajaxFilter,
          facesServletContainer);
      filterContainer.setName("ajax4jsf");
      facesServer.addResource("/WEB-INF/web.xml",
          "org/richfaces/test/ajax-web.xml");
      facesServer.addServlet(filterContainer);
    } catch (ClassNotFoundException e) {
      // No Richfaces filter, uses servlet directly.
View Full Code Here

TOP

Related Classes of org.richfaces.test.staging.FilterContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.