new updates in tfan-dphrm

0 views
Skip to first unread message

Korben Zhang

unread,
Jun 24, 2007, 10:01:04 PM6/24/07
to tf...@googlegroups.com
1.增加auth组件
auth组件用于控制页面显示内容,使用格式为
<t:auth grantAuths="'ROLE_XXX'">
Page content here...
<!-- 可选参数 -->
<t:parameter name="notauth">
no authority content here...
</t:parameter>
</t:auth>
auth组建将验证用户是否具有grantAuths指定的权限,并选择显示。此组件有一个可选
参数:notauth,用于显示无此权限时的显示内容。

2.增加stylesheet组件
用于添加页面使用的样式表。
使用格式为:
<t:stylesheet href="cssName"/>
在 .java文件中,需要定义cssName的Asset资源。
eg:
@Inject
@Path("context:css/html.css")
private Asset cssHtml;

3.信息报告根据用户登录状态显示
用户登录和未登录显示不同的信息报告页面。
有关方法写在BasePage中。


=========================================
Korben
Blog: http://korbenzh.spaces.live.com/
MSN: cn_b...@hotmail.com QQ: 553573836
=========================================
Reply all
Reply to author
Forward
0 new messages