Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1-SNAPSHOT
-
None
-
geronimo-2.0-M6-rc1
Description
I have a simple code where dollar-type expression (like ${}) works differently than shrap-type expression (like #{}),
I put into the http session a managed bean aggregating another bean.
${parent} is calculated, while ${parent.child} is always null (it is printed as an empty string and equals to null in "when" tag).
For example the following snip of JSP code:
<f:view>
<h:form id="myform" >
<b>Using sharp-el</b>: <br/>
*<h:outputText id="cll1" value="#
" />*<br/>
*<h:outputText id="cll2" value="#
" />*<br/>
<b>Using dollar-el</b>: <br/>
${customerDetailsBean}<br/>
${customerDetailsBean.customer}<br/>
<b>Classical "servlet" style</b>: <br/>
*<% if (session.getAttribute("customerDetailsBean") != null)
%>*<br/>
*<% if (session.getAttribute("customerDetailsBean") != null)
%>*<br/>
</h:form>
</f:view>
– PRODUCES --:
Using sharp-el:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
*Customer
*
Using dollar-el:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
**
Classical "servlet" style:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
*Customer
*
while I would expect:
Using sharp-el:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
*Customer
*
Using dollar-el:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
*Customer
*
Classical "servlet" style:
CustomerDetailsBean: { customer: Customer {frstName: Alex , lastName: Zynevich, id: 1979}}
*Customer
*
you may find the maven project at https://issues.apache.org/jira/browse/GERONIMO-3253, war is attached
Attachments
Attachments
Issue Links
- is duplicated by
-
GERONIMO-3253 Сalculation of ${} EL expression of second level, like ${a.b} cause null value
- Open