In: Computer Science
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class Beannn {
private String message = "Hello managed Bean";
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
Unmanaged Bean:public class unmanaged{
private String message = "Hello unmanaged Bean";
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}