Matthias Wessendorf skrev:
<f:verbatim
<f:verbatim> ?
yeah, typo in the mail, my bad
this is the page verbatim.xhtml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" >
#{facesContext.externalContext.requestContextPath}
<f:verbatim>#{facesContext.externalContext.requestContextPath}</f:verbatim>
</f:view>
In MyFaces 1.1.6 this outputs the context path twice, in 1.2.0 only once.
#{facesContext.externalContext.requestContextPath}
</f:verbatim>
It would nicely output the contextpath.
However, If I try to do the same with 1.2.0 it doesn't output anything.
Is there a spec change for jsf 1.2 saying el expressions are not allowed
within f:verbatim?
do you see stack trace ?
or some log info?
there is no errors outputted when loading the page,
here is the entire log trace outputted by 1.2.0 for the verbatim.xhtml:
10:22:36,983 DEBUG org.acegisecurity.util.FilterChainProxy -
/sandbox/verbatim.html has no matching filters
10:22:36,983 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter -
Filter start request processing at 20.07.07 10:22 for uri:
/iTeam/sandbox/verbatim.html
10:22:36,983 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter -
Filter request output to XML
10:22:36,983 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter -
XML filter service start processing request
10:22:36,999 TRACE javax.faces.webapp.FacesServlet - service begin
10:22:37,014 TRACE org.apache.myfaces.lifecycle.LifecycleImpl - entering
RESTORE_VIEW(1) in org.apache.myfaces.lifecycle.LifecycleImpl
10:22:37,014 DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener -
Process before phase RESTORE_VIEW(1)
10:22:37,014 DEBUG org.ajax4jsf.framework.ajax.InitPhaseListener -
Perform additional framework initialization on first request
10:22:37,124 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'traceData' in via original VariableResolver
10:22:37,202 INFO
org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory -
Using LifecycleProvider
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
10:22:37,202 INFO
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider -
Creating instance of net.sf.facestrace.TraceData
10:22:37,218 TRACE
org.apache.myfaces.lifecycle.DefaultRestoreViewSupport - Calculated
viewId '/sandbox/verbatim.html' from request servlet path
10:22:37,218 DEBUG org.ajax4jsf.framework.ViewHandlerWrapper - Create
new instance of alternate handler class com.sun.facelets.FaceletViewHandler
10:22:37,249 TRACE org.apache.myfaces.lifecycle.LifecycleImpl - Request
is not a postback. New UIViewRoot will be created
10:22:37,249 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,249 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in root WebApplicationContext
10:22:37,249 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Could not
resolve variable 'ajaxContext'
10:22:37,264 TRACE
org.apache.myfaces.application.DefaultViewHandlerSupport - view id after
applying the context suffix: /sandbox/verbatim.xhtml
10:22:37,280 TRACE org.apache.myfaces.application.jsp.JspViewHandlerImpl
- Created view /sandbox/verbatim.html
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG
net.sf.facestrace.phase.listener.TraceResourcePhaseListener - View Root
:/sandbox/verbatim.xhtml
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'traceData' in via original VariableResolver
10:22:37,280 DEBUG org.ajax4jsf.framework.ajax.InitPhaseListener -
Remove init phase listener from factories
10:22:37,280 DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener -
Process after phase RESTORE_VIEW(1)
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG org.apache.myfaces.lifecycle.LifecycleImpl - exiting
from lifecycle.execute in RESTORE_VIEW(1) because getRenderResponse is
true from one of the after listeners
10:22:37,280 TRACE org.apache.myfaces.lifecycle.LifecycleImpl - entering
RENDER_RESPONSE(6) in org.apache.myfaces.lifecycle.LifecycleImpl
10:22:37,280 DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener -
Process before phase RENDER_RESPONSE(6)
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,280 DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener -
PhaseListener enter Before RenderView Phase with ViewId
/sandbox/verbatim.xhtml and RenderKitId HTML_BASIC
10:22:37,296 DEBUG org.ajax4jsf.framework.skin.SkinFactoryImpl - Create
new Skin instance for name DEFAULT
10:22:37,296 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'traceData' in via original VariableResolver
10:22:37,296 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,452 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,452 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,452 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:37,452 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/ajax4jsf-1.1.1.jar!/META-INF/a4j.taglib.xml
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
20.jul.2007 10:22:37 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
20.jul.2007 10:22:38 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/ProgramFiles/ASF/Tomcat6/webapps/iTeam/WEB-INF/lib/entityconverter.jar!/META-INF/entityconverter.taglib.xml
10:22:38,155 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,171 DEBUG
org.ajax4jsf.framework.ajax.xmlfilter.FilterServletResponseWrapper -
Create StringWriter for buffer servlet output
10:22:38,171 DEBUG org.ajax4jsf.framework.renderer.RendererBase - Start
encoding of component _viewRoot with class
org.ajax4jsf.framework.ajax.AjaxViewRoot
10:22:38,171 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,186 DEBUG
org.apache.myfaces.shared_impl.renderkit.RendererUtils - the created
converter is null
10:22:38,186 DEBUG
org.apache.myfaces.shared_impl.renderkit.RendererUtils - returning an
.toString
10:22:38,186 DEBUG
org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase -
renderOutput ''
10:22:38,186 DEBUG org.ajax4jsf.framework.renderer.RendererBase - Finish
encoding of component _viewRoot with class
org.ajax4jsf.framework.ajax.AjaxViewRoot
10:22:38,186 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,186 DEBUG org.ajax4jsf.framework.ajax.AjaxContext - Process
component tree for collect used scripts and styles
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default
value true
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using
default value true
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS'
found, using default value true
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using
default value false
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default
value false
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using
default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using
default value /faces/myFacesExtensionResource
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - No context
init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using
default value true
10:22:38,202 INFO
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig - Starting up
Tomahawk on the MyFaces-JSF-Implementation
10:22:38,202 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'traceData' in via original VariableResolver
10:22:38,202 DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener -
Process after phase RENDER_RESPONSE(6)
10:22:38,202 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,202 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,202 DEBUG
org.springframework.web.jsf.DelegatingVariableResolver - Attempting to
resolve variable 'ajaxContext' in via original VariableResolver
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property facetCount of
component j_id0
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property family of component j_id0
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property rendererType of
component j_id0
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property rendersChildren of
component j_id0
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property facetCount of
component j_id1
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property family of component j_id1
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property rendererType of
component j_id1
10:22:38,202 ERROR org.apache.myfaces.util.DebugUtils -
javax.faces.FacesException: Could not get property rendersChildren of
component j_id1
10:22:38,202 TRACE org.apache.myfaces.util.DebugUtils - View after rendering
========================================
<org.ajax4jsf.framework.ajax.AjaxViewRoot id="_viewRoot"
afterPhaseListener="NULL" ajaxListener="NULL"
ajaxListeners="[Lorg.ajax4jsf.framework.ajax.AjaxListener;@2c6f70"
beforePhaseListener="NULL" facetCount="0" family="javax.faces.ViewRoot"
havePage="false" immediate="false" locale="no" renderKitId="HTML_BASIC"
renderRegionOnly="false" rendered="true"
rendererType="javax.faces.ViewRoot" rendersChildren="false"
selfRendered="false" submitted="false" transient="false"
viewId="/sandbox/verbatim.xhtml">
<com.sun.facelets.compiler.UIInstructions id="j_id0" facetCount="NULL"
family="NULL" rendered="true" rendererType="NULL" rendersChildren="NULL"
transient="true"/>
<com.sun.facelets.compiler.UIInstructions id="j_id1" facetCount="NULL"
family="NULL" rendered="true" rendererType="NULL" rendersChildren="NULL"
transient="true"/>
<html.HtmlOutputText id="j_id2" com.sun.facelets.MARK_ID="1840a51"
converter="NULL" dir="NULL" escape="false" facetCount="0"
family="javax.faces.Output" lang="NULL" localValue="" rendered="true"
rendererType="javax.faces.Text" rendersChildren="false" style="NULL"
styleClass="NULL" title="NULL" transient="true"/>
</org.ajax4jsf.framework.ajax.AjaxViewRoot>
========================================
10:22:38,202 TRACE org.apache.myfaces.lifecycle.LifecycleImpl - exiting
RENDER_RESPONSE(6) in org.apache.myfaces.lifecycle.LifecycleImpl
10:22:38,202 TRACE javax.faces.webapp.FacesServlet - service end
10:22:38,202 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter -
create HTML/XML parser for content type: text/html; charset=UTF-8
10:22:38,202 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter -
Parsing html total time 0ms
10:22:38,202 DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter -
Finished request processing total time 1219ms for uri:
/iTeam/sandbox/verbatim.html
10:22:38,218 DEBUG
org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found at
line 1
10:22:38,218 DEBUG
org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE found
at line 3
10:22:38,233 DEBUG
org.springframework.web.context.request.RequestContextListener - Cleared
thread-bound request context:
[EMAIL PROTECTED]
I also notice here that the processing time for this response is 1219 ms
- which is remarkably slow for such a simple page. Is this because I'm
tracing to console, or could it be some performance issue with regards
to how my application is configured? (I'm using spring, hibernate, ajax,
facelets, myfaces)
regards,
Safurudin Mahic