JSF的URL扩展 PrettyFaces

码农软件 · 软件分类 · 其他开发相关 · 2019-10-30 22:43:10

软件介绍

PrettyFaces是一个JSF1.2和JSF2.0的扩展,用来创建便于书签收藏、漂亮的网址。 PrettyFaces优雅的解决了这个问题,包括诸如功能:网页装载行动,无缝的跟faces的导航整合,动态视图的ID分配和管理参数分析,无需配置,兼容其他JSF框架。

配置示例:

<pretty-config
xmlns="http://ocpsoft.com/prettyfaces-xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.com/prettyfaces-xsd
http://ocpsoft.com/xml/ns/prettyfaces/pretty-1.0.xsd">

<url-mapping id="login">
<pattern> /login </pattern>
<view-id> /faces/login.jsf </view-id>
</url-mapping>
<url-mapping id="home">
<pattern> /home </pattern>
<query-param name="displayWelcomeMessage">#{homeBean.displayWelcomeMessage}</query-param>
<view-id> #{homeBean.getViewPath} </view-id>
</url-mapping>
<url-mapping id="viewStory">
<pattern>
/story/#{myBean.currentStoryId}/
</pattern>
<query-param name="commentText" decode="false">#{myBean.commentText}</query-param>
<view-id> /faces/story/viewStory.jsf </view-id>
<action onPostback="false">#{myBean.loadStory}</action>
</url-mapping>
<url-mapping id="viewComment">
<pattern>
/story/#{myBean.currentStoryId}/#{myBean.commentId}
</pattern>
<view-id>/faces/story/comment.jsf</view-id>
<action>#{myBean.loadComment}</action>
</url-mapping>
</pretty-config>

本文地址:https://codercto.com/soft/d/17927.html

The Web Designer's Idea Book, Vol. 2

The Web Designer's Idea Book, Vol. 2

Patrick McNeil / How / 2010-9-19 / USD 30.00

Web Design Inspiration at a Glance Volume 2 of The Web Designer's Idea Book includes more than 650 new websites arranged thematically, so you can easily find inspiration for your work. Auth......一起来看看 《The Web Designer's Idea Book, Vol. 2》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换