package org.jboss.seam.example.registration.test;
import javax.faces.context.FacesContext;
import org.jboss.seam.mock.SeamTest;import org.testng.annotations.Test;
public class RegisterTest extends SeamTest{ @Test public void testLogin() throws Exception & ...
- 16:13
- 浏览 (105)
- 评论 (0)
- 分类: JSF 1.2
- 发布在 JBoss SEAM 圈子
http://www-128.ibm.com/developerworks/cn/java/j-facelets/#download
- 10:04
- 浏览 (197)
- 评论 (0)
- 分类: JSF 1.2
- 进入论坛
- 发布在 JBoss SEAM 圈子
faces-comfig.xml
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1 ...
我们在此用到的是spring的AOP、DAO、IOC,其他没有用到,而spring的DAO是建立在Hibernate基础之上的,具体的应用我们将在以下来讲解。
1、添加spring,hibernate,jsf的jar
a、在eclipse的菜单MyEclipse中的菜单项中,选择Hibernate、JSF、Spring,,各自选择的版本是spring2.0,hibernate3.0,jsf1.1。
b、这样各自的jar包就自动的加入到项目中了。
c、各自自动加入的配置文件和java类分别为:
Spring: applicationContext.xml
Hibernate: hib ...
public class FacesUtils {
/**
* Get servlet context.
*
* @return the servlet context
*/
public static ServletContext getServletContext() {
return (ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext();
}
/**
* Get managed bean based on the bean name.
...
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<head>
<title><h:outputText value="#{msgs.windowTitle}" /></title>
</head>
<body>
<h:outputText value="#{msgs.pageTit ...
学习新技术的一个最好方法,就是通过简单实际的示例去实践。基于这个目的,本章用JavaServer Faces(JSF)技术开发一个典型的Web注册应用程序。Web注册应用程序提供的功能足以展示如何运用JSF的核心技术,例如用户界面组件、托管bean、导航模型以及基本的数据验证和转换。在后续章节中,会把这个注册应用程序整合进一个更大更全面贯穿本书的“虚拟教练”示例应用程序。现在,通过这个注册应用程序,可以理解JSF应用程序的关键元素和架构。另外,它还提供了JSF开发过程的概述。
除了介绍如何构建简单的JSF注册应用程序,本章还介绍了如何设置JSF开发环境,有了开发环境,就可以编译、打包和运行 ...
1. <html>
2. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
3. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
4. <f:view>
5. <head>
6. <title>
7. <h:outputText value="#{msgs.windowTitle}"/>
8. </title>
9. </head>
10. <body>
11. <h:form id="r ...
When you implement a web application, it is a good idea to collect all message
strings in a central location. This process makes it easier to keep messages consistent
and, crucially, makes it easier to localize your application for other locales.
In this section, we show you how JSF makes it simple ...
- 浏览: 6539 次
- 性别:

- 来自: 合肥

- 详细资料
搜索本博客
我的相册
SL372159
共 29 张
共 29 张
最近加入圈子
链接
最新评论
-
JBPM JPA Spring 闹别 ...
JSPM的DB建议另外配置一个库,跟业务系统的库分开 ------------ ...
-- by isky -
JBPM JPA Spring 闹别 ...
JSPM的DB建议另外配置一个库,跟业务系统的库分开。
-- by 差沙 -
JBPM JPA Spring 闹别 ...
我也想知道,这方面的资料倍儿少
-- by rockkratos -
C# Reflection
sdfgsdf ds ddddddddddddddddddddd ...
-- by sonnywanger -
C# Reflection
路过。。。。
-- by wsq777






评论排行榜