[
https://issues.apache.org/jira/browse/MYFACES-3980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497677#comment-14497677
]
Milo van der Zee commented on MYFACES-3980:
-------------------------------------------
I checked it by applying the patches in ForEachHandler.java and it indeed is
fixed.
{code}
---
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
2015/03/31 22:01:51 1670492
+++
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
2015/04/09 04:01:07 1672237
@@ -471,7 +471,7 @@
{
ve = new IterationStatusExpression(itrS);
}
- setVar(ctx, parent, uniqueId, base, vs, ve, srcVE);
+ setVar(ctx, parent, uniqueId, base+"_vs", vs, ve,
srcVE);
}
// execute body
@@ -595,7 +595,7 @@
{
ve = new IterationStatusExpression(itrS);
}
- setVar(ctx, parent, uniqueId, base, vs, ve, srcVE);
+ setVar(ctx, parent, uniqueId, base+"_vs", vs, ve,
srcVE);
}
//setVarStatus(ctx, pctx, t, sO, eO, mO, srcVE, value,
vs, first, !itr.hasNext(), i);
{code}
> c:forEach varStatus is assigned with the wrong base
> ---------------------------------------------------
>
> Key: MYFACES-3980
> URL: https://issues.apache.org/jira/browse/MYFACES-3980
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-344
> Reporter: Gonçalo Manuel Cruchinho
> Assignee: Leonardo Uribe
> Fix For: 2.2.9
>
>
> Doing some debugging for MYFACES-3964, it was discovered that c:forEach tag
> has a typo error when varStatus is set. This cause a malfunction, because the
> same base for var is used for varStatus. The perceived effect is a
> PropertyNotFoundException or an ELException.
> The problem is not present when facelets compatibility mode is enabled.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)