Hi all,

I am having a weird issue with inputSuggestAjax:
I have a jsp page that is being presented using some bean. In addition I
have a inputSuggestAjax that is being "connected" to another bean.
now, I am having 2 weird things:
1) Whenever there is an ajax request, both beans are being instantiated. I
was expecting only the bean that is "connected" with the inputAjax to be
created. Anyway, assuming this is a part of the mechnism of the control that
instantiates all beans involved in the view, I can't understand, why
hiddenFields parameter values are not being sent as well with the request.
This caues exception in my main bean, since it is a request scope bean, than
knows to load its objects from a hidden field value containing the object
id.
2) I overriden the first problem with "null" parameter protection. This
makes things work. both beans are created. But only the one "connected" with
the inputSuggestAjax is relevant to me. the ajax method bean is being called
as expected. But after a few seconds of things working propertly and playing
with the component, I suddenly get this exception:
No saved view state could be found for the view identifier:
/cmp_targeting.jspx
    at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
    at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
    at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
com.todacell.ui.view.filter.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:114)
    at
com.todacell.ui.view.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:61)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)

and the component stops to function.

Does anyone has a clue what is going on there?

Thanks,
Guy.

Reply via email to