myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3246) java.lang.IndexOutOfBoundsException when CACHE_EL=always
Date Wed, 27 Jul 2011 17:46:09 GMT

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

Martin Kočí commented on MYFACES-3246:
--------------------------------------

Here is the complete minimized source:

main.xhtml:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"  xmlns:h="http://java.sun.com/jsf/html">
<html>
<h:head />
<h:body> <ui:include src="included1.xhtml" /></h:body>
</html>
</f:view>

included1.xhtml:

<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
        <ui:include src="included2.xhtml" />
        <h:commandButton> <f:ajax execute="@this"  /> </h:commandButton>
</f:subview>

included2.xhtml

<f:subview xmlns:f="http://java.sun.com/jsf/core" />


> java.lang.IndexOutOfBoundsException when CACHE_EL=always 
> ---------------------------------------------------------
>
>                 Key: MYFACES-3246
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3246
>             Project: MyFaces Core
>          Issue Type: Bug
>         Environment: myfaces core trunk
>            Reporter: Martin Kočí
>
> java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
> 	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> 	at java.util.ArrayList.get(ArrayList.java:322)
> 	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.getTemplateContext(DefaultFaceletContext.java:632)
> 	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.isAllowCacheELExpressions(DefaultFaceletContext.java:831)
> 	at org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:426)
> 	at org.apache.myfaces.view.facelets.tag.jsf.core.AjaxHandler.applyAttachedObject(AjaxHandler.java:391)
> 	at org.apache.myfaces.view.facelets.tag.jsf.core.AjaxHandler.apply(AjaxHandler.java:218)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message