Re: Problem when url is pretty and form enctype is multipart/form-data

Splash Forums PrettyFaces Users Problem when url is pretty and form enctype is multipart/form-data Re: Problem when url is pretty and form enctype is multipart/form-data

#20434

sergiu_oltean
Participant

Hi Lincoln, tomahawk is first.

<filter>

<filter-name>extensionsFilter</filter-name>

<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>

<init-param>

<param-name>uploadMaxFileSize</param-name>

<param-value>100m</param-value>

</init-param>

<init-param>

<param-name>uploadThresholdSize</param-name>

<param-value>100k</param-value>

</init-param>

<init-param>

<param-name>uploadRepositoryPath</param-name>

<param-value>/temp</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>*.jsf</url-pattern>

</filter-mapping>

<context-param>

<param-name>facelets.LIBRARIES</param-name>

<param-value>/WEB-INF/tomahawk.taglib.xml</param-value>

</context-param>

<filter>

<filter-name>Pretty Filter</filter-name>

<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>Pretty Filter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>FORWARD</dispatcher>

<dispatcher>REQUEST</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

I also tried 3.1.1 snapshot but doesn’t seems to work.

I also tried the filters from tuckey…the same behaviour.

When the url is rewriten the actions inside a <h:form enctype=”multipart/form-data” > does not get called.