首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

jboss rich face3.3.3 的JSF2.0配备附hello world 示例

2012-10-30 
jboss rich face3.3.3 的JSF2.0配置附hello world 示例jboss rich face 从3.3.3开始支持JSF 2.0 但是对JSF

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了。

热点排行