2008-05-22

JSF1.2中 ValueExpression的用法

关键字: jsf1.2中 valueexpression的用法
在1.2之前,可以向下面一样使用ValueBinding: ValueBinding vb = facesContext.getApplication().createValueBinding("#{bindings}"); DCBindingContainer dc = (DCBindingContainer) vb.getValue(facesContext);  但是在JSF1.2中,需要这样使用: /** * Method for taking a reference to a JSF binding expression and returning ...
2008-05-16

Tomcat中如何打开Sun JSF RI 1.2中的日志

关键字: 如何打开sun jsf ri 1.2中的日志
为了更加清楚的了解JSF请求在每一个生命周期中的执行情况,我们有时候需要打开JSF本身的log,查看log 输出情况。本文以Sun的JSF RI 1.2为例,说明如何打开log。  通过源码可以看出, Sun JSF RI 1.2使用的日志是Java.util.Logging,这个与Apache的Log4J略有不同,是JVM级别的log,但是在Tomcat 6中对这个Log进行了扩展,详细的扩展信息可以参考http://tomcat.apache.org/tomcat-6.0-doc/logging.html,这里我们仅仅介绍如何使用。    打开方法很简单, ...
  • 00:50
  • 浏览 (552)
  • 评论 (1)
  • 分类: JSF
  • 发布在 JSF 圈子
2008-04-25

JSF环境配置(JDK6+Eclipse3.3+Tomcat 6.0+JSF1.2+JSTL1.1)

关键字: jsf环境配置 (jdk6+eclipse3.3+tomcat 6.0+jsf1.2+jstl1.1)
第一步: 下载安装 JDK 6 Update 3      http://java.sun.com/javase/downloads/index.jsp JDK 6 Update 3 The Java SE Development Kit (JDK) includes the Java Runtime Environment (JRE) and command-line development tools that are useful for developing applets and applications. --------- ...
2008-03-31

不可不看,JSF1.2 changes

关键字: 不可不看,jsf1.2 changes
变化还是挺多的,仔细看看,可以省掉很多郁闷的时间哦。The numbers in the text below refer to issue numbers in the issue tracker found at<https://javaserverfaces-spec-public.dev.java.net/servlets/ProjectIssues>.■ 2 - Clarify that for client side state saving, the state should be encrypted for security.■ 3 - Clarify the sp ...
  • 17:04
  • 浏览 (710)
  • 评论 (2)
  • 分类: JSF
  • 发布在 JSF 圈子
2008-03-31

JSTL 1.2 下载

关键字: jstl 1.2 下载
在网上找JSTL找了一会,不太好找,就放在这里一份了: 网络下载:http://repo1.maven.org/maven2-repoclean-java.net/jstl/jstl/1.2/附件直接下载: 
2008-03-31

JSF 1.2中对以前JSF的修改

关键字: outline of changes to javaserver faces spec since 1.1
Features that are unavailable as of this writing are listed in gray, available features are listed in non-gray text. Available features are present in the latest release of the official Faces implementation on java.net which continues to run on J2EE 1.3 containers. Note that the content in ...
2008-03-28

JSF 各版本一览

关键字: jsf 各版本一览
JSF started its journey from version 1.0 and now it has come to the latest version of JSF is 1.2. The listing of versions released so far are :JSF 1.2 (11 may 2006) -     Latest release of JSF specification. JSF 1.1 (27 may 2004) -     Bug fix release. No spec ...
2008-03-25

JSF 背景

关键字: jsf 背景
自从第一个web应用程序Struts于2001年6月发布开始,Java世界至今开始了长达7年的框架大战.JSF作为其中web 框架家族的一员,脱颖而出,被JCP青睐,荣登官方web标准.(JSF的主要架构师有Struts作者Craig R.McClanahan).仍然JSF一直发展的很不顺,Struts长期牢牢占据着市场份额,成为现实中的工业标准;而EJB2.0的没落,Spring,Hibernate的兴起更是让所谓的官方标准长期备受冷落.当Java开发者们为SSH整合而乐此不疲的时候,Sun带着它的JavaEE5又重新杀了回来,EJB3.0+JSF1.2(或EJB3.0+Seam)作为官方推 ...
2008-03-09

在Dreamwear中开发JSF

关键字: 在dreamwear中开发jsf
可以在Dreamwear中安装JSF插件,然后利用Dreamwear开发JSF。1。首先,到http://www.jsftoolbox.com/download/protected/files.jsf?cid=65584&clr=true到中下载插件。2 nstall the software using the Macromedia Extension Manager (see screenshot below). You can launch the Extension Manager from Start > Program Files > Macromedi ...
2007-12-21

JSF中Exception的处理

关键字: JSF Exception handler Exception handling
JSF中Exception的处理 环境: myfaces1.1.5,richfaces1.3,Websphere6.1 目标: 统一处理应用中的Exception,解析其中的错误信息,使用Globalization 来显示消息。 分析: JSF中有两类error,一类是input error,是由用户输入错误的信息造成的,一般在input 验证或者转化过程中会出现;另一类是application error,是系统中可能出现的各种错误,如SQLException、NullPointerException等。对于application error,在系统中会统一抛出 ...
  • 15:54
  • 浏览 (987)
  • 评论 (1)
  • 分类: JSF
  • 发布在 JSF 圈子
2007-12-17

Why JSF

JavaServer Faces is extremely interoperable with other frameworks. Most of this flexibility lies in JSF's Application composite which includes: a default ActionListener, ELResolver, StateManager, NavigationHandler, and ViewHandler.
2007-11-17

源码讲解renderResponse和responseComplete的区别

关键字: renderResponse responseComplete
看源代码: responseComplete: /**       * <p>Signal the JavaServer Faces implementation that the HTTP response       * for this request has already been& ...
  • 00:40
  • 浏览 (535)
  • 评论 (1)
  • 分类: JSF
  • 发布在 JSF 圈子
2007-11-15

JSF 源代码赏析之Lifecycle

关键字: JSF sourceCode lifecycle
   JSF的生命周期在JSF应用中起着至关重要的作用,每一个JSF请求的处理都需要经过一次生命周期,本文从源码的角度分析JSF的生命周期。    在讨论生命周期之前,我们先要讨论FacesContext的一些元素,他们在整个生命周期中扮演了非常重要的角色。么个JSF应用必须保存它所处理的请求信息,FacesContext为处理请求和生成响应保存了所有必需的上下文信息,具体而言,它包括:      1.信息队列,MessageQueue,保存所有的消息      2.当 ...
1.首先到这个地方下载maven http://maven.apache.org/download.html 2. 打开/conf/settings.xml 这个文件 a) 在 profiles部分添加:  <profile>      <id>RichFaces</id>     <repositories>       &nbs ...
2007-11-02

JSF 标准 转换器&验证器 文档

关键字: JSF standard Converter
下面是两篇文档 http://www.ibm.com/developerworks/java/library/j-jsf3/ http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Ceventvalidate%7Csf_avc_converters~html/   The rest of the built-in converters do not have their own tags. These ...
学习JSF 多日,现在开始看看源代码。 首先是FacesServlet类了,作为一个前端控制器,每一个JSF请求都要通过FacesServlet,然后再到其他阶段,那么,FacesServlet 到底做了些什么操作呢? 文件头部的注释 /** * FacesServlet is a servlet that manages the request * processing lifecycle for web applications that are utilizing JavaServer * Faces to ...
  • 00:08
  • 浏览 (1203)
  • 评论 (5)
  • 分类: JSF
  • 发布在 JSF 圈子
2007-10-18

Websphere 上部署Richfaces 3.10 Demo

关键字: Richfaces 3.10
Websphere上部署 richfaces的demo一直有问题,下面发一个 project,可以直接在Websphere6.0.22上部署。下载附件后将1.zip和2.zip加压后放到project的lib中就可以了 。
2007-10-10

JSF和Ext2综合使用方案

关键字: JSF Ext2
最近使用JSF进行系统开发,但是在系统开发中发现,JSF的layout功能并不是很强大(这里使用的是richFaces,但是没有使用Facelet,因而也就没有Facelet的模板功能),除此之外,JSF在生成的页面上会添加大量的额外代码,单从页面源代码的角度上看,JSF是出奇的差,会生成一堆又烂又长的代码。又在网上看到Ext2的漂亮外表,被其折服,于是使用Ext作为布局,在里面嵌入JSF,结果发现效果也是很不错的。      主要思路在于,在页面上使用EXT的layout布局,在这个布局里面嵌套JSF代码,由于JSF使用的是richfaces,两者的 ...
2007-09-27

sitemesh,myfaces,richfaces 的集成解决方案

关键字: sitemesh,myfaces,richfaces 集成
在集成sitemesh,myfaces,richfaces 时,会遇到各种问题,如:  1.Could not invoke the service() method on servlet Faces Servlet. Exception thrown : javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! 2.java.lang.NoClassDefFoundError: Error while defining class: or ...
2007-09-26

richfaces 精讲

关键字: ajax4jsf richfaces 总结
Ajax components attributes help RichFaces to expose its features. Most of the attributes have default values. Thus, you can start working with RichFaces without knowing the usage of these attribute. However, their usage allows to tune the required Ajax behavior very smoothly. Re-Rendering reRende ...
WID6.0.22中使用的WPS6 目前使用的是JSF1.1,与MyFaces的RI是不兼容的,为了在项目中使用MyFaces以及Richfaces,需要额外的一些配置,其中需要修改一些Jar包,使之成为java1.4版本。 其次,还需要修改classLoader的加载顺序,改为parent Last的加载方式,因为默认的加载方式是parent first,这样会优先加载WAS中的JSF RI,从而是MyFaces的RI不会加载。修改方法是进入console后进入web module,然后进入xxx。war,就可以修改了。
2007-09-18

Ajax4jsf 快速起步

关键字: Ajax4jsf
一、准备工作 1.下载文件: http://labs.jboss.com/jbossrichfaces/downloads 当前最新的版本是3.10,9月12日发布的。 2.安装。     解压后,将"richfaces-api-3.1.0.jar" , "richfaces-impl-3.1.0.jar" , "richfaces-ui-3.1.0.jar"这三个文件拷贝到WEB-INFO/lib目录下,    修改web.xml,应该是这个样子: ...
2007-09-12

JSF 中处理分页问题

关键字: JSF 分页
WorkingWithLargeTables 本文转自http://wiki.apache.org/myfaces/WorkingWithLargeTables,由于该文最后一部分没有jsp代码部分,所有又加上了一些jsp代码。 Components t:dataModel and t:dataScroller work together nicely to allow a user to "page" through a set of a few dozen to a few hundred records. However the implementation ...
hintcnuie
搜索本博客
我的相册
90f50603-7a67-3b98-9e1a-d6ec48edb2f5-thumb
facebook application break down
共 5 张
最近加入圈子
存档
最新评论