myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ratondeau <m.gra...@financeandeconomics.com>
Subject overflow error while including page
Date Thu, 23 Aug 2007 11:39:51 GMT

I have the following page that includes a page depending on the bean value:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xml:lang="de" lang="de"
      xmlns:m="http://www.w3.org/1998/Math/MathML">

	<ui:include src="#{currentPage.onlineFilename}" />
</html>

if I call the page following errors are thrown:

javax.faces.FacesException: UIInclude component j_id90 could't include page
with path /lms/pages/content.xhtml
	at
org.ajax4jsf.taglib.html.facelets.IncludeHandler.applyNextHandler(IncludeHandler.java:87)
	at
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
	at
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
	at
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
	at
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
	at
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
	at
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
	at
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
	at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
	at
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       ...
Caused by: com.sun.facelets.tag.TagAttributeException:
/lms/pages/content.xhtml @14,52 src="#{currentPage.onlineFilename}" Could
not Resolve Variable [Overflow]: currentPage
	at
com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:259)
	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:231)
	at com.sun.facelets.tag.TagAttribute.getValue(TagAttribute.java:200)
	at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:55)
	at
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
       ...
Caused by: javax.el.ELException: Could not Resolve Variable [Overflow]:
currentPage
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:64)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
    ...
and finally

Caused by: java.lang.StackOverflowError
	at java.lang.Exception.<init>(Unknown Source)
	at java.lang.RuntimeException.<init>(Unknown Source)
	at javax.el.ELException.<init>(ELException.java:54)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:64)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
	at
com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)

The variable is there an could be resolved if I use an <h:outputText... so
why do I get this error. I tried to switch facelets jar but without success.
The error is quite new so I assume it has something to do with switching
from myfaces 1.1 to 1.2

Someone has any idea?

Thanks

Matt

I use 
Tomcat 6.0.2
Myfaces.1.2
Facelets 1.1.12
ajax4jsf 1.1.2
richfaces 3.0.1



-- 
View this message in context: http://www.nabble.com/overflow-error-while-including-page-tf4317002.html#a12291903
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message