jsf之参考
快速入门:
JSF学习资料
http://yuping.javaeye.com/blog/115857
研究:
http://myfaces.apache.org/core11/javadoc.html
Javadoc (API)
TLD Links
错误讯息的使用
UserBean.java
public String loginUser() {
if("myeclipse".equals(getUserName()) && "myeclipse".equals(getPassword()))
return "success";
FacesContext facesContext = FacesContext.getCurrentInstance();
FacesMessage facesMessage = new FacesMessage(
"You have entered an invalid user name and/or password");
facesContext.addMessage("loginForm", facesMessage);
return "failure";
}
页面还用不用message来输出上面new 的FacesMessage呢?