I have a bean called indexBean
and it has an init
method. My bean is set to be ViewScoped
.
@PostConstruct
public void init(){
...
System.out.println("entered");
...
}
Why the init()
method is called twice when I refresh the page?