20 giugno
外观和感觉
1.skin
E:\bea8\weblogic81\samples\portal\portalApp\sampleportal\framework\skins
skin包括css、图像、js文件三部分,图像一般是porlet的标题或边框,css用于控制图像的显示,js用于判断并设置css的显示。
2.外观和感觉的选择
E:\bea8\weblogic81\samples\portal\portalApp\sampleportal\framework\markup\lookandfeel
每一种外观和感觉对应一个laf文件。
我们可以在workshop中为desktop选择一个外观和感觉。
也可以在发布desktop时,选择外观和感觉。
如果充许最终的门户浏览者使用vsitor tools ,那么用户选择“Customize My Portal”也可以自行选择外观和感觉。
3.laf文件详解
|
Attribute |
Description |
|
definitionLabel |
Required. The unique label used to identify the look & feel for setting entitlements. Each look & feel in the portal Web project must have a unique definitionLabel. For best practices, use the same name as the markupName. 必需项,用于标识.一般和markupName相同. |
|
title |
Required. The string used to display the name in the Look & Feel drop-down fields in WebLogic Workshop, the WebLogic Administration Portal, and on the visitor tools page. 必需项,用于显示样式名称,供选择. |
|
description |
Optional. Description of the look & feel. The description is used in the WebLogic Administration Portal; when you select a look & feel in the portal Library, the description appears on the Look & Feel Properties page. 可选项. |
|
skin |
Optional. The name of the directory containing the skin you want to use.
If you do not set this attribute, the /framework/skins/default skin is used. 可选项,设置使用的skin,缺省使用default的skin. |
|
skinPath |
Optional. The path, relative to the portal Web project, to the parent directory of the skin directory.
If you do not set this attribute, the /framework/skins/<skin_attribute_name> skin is used.
If no skin attribute is set, the /framework/skins/default skin is used. 设置skin的地址. |
|
skeleton |
Optional. The name of the directory containing the skeleton JSPs you want to use.
If you do not set this attribute, the framework uses the default.skeleton.id path in the skin.properties file of the skin used.
If you do not set this attribute and no default.skeleton.id path is set in skin.properties, the /framework/skeletons/default skeleton is used. 设置skeleton的名称. |
|
skeletonPath |
Optional. The path, relative to the portal Web project, to the parent directory of the skeleton directory.
If you do not set this attribute, the framework uses the default.skeleton.path in the skin.properties file of the skin is used.
If you do not set this attribute and no default.skeleton.path is set in skin.properties, the /framework/skeletons/<skeleton_attribute_name> skeleton is used.
If you do not set this attribute and no skeleton attribute is set, the /framework/skeletons/<default.skeleton.id> skeleton is used.
If you do not set this attribute and no skeleton attribute is set, and skin.properties contains no default.skeleton.id, the /framework/skeletons/default skeleton is used. 设置skeleton的地址. |
|
markupType |
Required. The name of the type of component. Must always be "LookAndFeel". 必须为"LookAndFeel" |
|
markupName |
Required. The name for the look & feel. Each look & feel in the portal Web project must have a unique markupName. For best practices, use the same name as the definitionLabel. 必须,和label名相同即可. |
4.portel文件
24 febbraio
今年开工以来一直在研究sharepoint service。
反反复复,连带windows2003都装了N次,居然还没有搞定。
真够折腾的。