Jetspeed開發文檔2
這里假設monsys為web服務的名稱,其路徑在webapps/下面
1,jetspeed的圖片處理
圖片默認放在monsys/images下面,
調用方法:$clink.setURI("images/test.jpg")
2,javascript處理
Javascript黑認放在monsys/javascript下
調用方法:$clink.setURI("javascript/test.CSS")
3,portlets的位置位于monsys/WEB-INF/templates/vm/portlets/Html下面
4,頁面總體布局控制看JetspeedResources.PRoperties
bottomnav.enable=true
bottomnav.vm=bottom.vm
leftnav.enable=true
leftnav.vm=left.vm
leftnav.width=10%
topnav.enable=true
topnav.vm=top.vm
topnav.logo.file=images/jetspeed-logo-1.5.gif
topnav.logo.url=
topnav.user_login.enable=true
topnav.user_creation.enable=true
topnav.my_pages.enable=true
5,portlets源代碼分析:
portlet主要實現三個方法:
<1>,buildMaximizedContext最大化
<2>,buildConfigureContext顯示信息
<3>,buildNormalContext正常情況,也就是所看到的正常顯示時所要顯示的信息
<4>,調用時,在添加模塊時添加新參數action=portlets.GraphDailyAction
package org.apache.jetspeed.modules.actions.portlets;
import .............(略)
public class GraphDailyAction
extends VelocityPortletAction {
/**
* Subclasses should override this method if they wish to
* build specific content when maximized. Default behavior is
* to do the same as normal content.
*/
protected void buildMaximizedContext(VelocityPortlet portlet,
Context context,
新聞熱點
疑難解答