jboss rich face3.3.3 的JSF2.0配置附hello world 示例
jboss rich face 从3.3.3开始支持JSF 2.0 但是对JSF2.0的内建FACLET不支持。下面展示如何在JSF2.0中使用rich face
首先配置web.xml
?接下来是faces-config.xml 定义一个hello的managementben
?接下来,编写managebean的代码
package com.richface.mbeans;import java.util.Date;public class HelloBean {private Date current;/** * @return the current */public Date getCurrent() {return current;}/** * @param current the current to set */public void setCurrent(Date current) {this.current = current;}public String sayHello(){System.out.println("hello"+current.toLocaleString());return "success";}}?最后部署到tomcat上就OK了。