I have a @RequestScopedbean with a property List.
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.springframework.stereotype.Controller;
@Controller
@ManagedBean
@RequestScoped
public class MyBean implements Serializable {
private List list;
}
This property is related to datatable:
<ice:dataTable value="#{myBean.list}" ..other stuff.. />
The list is dynamically populated without problems, and data of type datatable is displayed without problems. But if I go to another page and then return to the original page, then the data will still contain the data of the initial request. Shouldn't it be empty again? If the bean is the request area, it should be destroyed after the request, and I should get and empty the datatable as a start.
, (, Firefox), datatable , (, Chrome) , ! , bean .
?
1: . , tomcat, .
2. , , . beans @Controller Spring. , @Autowired . , ? , Spring JSF2.