0 Replies Latest reply on Jun 26, 2008 4:02 PM by kavi arasu

    Datatable time out issue

    kavi arasu Newbie


      Hi im using datatable to display the values dynamically..
      when the users fill the rows of data and insert immedietly the values are inserting , but when the keep page ideal for some time and insert the values are returning as null.
      I have a pasted sample of my JSF and Bean class.


      JSF page


      <rich:dataTable  value="#{states}"  id="dt" var="f1" style=" width : 100%">
      
      
      <rich:column style=" width : 10%;">
      
      <h:inputText   value="#{f1.region}" />
      
      </rich:column>
      
      <rich:column style=" width : 10%;">
      
      <h:inputText   value="#{f1.stateName}" />
      
      </rich:column>
      
      <rich:column style=" width : 13%;">
      
      <h:selectOneMenu value="#{addCity[f1]}">
      
      
      <f:selectItems value="#{stateItem}" />
      
      </h:selectOneMenu>
      
      </rich:column>
      
      
      </rich:dataTable>


      Bean Class


      
      @Name("test")
      
      @Stateful
      
      @Scope(SESSION)
      
      @Synchronized(timeout=1000000)
      
      public class TestAction implements Test,Serializable
      
      {
      
      
      @PersistenceContext(type=PersistenceContextType.EXTENDED)
      
           private EntityManager em;
      
      
      @Out(required=false)
      
           List <TblStatesCapital> states;
      
      
      @Out(required=false,scope = SESSION)
      
           Map<TblStatesCapital, String> addCity;
      
      }
      
      
      
      


      After i submit immedietly the values are hitting my bean but after some times the values are coming null


      Thanks and regards
      Kaviarasu