{"id":195,"date":"2006-08-28T01:42:59","date_gmt":"2006-08-28T05:42:59","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=195"},"modified":"2011-12-17T12:20:25","modified_gmt":"2011-12-17T16:20:25","slug":"developer-notes-for-sakailaunch-portlet","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2006\/08\/developer-notes-for-sakailaunch-portlet\/","title":{"rendered":"Developer Notes for SakaiLaunch Portlet"},"content":{"rendered":"<p>This is Gibberish<\/p>\n<p><!--more--><br \/>\nhttp:\/\/localhost:8080\/portal\/tool\/19a66248-561f-4421-80bd-2c5e213d5eb0?sakai.session=d94f9115-e678-43f1-00ad-fbe9b802348b<br \/>\n<body  onload=\"setMainFrameHeight('Main19a66248x561fx4421x80bdx2c5e213d5eb0');setFocus(focus_path);\"  ><br \/>\nAdd Main<br \/>\nDashes become x&#8217;s<br \/>\nhttp:\/\/localhost:8080\/portal\/title\/b61b3656-bb0b-4926-0051-0581b956e172?reset=true<br \/>\n<iframe\nname=\"Main19a66248x561fx4421x80bdx2c5e213d5eb0\"\nid=\"Main19a66248x561fx4421x80bdx2c5e213d5eb0\"\ntitle=\"Message of the Day Content\"\nclass =\"portletMainIframe\"\nheight=\"50\"\nwidth=\"100%\"\nframeborder=\"0\"\nmarginwidth=\"0\"\nmarginheight=\"0\"\nscrolling=\"auto\"\nsrc=\"http:\/\/localhost:8080\/portal\/tool\/19a66248-561f-4421-80bd-2c5e213d5eb0?panel=Main\"><br \/>\n<\/iframe><br \/>\nvar TREE_ITEMS = [<br \/>\n[&#8216;My Workspace&#8217;,0,<br \/>\n[&#8216;Home&#8217;,&#8217;http:\/\/localhost:8080\/portal\/page\/dc0e247e-4822-4031-80d3-e2fea1975436?sakai.session=68b64974-8f78-42a1-80d8-461c68172910&#8242;,<br \/>\n[&#8216;Message of the Day&#8217;,&#8217;http:\/\/localhost:8080\/portal\/tool\/19a66248-561f-4421-80bd-2c5e213d5eb0?sakai.session=68b64974-8f78-42a1-80d8-461c68172910&#8242;],<br \/>\n[&#8216;My Workspace Information&#8217;,&#8217;http:\/\/localhost:8080\/portal\/tool\/faec4393-f522-418d-0096-b53af44e0868?sakai.session=68b64974-8f78-42a1-80d8-461c68172910&#8242;]<br \/>\n]<br \/>\n,<br \/>\n[&#8216;Profile&#8217;,&#8217;http:\/\/localhost:8080\/portal\/page\/d6b70f83-f1ae-42d3-8049-4e63bf89062d?sakai.session=68b64974-8f78-42a1-80d8-461c68172910&#8242;<br \/>\n]<br \/>\n<site><br \/>\n<title>My Workspace<\/title><br \/>\n<id>~897cadf9-7b01-40dc-001d-8e2f0a71a0da<\/id><br \/>\n<url>http:\/\/localhost:8080\/portal\/worksite\/~897cadf9-7b01-40dc-001d-8e2f0a71a0da<\/url>\n<pages>\n<page>\n<id>755a8f09-7676-413f-002f-a0e2e8f05025<\/id><br \/>\n<title>Home<\/title><br \/>\n<url>http:\/\/localhost:8080\/portal\/page\/755a8f09-7676-413f-002f-a0e2e8f05025<\/url><br \/>\n<tools><br \/>\n<tool><br \/>\n<id>fa9e102d-e1f6-4e7e-80dd-5fd909751d54<\/id><br \/>\n<title>Message of the Day<\/title><br \/>\n<toolid>sakai.motd<\/toolid><br \/>\n<url>http:\/\/localhost:8080\/portal\/tool\/fa9e102d-e1f6-4e7e-80dd-5fd909751d54<\/url><br \/>\n<\/tool><br \/>\n<tool><br \/>\n<id>524fb923-74f9-4cd0-0079-c7767c0756c3<\/id><br \/>\n<title>My Workspace Information<\/title><br \/>\n<toolid>sakai.iframe.myworkspace<\/toolid><br \/>\n<url>http:\/\/localhost:8080\/portal\/tool\/524fb923-74f9-4cd0-0079-c7767c0756c3<\/url><br \/>\n<\/tool><br \/>\n<\/tools>\n<\/page>\n<page>\n<id>67f217cb-6ee7-4ed3-80fe-80063ebc365d<\/id><br \/>\n<title>Profile<\/title><br \/>\n<url>http:\/\/localhost:8080\/portal\/page\/67f217cb-6ee7-4ed3-80fe-80063ebc365d<\/url><br \/>\n<tools><br \/>\n<tool><br \/>\n<id>f5e206f7-a459-4619-8078-0e5f401f3100<\/id><br \/>\n<title>Profile<\/title><br \/>\n<toolid>sakai.profile<\/toolid><br \/>\n<url>http:\/\/localhost:8080\/portal\/tool\/f5e206f7-a459-4619-8078-0e5f401f3100<\/url><br \/>\n<\/tool><br \/>\n<\/tools>\n<\/page>\nhttp:\/\/saloon.javaranch.com\/cgi-bin\/ubb\/ultimatebb.cgi?ubb=get_topic&#038;f=85&#038;t=000043<br \/>\nIf you wish to pass parameters within a URL, for example, &#8220;user=bob&#8221;, then you simply create an Action URL (which will cause the portlets processAction() method to fire) and invoke &#8220;setParameter(key, value)&#8221; on it.<br \/>\nAn example,<br \/>\nCreate your ActionURL object as you would do so normally.<br \/>\nActionURL myURL = renderResponse.createActionURL();<br \/>\nthen add your parameters,<br \/>\nmyURL.setParameter(&#8220;user&#8221;, &#8220;bob&#8221;);<br \/>\nWhen testing in local host &#8211; use KSESSIONID for Sakai &#8211; could work for non-load balanced situations.  In load balanced situations &#8211; must run separate servers for Sakai and portal.<br \/>\nhttp:\/\/maven.apache.org\/maven-1.x\/plugins\/war\/<br \/>\nIf 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is Gibberish<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":2290,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/195\/revisions\/2290"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}