"What if? Why not? Challenge the Convention! Let's do some incredible things!"  More Quotes

Welcome to Aspire Knowledge Central (AKC)

   Home   Public Library   Author Content

Choose a data format:   classic-xml   object-xml   embedded-xml   text   excel

Java-Portlets

0) 05.01 Apache jetspeed project page (13-Oct-03)

http://jakarta.apache.org/jetspeed/site/index.html

1) 05.03 Jetspeed java docs (13-Oct-03)

http://jakarta.apache.org/jetspeed/api/index.html

2) 05.05 Jetspeed mailing list (13-Oct-03)

http://www.mail-archive.com/jetspeed-user%40jakarta.apache.org/

3) 10.01 How to use Aspire Portlet (13-Oct-03)

How to use Aspire Portlet. Draft 1.

4) 10.03 Source code for AspirePortlet under JetSpeed (13-Oct-03)

Source code for AspirePortlet under JetSpeed

5) A short summary of the state of portlets (26-Sep-03)

http://www.rollerweblogger.org/page/roller/20030405#coming_up_to_jetspeed

6) Behavioural tests for Portlets (10-Oct-03)

A list of tests on the behaviour of portlets when they are displayed in a portlet container.

7) Getting started with Jetspeed2 (1-Sep-04)

For discussing/working with jetspeed2

8) How do you know if a request is intended for the current portlet? (4-Oct-03)

    /**
     * Returns true if the request pertains to current portlet instance. It assumes that the portlet interested in
     * recognizing its own requests, has a hidden input "js_peid". For backwards compatibility, if "js_peid" was
     * not set, this method will return TRUE.
     * 
     * @param rundata
     * @return boolean
     */

9) How to create a link using jetspeed api (19-Aug-04)

It is really difficult to figure out the url structure of a Jetspeed url. Hopefully these code samples will be of some help.

The code here demonstrate the following

1. On a given portal window put a url link that will take you back to the same portlet code
2. Uses JetspeedlinkFactory
3. Uses the object caching of jetspeedlinkfactory

10) How to install Liferay Java Portal on Tomcat (20-Nov-06)

Liferay is a web portal system. Liferay is JSR 168 compliant. Liferay is implemented as a java compliant web application. Liferay is typically installed as a root context in Tomcat. More popular installation packages of Liferay come with a bundled tomcat. Although that is technically true, the download instead contains a tomcat with a preinstalled Liferay as its root context.

Installing Liferay involves unzipping this tomcat and starting the tomcat from the tomcat bin directory. The only real prerequisite is that there is a jdk installed and java_home set. Subsequently you can see Liferay in action by going to

http://localhost:8080

The default view of this site is for users or guests that haven't logged in yet. This is the public face of the portal web site. Liferay comes with a built in test user for testing the sign in process. One can also sign up for an account. Once installed the portal can be configured using its internal portlets and themes.

The out-of-the box Liferay comes with hypersonic sql. Nevertheless it is highly advisable to use mysql as soon as possible. The main issue you will run into otherwise is that you may not find good tools to manipulate the database.

This document will cover the basic mysql installation as well and also running command line prompt for mysql and using the mysql tools for such things as creating the database etc.

11) How to use AspirePortlet in Liferay (28-Oct-06)

How to use AspirePortlet in Liferay

12) I have been working on Jetspeed for a couple of weeks now (26-Sep-03)

It is a mess. You will see lot of updates on this topic here.

13) IBM portal zone (26-Sep-03)

http://www7b.software.ibm.com/wsdd/zones/portal/

14) Introducing the Portlet Specification, Part 1 (29-Sep-03)

http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet_p.html

Portlets are Java-based Web components, managed by a portlet container, that process requests and generate dynamic content. Portals use portlets as pluggable user interface components that provide a presentation layer to information systems. The next step, after servlets in Web application programming, portlets enable modular and user-centric Web applications. The goal of JSR (Java Specification Request) 168, the Portlet Specification, is to enable interoperability between portlets and portals. This specification defines the contract between portlet and portlet container, and a set of portlet APIs that address personalization, presentation, and security. The specification also defines how to package portlets in portlet applications. Part 1 of this two-part series describes the Portlet Specification and explains its underlying concepts. In Part 2, the authors explain the specification's reference implementation and show some portlet examples. (3,300 words; August 1, 2003)

