August 28, 2006

Developer Notes for SakaiLaunch Portlet

This is Gibberish

http://localhost:8080/portal/tool/19a66248-561f-4421-80bd-2c5e213d5eb0?sakai.session=d94f9115-e678-43f1-00ad-fbe9b802348b

Add Main

Dashes become x's

http://localhost:8080/portal/title/b61b3656-bb0b-4926-0051-0581b956e172?reset=true

name="Main19a66248x561fx4421x80bdx2c5e213d5eb0"
id="Main19a66248x561fx4421x80bdx2c5e213d5eb0"
title="Message of the Day Content"
class ="portletMainIframe"
height="50"
width="100%"
frameborder="0"
marginwidth="0"
marginheight="0"
scrolling="auto"
src="http://localhost:8080/portal/tool/19a66248-561f-4421-80bd-2c5e213d5eb0?panel=Main">

var TREE_ITEMS = [
['My Workspace',0,
['Home','http://localhost:8080/portal/page/dc0e247e-4822-4031-80d3-e2fea1975436?sakai.session=68b64974-8f78-42a1-80d8-461c68172910',
['Message of the Day','http://localhost:8080/portal/tool/19a66248-561f-4421-80bd-2c5e213d5eb0?sakai.session=68b64974-8f78-42a1-80d8-461c68172910'],
['My Workspace Information','http://localhost:8080/portal/tool/faec4393-f522-418d-0096-b53af44e0868?sakai.session=68b64974-8f78-42a1-80d8-461c68172910']
]
,
['Profile','http://localhost:8080/portal/page/d6b70f83-f1ae-42d3-8049-4e63bf89062d?sakai.session=68b64974-8f78-42a1-80d8-461c68172910'
]



My Workspace
~897cadf9-7b01-40dc-001d-8e2f0a71a0da
http://localhost:8080/portal/worksite/~897cadf9-7b01-40dc-001d-8e2f0a71a0da


755a8f09-7676-413f-002f-a0e2e8f05025
Home
http://localhost:8080/portal/page/755a8f09-7676-413f-002f-a0e2e8f05025


fa9e102d-e1f6-4e7e-80dd-5fd909751d54
Message of the Day
sakai.motd
http://localhost:8080/portal/tool/fa9e102d-e1f6-4e7e-80dd-5fd909751d54


524fb923-74f9-4cd0-0079-c7767c0756c3
My Workspace Information
sakai.iframe.myworkspace
http://localhost:8080/portal/tool/524fb923-74f9-4cd0-0079-c7767c0756c3




67f217cb-6ee7-4ed3-80fe-80063ebc365d
Profile
http://localhost:8080/portal/page/67f217cb-6ee7-4ed3-80fe-80063ebc365d


f5e206f7-a459-4619-8078-0e5f401f3100
Profile
sakai.profile
http://localhost:8080/portal/tool/f5e206f7-a459-4619-8078-0e5f401f3100


http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=85&t=000043

If you wish to pass parameters within a URL, for example, "user=bob", then you simply create an Action URL (which will cause the portlets processAction() method to fire) and invoke "setParameter(key, value)" on it.

An example,

Create your ActionURL object as you would do so normally.

ActionURL myURL = renderResponse.createActionURL();

then add your parameters,

myURL.setParameter("user", "bob");

When testing in local host - use KSESSIONID for Sakai - could work for non-load balanced situations. In load balanced situations - must run separate servers for Sakai and portal.

http://maven.apache.org/maven-1.x/plugins/war/

If you need to copy the web.xml file in order to replace some filter tokens or simply perform some custom modification to it, simply write a pre-goal to the war:war-resources goal in which you perform the manipulation. Then set the maven.war.webxml property to point to your modified web.xml.

Posted by csev at August 28, 2006 01:42 AM