0 Replies Latest reply on Jun 19, 2008 1:56 AM by infinity2heaven

    SFSB retaining values from the User Session, not fetching db results

    infinity2heaven Novice

      SFSB with Conversation scope.


      @In(required=false) @Out(required=false, scope=ScopeType.SESSION)
      private Date selectedTimePeriod;
              
      @In(required=false) @Out(required=false, scope=ScopeType.SESSION)
      private Fof selectedFof;  
      
      @In(required=false) @Out(required=false)
      private FofPerformanceDetail fofPerformanceDetail;
      
      @Begin(join=true)
      public void search()
      
      public void method2()
      
      public void method3()
      
      @FlushMode(value=FlushModeType.COMMIT)     
      public void save()



      Scenario: When user clicks on Search, results are fetched and shown. Now when I change values on the UI form elements (richfaces) and simply click 'Search' again, the search query is fired, however the screen is not refreshed with the db values, instead it is locked with the user changed values on the UI. The same problem occurs, when the record is updated in the db, behind the scenes. For some reason, latest values are not being refreshed on the screen. This scenario doesn't occur when I go away from this page, and come back and query with the same 'search' (at which point, it refreshes the screen with latest values from the db).


      I can confirm that the hql query is being fired every time refreshed.


      I'd really appreciate any tips!


      The facelets snippet ...



      <a4j:commandButton id="searchButton" value="search" styleClass="buttonNormal"  action="# 
         {manageFofPerformance.search}" reRender="fofPerformanceTable" />
                                
      ....
       <a4j:outputPanel id="fofPerformanceTable">               
          ....
         ....
        </a4j:outputPanel>