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

Milo van der Zee edited comment on MYFACES-3980 at 4/15/15 1:49 PM:
--------------------------------------------------------------------

Does this result in item values being of type 
"org.apache.myfaces.view.facelets.tag.jstl.core.IterationStatus" ?

I have this and it sound like this is due to the above bug:

{code}
<c:set var="widths" value="#{fn:split(cc.attrs.columnWidths, ',')}"/>
<c:forEach items="#{widths}" var="colwidth" varStatus="status">
  #{colwidth}
</c:forEach>
{code}

In 2.2.7 this results in outputting 'colwidth' even after an ajax render of the 
forEach. In 2.2.8 #\{colwidth} results in 
"org.apache.myfaces.view.facelets.tag.jstl.core.IterationStatus@30dc67eb"
Enabling org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY fixes the issue.

Am I correct to assume this is related or should I create a new ticket?

Thanks.


was (Author: milovanderzee):
Does this result in item values being of type 
"org.apache.myfaces.view.facelets.tag.jstl.core.IterationStatus" ?

I have this and it sound like this is due to the above bug:

{code}
<c:set var="widths" value="#{fn:split(cc.attrs.columnWidths, ',')}"/>
<c:forEach items="#{widths}" var="colwidth" varStatus="status">
  #{colwidth}
</c:forEach>
{code}

In 2.2.7 this results in outputting 'colwidth' even after an ajax render of the 
forEach. In 2.2.8 #{colwidth} results in 
"org.apache.myfaces.view.facelets.tag.jstl.core.IterationStatus@30dc67eb"
Enabling org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY fixes the issue.

Am I correct to assume this is related or should I create a new ticket?

Thanks.

> 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)

Reply via email to