日期:2014-05-16  浏览次数:20449 次

JSF+A4J+Spring调用ORACLE存贮过程的拙作
????? 近一周写了一个简单的工具,本工具是通过Spring调用ORACLE的存贮过程,然后返回一个结果集合.用到的技术有JSF\AJAX4JSF\SPRING\facelet和进度条的控制\代码着色(codepress)等.其实现页面可以参考如下:


???????? 部分代码如下:
??? faces-config.xml
xml 代码
?
  1. xml?version="1.0"?encoding="UTF-8"?>??
  2. >??
  3. ??
  4. <faces-config>??
  5. ????<application>??
  6. ????????<variable-resolver>??
  7. ????????????org.springframework.web.jsf.DelegatingVariableResolver??
  8. ????????<!---->variable-resolver>??
  9. ????????<view-handler>com.sun.facelets.FaceletViewHandler<!---->view-handler>??
  10. ????????<message-bundle>resources.messages<!---->message-bundle>??
  11. ????????<locale-config>??
  12. ????????????<default-locale>zh<!---->default-locale>??
  13. ????????????<supported-locale>en<!---->supported-locale>??
  14. ????????<!---->locale-config>??
  15. ????<!---->application>??
  16. ????<managed-bean>??
  17. ????????<managed-bean-name>tracePnrBean<!---->managed-bean-name>??
  18. ????????<managed-bean-class><