netbeans开发学习(1)
来源:互联网 发布:福富软件待遇 编辑:程序博客网 时间:2024/06/05 20:49
RichFaces 4.x Demo
a4j:commandButton
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
ui:composition
xmlns
=
"http://www.w3.org/1999/xhtml"
xmlns:h
=
"http://java.sun.com/jsf/html"
xmlns:f
=
"http://java.sun.com/jsf/core"
xmlns:ui
=
"http://java.sun.com/jsf/facelets"
xmlns:a4j
=
"http://richfaces.org/a4j"
xmlns:rich
=
"http://richfaces.org/rich"
>
<
h:outputStylesheet
>
.outhello {
font-weight: bold;
}
</
h:outputStylesheet
>
<
h:form
>
<
h:panelGrid
columns
=
"3"
>
<
h:outputText
value
=
"Name:"
/>
<
h:inputText
value
=
"#{userBean.name}"
/>
<
a4j:commandButton
value
=
"Say Hello"
render
=
"out"
execute
=
"@form"
/>
</
h:panelGrid
>
</
h:form
>
<
br
/>
<
a4j:outputPanel
id
=
"out"
>
<
h:outputText
value
=
"Hello #{userBean.name} !"
rendered
=
"#{not empty userBean.name}"
styleClass
=
"outhello"
/>
</
a4j:outputPanel
>
</
ui:composition
>
后台Bean
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.web.ManagerBean;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
/**
*
* @author dell
*/
@Named(value = "userBean")
@RequestScoped
public class UserBean {
private String name;
public UserBean() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
- netbeans开发学习(1)
- netbeans开发学习(2)
- NetBeans中JSF应用开发(1)
- NetBeans中JSF应用开发(1)
- NetBeans学习笔记1
- [转]NetBeans开发Applet方法实例学习
- Netbeans 学习
- Netbeans 学习
- NetBeans中JSF应用开发(2)
- NetBeans中JSF应用开发(4)
- NetBeans中JSF应用开发(5)
- NetBeans中JSF应用开发(6)
- Netbeans开发—PersonalCrad(Version:2.0)
- 使用NetBeans进行J2ME开发(一)
- 使用NetBeans进行J2ME开发(二)
- NetBeans中JSF应用开发(2)
- NetBeans中JSF应用开发(4)
- NetBeans中JSF应用开发(5)
- 【WebServices前传二部曲】上部_DTD参数实体和Schema数据类型
- 《一》 将cocos2dx2.0.4 的sample工程移植到android 并真机调试
- CXF 导致 Webstart 应用重复加载
- Linux命令
- 解密Facebook产品的开发流程
- netbeans开发学习(1)
- RedHat gcc 安装
- STL算法-交集,并集,差集,对称差
- C,C++宏中#与##的讲解
- java调用ffmpeg获取视频时长
- 戴尔将为奔驰多款车型设计专业的车载智能系统
- [转]基于C#的Socket简单通讯
- vc++2008中如何断点调试异常数据-1.#IND
- 使用maven-war-plugin 对Maven项目进行动态打包