You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/12/16 19:39:12 UTC
[Bug 55891] New: Tomcat 7 EL Parser does not correctly evaluates
nested JSF 2.2 ui:repeat values
https://issues.apache.org/bugzilla/show_bug.cgi?id=55891
Bug ID: 55891
Summary: Tomcat 7 EL Parser does not correctly evaluates nested
JSF 2.2 ui:repeat values
Product: Tomcat 7
Version: 7.0.47
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: werdex86@gmail.com
Its seems there is an issue with EL parser in tomcat 7.0.47.
It was traced down by
https://java.net/jira/browse/JAVASERVERFACES-3096
I have attached maven project which works fine on tomcat8-RC5, but fails on
tomcat 7.0.47.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55891] Tomcat 7 EL Parser does not correctly evaluates nested
JSF 2.2 ui:repeat values
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55891
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
I've tracked this down. There is no Tomcat bug here. You have been bitten by a
difference between EL 2.2 and EL 3.0 (which is why it worked in Tomcat 7 when
you used the EL 3.0 implementation from Glassfish 4).
In EL 2.2 attempting to coerce a null to a Boolean results in Boolean.FALSE.
In EL 3.0 attempting to coerce a null to a Boolean results in null.
In Tomcat 7 the attempts to resolve #{b.checked} returns null which is coerced
to Boolean.FALSE which appears to prevent the 3rd resolution attempt (the one
that works in Tomcat 8).
The multiple resolution attempts still look odd but regardless of whether JSF
is doing the right thing there, Tomcat's EL implementation in Tomcat 7 is
behaving as per the EL 2.2 spec and in Tomcat 8 it is behaving as per the 3.0
spec. See section A.4 of the EL 3.0 spec for the details of this change.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55891] Tomcat 7 EL Parser does not correctly evaluates nested
JSF 2.2 ui:repeat values
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55891
--- Comment #4 from Paul Khodchenkov <we...@gmail.com> ---
Hi Mark,
Thanks for the explanation. Is it safe to use the latest el jar from tomcat 8
in tomcat 7 to solve this issue with JSF 2.2?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55891] Tomcat 7 EL Parser does not correctly evaluates nested
JSF 2.2 ui:repeat values
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55891
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Any further pointers you can provide as to what Tomcat is doing wrong? I've
traced through the calls into the EL in Tomcat 7 and Tomcat 8 and the call
patterns are very different (there are more calls in 8 than 7).
There are multiple evaluations of #{b.checked} (which itself looks wrong) in
both 7 and 8. In Tomcat 8, it doesn't return a non-null value until the 3rd
call. In Tomcat 7 that third call is never made.
I'm currently comparing the Tomcat 7 and 8 calls but any pointers would be a
help here.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55891] Tomcat 7 EL Parser does not correctly evaluates nested
JSF 2.2 ui:repeat values
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55891
--- Comment #1 from Paul Khodchenkov <we...@gmail.com> ---
Created attachment 31118
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31118&action=edit
Maven project
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org