Version:  MyFaces 1.1.3

As far as the point in the lifecycle....A commandButton has invoked an
action....the second to last call (before it returns null) of the action
method calls the method to restore a previous view...so is it Update Model
Values or Invoke Application?

Thanks.


Dennis Byrne wrote:
> 
> At which point in the lifecycle are you calling this method?  Which
> version of MyFaces?  
> 
> See this [1] for a very looong history on the subject.  The behavior of
> this method has changed across JSF specs and JSF implementations
> accordingly.
> 
> Dennis Byrne
> 
> [1] https://issues.apache.org/jira/browse/MYFACES-1155
> 
>>-----Original Message-----
>>From: fischman_98 [mailto:[EMAIL PROTECTED]
>>Sent: Friday, September 29, 2006 11:29 AM
>>To: [email protected]
>>Subject: Re: getRenderKitId returning null
>>
>>
>>You're right and the title will lead to confusion...what I meant to ask
is...
>>
>>Why is the call to getRenderKit return null?
>>
>>I have nothing set in faces config regarding Renderer....so any
thoughts!?!?
>>
>>
>>
>>Jeff Bischoff wrote:
>>> 
>>> He's right, your code is simply throwing the exception when it discovers 
>>> that getRenderKitId() returns null. So you should be asking why the ID 
>>> is null...
>>> 
>>> Dennis Byrne wrote:
>>>> The stack trace suggests this is not happending when you call
>>>> UIViewRoot.getRenderKitId().
>>>> 
>>>> Is this code from Nico in the MyFaces repository?
>>>> 
>>>> Dennis Byrne
>>>> 
>>>>> -----Original Message-----
>>>>> From: fischman_98 [mailto:[EMAIL PROTECTED]
>>>>> Sent: Thursday, September 28, 2006 09:36 PM
>>>>> To: [email protected]
>>>>> Subject: getRenderKitId exception
>>>>>
>>>>>
>>>>> I'm getting an exception (see below) when calling
>>>>> uiViewRoot.getRenderKitId().  I've started reading about renderers
>>>>> with
>>>>> custom components, but I'm not doing anything special here...
>>>>>
>>>>> Anyone know how to solve this?
>>>>>
>>>>> BTW - I'm using this from excellent code provide by Nico Krijnen Mar
>>>>> 14,
>>>>> 2006; 09:58am...
>>>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>>>>  
>>>>>
>>>>> if (uiViewRoot.getRenderKitId() == null) {
>>>>>            // Just to be sure...
>>>>>            // uiViewRoot.setRenderKitId(renderKitId);
>>>>>           System.out.println("4.2");
>>>>>           throw new RuntimeException("FIX ME IF THIS HAPPENS");
>>>>> }
>>>>>
>>>>> java.lang.RuntimeException: FIX ME IF THIS HAPPENS
>>>>>   at
>>>>> com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
>>>>>   at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
>>>>>   at com.ngsimages.history.ViewState.restore(ViewState.java:57)
>>>>>   at
>>>>> com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
>>>>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>>>   at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>   at
>>>>> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>>>>>   at
>>>>> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>>>>>   at javax.faces.component.UICommand.broadcast(UICommand.java:106)
>>>>>   at
>>>>> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>>>>>   at
>>>>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>>>>>   at
>>>>> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>>>>>   at
>>>>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>>>>>   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>>>>   at
>>>>> org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>>>>   at
>>>>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>>>>   at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>>>>   at
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>>>>   at
>>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>>   at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>>   at
>>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>>>>>   at
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>>>>>   at
>>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>>   at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>>   at
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>>>>   at
>>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>>   at
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>>>>   at
>>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>>>>   at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>>   at
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>>   at
>>>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>>>>   at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>>>   at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>>>>   at
>>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>>>   at
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>>>>   at
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>>>>>   at
>>>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>>>>   at
>>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>>>>>   at java.lang.Thread.run(Unknown Source)
>>>>>
>>>>> -- 
>>>>> View this message in context:
>>>>> http://www.nabble.com/getRenderKitId-exception-tf2354536.html#a6558041
>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>>
>>-- 
>>View this message in context:
http://www.nabble.com/getRenderKitId-exception-tf2354536.html#a6567156
>>Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getRenderKitId-returns-null-tf2354536.html#a6567621
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to