15) Introducing the Portlet Specification, Part 2 (29-Sep-03)

http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2_p.html

In this second and final article in Stefan Hepper and Stephan Hesmer's portlet series, the authors move beyond the Portlet API basics outlined in Part 1 to detail the API's reference implementation (RI), known as Pluto. They also offer a series of example portlets to illustrate how you can extend the API's standard functions. (1,700 words; September 5, 2003)

16) Jetspeed forwards doc to help with the understanding of JS_URL actions (4-Oct-03)

http://jakarta.apache.org/jetspeed/site/forwards.html

This link could help us understand the structure of jetspeed urls, in particular, various prebuilt actions.

In short the actions are

controls.Maximize - go to maximize mode for the specified portlet. 
controls.Minimize - go to minimize mode for the specified portlet. 
controls.Customize - go to customize mode for the specified portlet 
controls.Info - go to information mode for the specified portlet. 
controls.Print - go to print mode for the specified portlet. 
controls.Close - go to close mode for the specified portlet. 
controls.Restore - go to restore the specified portlet. 

17) JSR 168 page (26-Sep-03)

http://jcp.org/jsr/detail/168.jsp

18) Liferay good startup console output (20-Nov-06)

Use this for knowing the good startup pattern for liferay

19) Liferay portal.properties (20-Nov-06)

Reading this file gives an idea the range of technologies and facilities used by Liferay

20) Liferay tomcat catalina.bat (17-Nov-06)

Main tomcat invocation batch file

21) Liferay tomcat startup.bat (17-Nov-06)

Study this file if you want to specialize this file for your needs. This file in turn calls catalina.bat as follows

call catalina.bat start

Which means you can do the following instead to see tomcat in the same window

call catalina.bat run

or

catalina.bat run

22) Notes on JSR 168 portals, LifeRay (18-Nov-06)

The following topics are covered here

liferay
jsr 168 portlets
apis
oddities
writing portlets

23) Portals, perhaps yes, But is there a compelling argument for portlets? (8-Oct-03)

To be elaborated. But the doubts are briefly:

1. The portlet api seem to intrusive and intimately linked to portals
2. The protocols that a portlet must adhere to seem too many
3. The URI addressing scheme for portals seem to be tied to portal container

Questions

1. Will the webservices portal server solve this tight link between a portal and a portlet?

24) Portlet standards article by Stefan Hepper and Thomas Schaeck (26-Sep-03)

http://www.theserverside.com/resources/articles/Portlet_API/article.html

Hopefully this article will throw somelight on where portlets are headed.

25) sample: constructing a render url (22-Oct-06)

sample: constructing a render url

26) sample: Getting user_info from portlet request (22-Oct-06)

Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO);
String givenName = (userInfo!=null)
? (String) userInfo.get(?user.name.given?) : ??;
String lastName = (userInfo!=null)
? (String) userInfo.get(?user.name.family?) : ??;
...

27) sample: processAction method (14-Oct-06)

The following topics are covered here

liferay
jsr 168 portlets
apis
oddities
writing portlets

28) Samplecode: Hello world portlet (28-Oct-06)

A simple Hello world portlet

29) Samplecode: IFramePortlet (28-Oct-06)

Samplecode: IFrame Portlet

30) Samplecode: JSPPortlet (28-Oct-06)

Samplecode: JSP Portlet

31) Samplecode: Some portlet definitions (28-Oct-06)

Samplecode: Some portlet definitions

32) Script to create liferay data models 1 (10-Nov-06)

Description to be entered

33) Some sample portlet definitions (10-Oct-03)

Available in "jetspeed\web-inf\conf" directory as .xreg file. All xreg files will be loaded at start up in that directory.

34) The untold story revealed by an exception (3-Oct-03)

The jetspeed stack trace, incase if anyone is wondering who calls who.

35) Understand liferay data models (9-Nov-06)

Description to be entered

36) URLs on a portlet jsp page: examples (3-Oct-03)

Description to be entered

37) What are the minimum jar files you need to build a portlet under Jetspeed? (13-Oct-03)

1. Turbine
2. ecs
3. velocity (possibly)
4. commons logging
5. jetspeed