I have one managed bean in viewscope i want to reset form which is using this scope. According to Baluc from this post Reset JSF Backing Bean(View or Session Scope)
I did the same in my code :
public String reset(){
FacesContext.getCurrentInstance().getViewRoot().getViewMap().remove("myBean");
return "SamePage?faces-redirect=true";
}
But it is not working. Can some tell any solution .