Reply To: Pretty & PrimeFaces FileUpload

Splash Forums PrettyFaces Users Pretty & PrimeFaces FileUpload Reply To: Pretty & PrimeFaces FileUpload

#25727

brasmouk
Participant

I replaced pretty-config.xml by this java class


@RewriteConfiguration
public class MyConfigurationProvider extends HttpConfigurationProvider {

  @Override
  public Configuration getConfiguration(ServletContext context) {
    return ConfigurationBuilder.begin()

    .addRule(Join.path("/app").to("/pages/protected/user/app.xhtml"));
  }

  @Override
  public int priority() {
    // TODO Auto-generated method stub
    return 10;
  }

}

Url mapping works now

But PrimeFaces FileUpload still does not work !!

In my web.xml


	<filter>
		<filter-name>PrimeFaces FileUpload Filter</filter-name>
		<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>PrimeFaces FileUpload Filter</filter-name>
		<url-pattern>/*</url-pattern>
		<servlet-name>Faces Servlet</servlet-name>
		<dispatcher>FORWARD</dispatcher>
		<dispatcher>REQUEST</dispatcher>
		<dispatcher>INCLUDE</dispatcher>
		<dispatcher>ASYNC</dispatcher>
		<dispatcher>ERROR</dispatcher>

	</filter-mapping>

	<filter>
		<filter-name>OCPsoft Rewrite Filter</filter-name>
		<filter-class>org.ocpsoft.rewrite.servlet.RewriteFilter</filter-class>
		<async-supported>true</async-supported>
	</filter>
	<filter-mapping>
		<filter-name>OCPsoft Rewrite Filter</filter-name>
		<url-pattern>/*</url-pattern>
                <dispatcher>FORWARD</dispatcher>
		<dispatcher>REQUEST</dispatcher>
	</filter-mapping>
  • This reply was modified 8 years ago by  brasmouk.
  • This reply was modified 8 years ago by  brasmouk.
  • This reply was modified 8 years ago by  brasmouk.