import java.io.Serializable; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author werpu2 */ @ManagedBean @ViewScoped public class ViewScopedBugMaster implements Serializable { String viewScopedData = "original value"; static boolean first = true; @PostConstruct public void postConstruct() { System.out.println("Post construct"); if(first) { viewScopedData = "overridden data"; first = false; } } public String doDummy() { return "master"; } public String getViewScopedData() { return viewScopedData; } public void setViewScopedData(String viewScopedData) { this.viewScopedData = viewScopedData; } }