2008-06-05

JBoss SeamTest 断言问题

关键字: jboss seam test
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 & ...
http://www-128.ibm.com/developerworks/cn/java/j-facelets/#download
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 ...
isky
搜索本博客
我的相册
B4a53845-f18b-3b2c-8f27-319d394b08e1-thumb
SL372159
共 29 张
存档
最新评论