myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Rocchio" <>
Subject RE: Trinidad 2.0/JSF2.0/Facelets - Issues with ViewHandler I think
Date Wed, 26 Jan 2011 02:37:43 GMT
Thank you SO MUCH Max.  That was a perfect explanation and completely solved my problem!

-----Original Message-----
Sent: Tuesday, January 25, 2011 5:31 PM
To: MyFaces Discussion
Cc: Catherine Rocchio
Subject: Re: Trinidad 2.0/JSF2.0/Facelets - Issues with ViewHandler I think

Hi Catherine,

You do not need to have an entry for ALTERNATE_VIEW_HANDLER with 
Trinidad 2.0.

You are getting the error because Trinidad is not yet compatible with 
partial state saving in JSF 2.0.
Since partial state saving is enabled by default when Facelets are used, 
you need to explicitly disable it.
Add the following context parameter in web.xml:


Hope this helps,
Max Starets

On 1/25/2011 5:23 PM, Catherine Rocchio wrote:
> Hi there,
> We are new to using JSF/Facelets etc (of course!) and we are having a very frustrating
> With:  MyFaces 2.0, Trinidad 2.0 Alpha, and Facelets.
> Generally, my question is this:
> How should the ViewHandler be defined for Facelets to work with Trinidad tags?  An entry
in web.xml only?  I see all sorts of conflicting and/or old information out there.  Specifically,
SHOULD I define an entry for ALTERNATE_VIEW_HANDLER and what should that be set to?  I don't
have a com.sun.facelets library anywhere in my setup.. (should I?  Where should I get that
from?) - and I've also seen mention of this class file - org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler
- but it doesn't exist either.
> Specifically, I have a VERY basic xhtml page set up with some Trinidad tags - and a backing
bean.  The same old login page that everyone in the world uses - and I have navigation set
to move to another page when I hit at button - and the rules are all defined.
> No matter WHAT I do - I constantly get this error upon hitting any sort of button/widget
that implies navigation...
> javax.faces.FacesException: java.lang.NullPointerException
> 	at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(
> 	at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
> 	at javax.faces.webapp.FacesServlet.service(
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(
> 	at org.apache.catalina.core.StandardContextValve.invoke(
> 	at org.apache.catalina.core.StandardHostValve.invoke(
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(
> 	at org.apache.catalina.core.StandardEngineValve.invoke(
> 	at org.apache.catalina.connector.CoyoteAdapter.service(
> 	at org.apache.coyote.http11.Http11Processor.process(
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> 	at$
> 	at Source)
> Caused by: java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase._getRendererImpl(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase._cacheRenderer(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(
> 	at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(
> 	at javax.faces.component.UIComponentBase.processDecodes(
> 	at javax.faces.component.UIViewRoot._processDecodesDefault(
> 	at javax.faces.component.UIViewRoot.access$400(
> 	at javax.faces.component.UIViewRoot$ApplyRequestValuesPhaseProcessor.process(
> 	at javax.faces.component.UIViewRoot._process(
> 	at javax.faces.component.UIViewRoot.processDecodes(
> 	at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
> Any hints or thought would be much appreciated.
> Catherine

View raw message