计算机应用 ›› 2009, Vol. 29 ›› Issue (07): 1764-1766.

• 多媒体与软件技术 • 上一篇    下一篇

基于JSF定制生命周期的Ajax组件开发

彭胜1,刘卫国2   

  1. 1. 湖南省吉首市吉首大学数学与计算机学院
    2. 中南大学信息科学与工程学院
  • 收稿日期:2008-12-22 修回日期:2009-02-27 发布日期:2009-07-01 出版日期:2009-07-01
  • 通讯作者: 彭胜
  • 基金资助:

Development of Ajax component based on JSF custom lifecycle

  • Received:2008-12-22 Revised:2009-02-27 Online:2009-07-01 Published:2009-07-01

摘要:

为提高JSF组件的客户端交互能力,在分析JSF定制生命周期实现机制的基础上,提出了一个用于开发Ajax组件的支持框架。该框架通过设计AjaxEvent类和定制相关的生命周期对象,使Ajax请求的处理过程能像普通的Faces请求那样封装在JSF组件内部。实际应用表明,该框架能充分利用JSF和Ajax各自的优点,高效快捷地开发具有良好交互能力的Web用户界面。

关键词: JSF;Ajax;定制生命周期;UI组件

Abstract:

In order to improve the clients’ interactivity of the JSF component, a framework was presented to develop Ajax component on the basis of analyzing the implement mechanism of the custom lifecycle in JSF. By designing the Ajax event class and introducing the related custom lifecycle object in this framework, the processing of the Ajax event could be encapsulated inside the JSF component, just like the normal Faces event. The practical applications indicate that this framework can take the respective advantage of JSF and Ajax and Web user interface can be developed to be more rapid and efficient.

中图分类号: