0 Replies Latest reply on May 13, 2007 7:18 PM by Tony Herstell

    Conversation picker either not working or conversations won'

    Tony Herstell Master

      As requested I have put this into the forum (was originally http://jira.jboss.com/jira/browse/JBSEAM-1051):

      I have done some more work investigating this, with base latest seam 1.2.1GA and NO icefaces.

      I can get a the conversation picker to render!

      But if I hit the destory button then it does not destroy the conversation, it seems, as its still displayed and the conversation-id in the address bar remains the same!

      It stays displayed until after I call an @End on the conversation.

      At this point the conversation still appears to not be killed, BUT the display of the conversation now stops!


      Am I missing something?


      This is a VERY VERY simple seam app!

      <!DOCTYPE pages PUBLIC
       "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
       "http://jboss.com/products/seam/pages-1.2.dtd">
      
      <!-- no-conversation-view-id sends the user to a given screen if there is no conversation when the given page is accessed -->
      <!-- timeout will keep the bean alive a lot longer than the session timeout so it will not be removed whilst the session is still reasonably "active" -->
      <pages no-conversation-view-id="/pages/prospectRegistration.xhtml">
      
       <!-- Gives conversations a name to make the visible in the coversation picker -->
       <page view-id="/pages/prospectRegistration.xhtml" timeout="300000" action="#{conversation.begin}">
       Reason: Registration of Prospect
       </page>
      
       <!-- Gives conversations a name to make the visible in the coversation picker -->
       <page view-id="/pages/prospectRegistrationSuccessful.xhtml" timeout="300000">
       Reason: Successful Registration of Prospect
       </page>
      
      </pages>
      



      /* (non-Javadoc)
       * @see org.adscale.prospect.ProspectRegistrationController#processDetails()
       */
      public String process() {
       log.debug(">processUserDetails" +prospect.toString());
       facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO, "prospect_registered_successfully");
       em.persist(prospect);
       log.debug("<processUserDetails");
       return "success";
      }
      
      /* (non-Javadoc)
       * @see org.adscale.prospect.ProspectRegistrationController#finish()
       */
      public String finish() { <<<<<<<<----- Putting @End on this does not change the conversationId, but it DOES stop the conversation picker displaying anyhting..
       log.debug(">finish");
       log.debug("<finish");
       return "gotoProspectRegistration";
      }
      
      /* (non-Javadoc)
       * @see org.adscale.prospect.ProspectRegistrationController#destroy()
       */
      @Remove @Destroy
      public void destroy() {
       log.debug(">destroy");
       log.debug("<destroy");
      }
      



      <!-- Navigation rules for the AdScale App -->
       <navigation-rule>
      <navigation-case>
      <from-outcome>prospectRegistration</from-outcome>
      <to-view-id>/pages/prospectRegistration.xhtml</to-view-id>
      <redirect />
      </navigation-case>
       </navigation-rule>
      
      <navigation-rule>
      <from-view-id>
       /pages/prospectRegistration.xhtml
       </from-view-id>
       <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/pages/prospectRegistrationSuccessful.xhtml</to-view-id>
      <redirect/>
      </navigation-case>
      </navigation-rule>
      
      <navigation-rule>
      <from-view-id>
       /pages/prospectRegistrationSuccessful.xhtml
       </from-view-id>
       <navigation-case>
      <from-outcome>gotoProspectRegistration</from-outcome>
      <to-view-id>/pages/prospectRegistration.xhtml</to-view-id>
      <redirect/>
      </navigation-case>
      </navigation-rule>
      


      Is this related to
      http://jira.jboss.com/jira/browse/JBSEAM-1005