JSF 框架 RichFaces 4.2.0.CR1 发布

fmms 12年前
     <p><a href="/misc/goto?guid=4958184727765121050" target="_blank">RichFaces </a>是一个具有 Ajax 和 JSF 特性 的 Web 框架。</p>    <p>JSF 和 Ajax 概念大家一定不陌生,二者结合起来衍生出 A4J(Ajax4JSF)。其目的就是将 Ajax 的功能集成到 JSF 组件中去。后来 JBoss 收购 A4J 后,又将其集成到 RichFaces 中,不但丰富了控件库和还添加了新功能。</p>    <p>对开发人员来说,只要按照 JSF 的组件规范来组织页面,免去了书写或调用庞杂的 JavaScript 代码或库,就能达到梦寐以求的 Ajax 效果 ---- 可以只更新局部内容而不用刷新整个页面,增强了用户体验。</p>    <p>RichFaces 4.2.0.CR1 发布了,4.2 版本包含从版本 3 移植过来后一些缺失的组件(<strong><span style="text-decoration:underline;">rich:contextMenu</span> </strong>, <strong><span style="text-decoration:underline;">rich:hotKey</span> </strong>),同时利用资源加载优化提供一些相应的 API 改进,增加 push API,以及大量的 bug 修复和可用性的提升。</p>    <p>下载地址:<a href="/misc/goto?guid=4958184728519474487" target="_blank">http://www.jboss.org/richfaces/download/milestones</a></p>    <p>下图是 4.1 和 4.2 版本在配置上的一些差异:</p>    <div dir="ltr">     <table class="ke-zeroborder">      <colgroup>       <col width="*" />       <col width="*" />      </colgroup>      <tbody>       <tr>        <td>         <div style="text-align:right;">          <strong>RichFaces 4.1 context-param</strong>         </div> </td>        <td><br /> </td>        <td><strong>RichFaces 4.2 context-param</strong></td>       </tr>       <tr>        <td>         <div style="text-align:right;">          org.richfaces.resourceMapping.enabled         </div> </td>        <td>→</td>        <td>org.richfaces.resourceOptimization.enabled</td>       </tr>       <tr>        <td>         <div style="text-align:right;">          org.richfaces.resourceMapping.compressedStages           <span style="text-align:right;"> </span>         </div> </td>        <td>→</td>        <td>org.richfaces.resourceOptimization.compressionStages</td>       </tr>       <tr>        <td>         <div style="text-align:right;">          org.richfaces.resourceMapping.packedStages          <span style="text-align:right;"> </span>         </div> </td>        <td>→</td>        <td>org.richfaces.resourceOptimization.packagingStages</td>       </tr>      </tbody>     </table>    </div>    <p><br /> 不过 4.1 的 context-params 还是可以在 4.2 上用,不过很快会移除。</p>    <p>4.2 版本在文档界面也做了改进:<br /> <br /> <strong><span style="text-decoration:underline;">修复的 bug 和其他方面提升包括:</span></strong></p>    <ul>     <li>jQuery upgraded to v1.7.1 (<a href="/misc/goto?guid=4958328579511388857">RF-11838</a> )      <ul>       <li>Fixes the "event.layerX and event.layerY" deprecation warning in Google Chrome</li>      </ul> </li>     <li>RichFaces available via maven central (<a href="/misc/goto?guid=4958328580309668819">RFPL-1800</a> )      <ul>       <li>No longer is it required to define the JBoss nexus repository in your settings.xml to consume richfaces maven artifacts</li>      </ul> </li>     <li>Mobile tweaks      <ul>       <li>improvements to the <a href="/misc/goto?guid=4958328581101305949">mobile getting started guide</a> </li>       <li>component specific usability improvements</li>      </ul> </li>     <li>Spring Webflow compatibility (<a href="/misc/goto?guid=4958328581902941732">RF-11806</a> )</li>     <li>a4j:actionListener example in the showcase      <ul>       <li>omitted in our initial release of the showcase, an example of <a href="/misc/goto?guid=4958328582692090590">a4j:actionListener</a> usage has been added to the 4.2 showcase</li>      </ul> </li>     <li>Build improvements      <ul>       <li>The dependency management across all the projects’ poms has been cleaned up and centralized</li>      </ul> </li>    </ul>