You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jan-Kees van Andel (JIRA)" <de...@myfaces.apache.org> on 2007/07/22 21:51:06 UTC
[jira] Created: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
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
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.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (TRINIDAD-119) InputDate popup crashes when
using extension mapping
Posted by song <so...@hotmail.com>.
i also encounter this error.
tomahowk1.1.6 + myface1.2 +trinidad1.2.1
like below:
http://localhost:8080/donuts1.0.2/__ADFv__?_t=fred&_red=cd&value=1183939200000&loc=zh&enc=GB18030
have anyone resolved this prob
My Faces - Dev mailing list wrote:
>
> 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
>
>
> 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.
> -
> You can reply to this email to add a comment to the issue online.
>
>
>
--
View this message in context: http://www.nabble.com/-jira--Created%3A-%28TRINIDAD-119%29-InputDate-popup-crashes-when-using-extension-mapping-tf4126262.html#a11865789
Sent from the My Faces - Dev mailing list archive at Nabble.com.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516534 ]
Adam Winer commented on TRINIDAD-119:
-------------------------------------
This works fine with the RI, 1.2_04. I'm not sure, but I suspect a MyFaces 1.2.0 bug.
> 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
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Michael Oswald (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610583#action_12610583 ]
Michael Oswald commented on TRINIDAD-119:
-----------------------------------------
What has this to do with a JSR? Please explain.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Mathias Walter (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745016#action_12745016 ]
Mathias Walter commented on TRINIDAD-119:
-----------------------------------------
The bug is not dependent on MyFaces only. I also get the same error with RI 1.2_12-b01-FCS and 1.2_13-b01-FCS.
I tried the fix by Ian, but it does not work for me. My DEFAULT_SUFFIX is also .xhtml, but because I'm using JBoss Seam, i mapped faces to .jsf and had to adjust the file name of __ADFv__ to __ADFv__.jsf.
I think it's a bug of Trinidad and not of the JSF implementations.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610596#action_12610596 ]
Matthias Weßendorf commented on TRINIDAD-119:
---------------------------------------------
whoops. typo. I was about to write JSF (JavaServer Faces).
JSR was an accident.
Well, I am interested in what version you are using.
MyFaces 1.2.?
RI 1.2_?
I am asking b/c of Adam's comment, that the RI 12_04 worked
Thanks!
Matthias
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Michael Oswald (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Oswald updated TRINIDAD-119:
------------------------------------
Status: Patch Available (was: Open)
> 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
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Jan-Kees van Andel (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610640#action_12610640 ]
Jan-Kees van Andel commented on TRINIDAD-119:
---------------------------------------------
I was using MyFaces 1.2.0, Facelets 1.1.11 and Trinidad 1.2.1 when I submitted this issue.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610564#action_12610564 ]
Matthias Weßendorf commented on TRINIDAD-119:
---------------------------------------------
Oswald, what is the JSR version you are using ?
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Joachim Schrod (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839708#action_12839708 ]
Joachim Schrod commented on TRINIDAD-119:
-----------------------------------------
I can confirm that the problem still exists with MyFaces 1.2.8, Trinidad 1.2.12, and Faceletes 1.1.14.
It can be reproduced by a simple page that just has <tr:inputDate value="#{date.date}" label="Default Date:"/>
as content and an associated bean date.
Ians patch works. One must have a servlet-mapping established from DEFAULT_SUFFIX to Faces Servlet,
if one has different suffixes for files and URIs.
That was probably Mathias problem, he has to establish a servlet-mapping to *.xhtml as well, in addition to *.jsf.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921275#action_12921275 ]
Tomas Havelka commented on TRINIDAD-119:
----------------------------------------
Is there a plan to solve this issue in the Trinidad's next release? I can confirm the same problem with 1.2.13 release of Trinidad.
It's a strange behavior for me to be forced to use /faces/ mapping for Facelets pages, which has very well known extension .xhtml.
The problem can be quickly solved by rewriting the GenericEntry scriplet to support javax.faces.DEFAULT_SUFFIX context parameter, I think.
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Joachim Schrod (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839748#action_12839748 ]
Joachim Schrod commented on TRINIDAD-119:
-----------------------------------------
Just confirmed for Trinidad 1.2.13, too. I saw it's announcement just today.
Btw, the filter may not be for all URIs (/*), it's sufficient to define it for `/__ADFv__'.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Glauco Pimentel Gomes (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697628#action_12697628 ]
Glauco Pimentel Gomes commented on TRINIDAD-119:
------------------------------------------------
Any progress on this?
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-119) InputDate popup crashes when using
extension mapping
Posted by "Michael Oswald (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610902#action_12610902 ]
Michael Oswald commented on TRINIDAD-119:
-----------------------------------------
So I was using the following when developing the workaround filter:
- shale-tiger-1.0.4
- jsf-facelets-1.1.11
- myfaces-api-1.2.2
- myfaces-impl-1.2.2
- trinidad-api-1.2.7
- trinidad-impl-1.2.7
- tomcat-6.0.14
- java-1.6.0_01-b06
I also tried with jsf-api-1.2_02 and jsf-impl-1.2-b19 from sun and the problem did not exist!
So we are working whith *.xhtml extensions, and so the faces servlet was mapped to *.xhtml and my MyFacesBugFixFilter was attached with an url-pattern /*. If you are working with other file extensions, you must change it in my MyFacesBugFixFilter (it is hardcoded to *.xhtml).
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.