myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karim REFEYTON (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (TRINIDAD-119) InputDate popup crashes when using extension mapping
Date Mon, 03 Dec 2012 15:23:59 GMT

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

Karim REFEYTON edited comment on TRINIDAD-119 at 12/3/12 3:22 PM:
------------------------------------------------------------------

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.kakizeone.webhack.RedirectXHTMLFacesFilter</filter-class>
		<!-- Requis pour rediriger les URL pointant directement sur les pages vers 
			la Faces Servlet -->
		<!-- 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
                
      was (Author: kakizeone):
    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>
		<!-- Requis pour rediriger les URL pointant directement sur les pages vers 
			la Faces Servlet -->
		<!-- 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

Mime
View raw message