5 Replies Latest reply on Feb 23, 2008 1:48 PM by Mikael Andersson

    Starting a conversation with @Begin problem

    Mikael Andersson Master

      Hi


      I have a simple question, why is it that the conversation isn't promoted to a long running one with the code below?


      Using seam 2.0.1.GA


      @Name("calculationStats")
      @Scope(ScopeType.CONVERSATION)
      public class CalculationStatisticsBacking {
      
          @In("#{CalculationStatisticsDAO}")
          private CalculationStatisticsDAO calcStatDao;
      
          private List<CalculationStatistics> data;
      
          private String type;
      
          @Begin(join=true)
          public String search(){
      
              data = calcStatDao.find(type);
      
              return null;
          }
      
      




      The xhtml page is a super simple one which calls the search method and displays the result in a table.


      I added #{conversation.longRunning} to the page and it is false after the submission (which is done with a h:commandButton). Also output the current conversation id which keeps incrementing.


      Cheers,
      Micke