package onCreate; import org.apache.beehive.netui.pageflow.FacesBackingBean; import org.apache.beehive.netui.pageflow.annotations.Jpf; import javax.faces.context.FacesContext; import javax.faces.application.FacesMessage; @Jpf.FacesBacking public class page1 extends FacesBackingBean { protected void onCreate() { String msg = "This message was added during " + getClass().getName() + ".onCreate()."; FacesContext.getCurrentInstance().addMessage("foo",new FacesMessage(msg)); } public String getFoo() { return "This is a property in the backing bean."; } }