3 Replies Latest reply on Jan 22, 2008 4:34 PM by Gene Campbell

    Long running conversation

    Gene Campbell Newbie

      I have this Seam POJO Action

      public class BeanAction implements Serializable

      public void create(){
      log.debug("Starting Conversation id: "+ Conversation.instance().getId()+" long running?: "+Conversation.instance().isLongRunning());

      When I browse bean.xhtml (facelets/jfc), the log says

      Starting Conversation id: 1 long running?: false

      Why false, thought it should be true?

      And, when I submit a form on the page like this

      <h:commandButton value="Submit to Method" action="#{bean.method}">
      <s:conversationPropagation type="join"/>

      I get an exception saying my bean isn't in the context. And it seems that the conversation isn't available, which would make sense if it truely isn't long running, right? I'm quite confused, so my message may be lacking information to totally make sense. If so, ask questions.

      javax.servlet.ServletException: /bean.xhtml @59,55 binding="#{bean.table}": Target Unreachable, identifier 'bean' resolved to null
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)