You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Karim REFEYTON (JIRA)" <de...@myfaces.apache.org> on 2012/12/03 16:20:00 UTC

[jira] [Commented] (TRINIDAD-119) InputDate popup crashes when using extension mapping

    [ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508794#comment-13508794 ] 

Karim REFEYTON commented on TRINIDAD-119:
-----------------------------------------

This issue is not fixed in earlier releases (2.0.0 and 2.0.1).

The MyFacesBugFixFilter is not compatible with the last releases.

Only one solution : create a Filter to redirect (not forward) *.xhtml URL without "/faces" prefix to the Faces Servlet.

---cu there [web.xml]---
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>/faces/*</url-pattern>
	</servlet-mapping>

[.../...]
	<filter>
		<filter-name>RedirectXHTMLFaces filter</filter-name>
		<filter-class>fr.amesys.pies.eca.tt.webhack.RedirectXHTMLFacesFilter</filter-class>
		<!-- Required to redirect xhtml URL (without Faces Servlet prefix) to the Faces Servlet -->
		<init-param>
			<param-name>JSF_PREFIX</param-name>
			<param-value>/faces</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>RedirectXHTMLFaces filter</filter-name>
		<url-pattern>*.xhtml</url-pattern>
	</filter-mapping>
---cut here---
@see RedirectXHTMLFacesFilter.java attached
                
> InputDate popup crashes when using extension mapping
> ----------------------------------------------------
>
>                 Key: TRINIDAD-119
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-119
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.1-core
>         Environment: Apache Tomcat 6.0.13, JDK 1.6.02, Facelets 1.1.11, Trinidad 1.2.1, MyFaces 1.2.0, Ajax4jsf 1.0.6
>            Reporter: Jan-Kees van Andel
>         Attachments: MyFacesBugFixFilter.java, MyFacesBugFixFilter.java, TRINIDAD-119-trinidad-impl.patch
>
>
> If I use extension mapping (*.faces), my inputDate component crashes with a 404 when I click on the button.
> The message is:
> "The requested resource (/mblf/__ADFv__) is not available."
> When using prefix mapping (/faces/), everything works fine. The URL it references is:
> http://localhost:8080/mblf/faces/__ADFv__?_t=fred&_red=cd&value=1185058800000&loc=en

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira