f:verbatim and myfaces 1.2.0

2007-07-20 Thread Safurudin Mahic

I'm currently trying out myfaces 1.2.0.
I noticed a small change in behaviour for the f:verbatim tag.

Before (with myfaces 1.1.6) I was able to do the following: (note I'm 
using facelets)


f:verbatim
   #{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?




regards,
Safurudin Mahic


Re: f:verbatim and myfaces 1.2.0

2007-07-20 Thread Matthias Wessendorf

f:verbatim


f:verbatim ?


#{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?





regards,
Safurudin Mahic




--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


Re: f:verbatim and myfaces 1.2.0

2007-07-20 Thread Safurudin Mahic

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