Friday Jun 15, 2007

Portal Hacks: Ajax Table Container as a Community template

Sun Java System Portal Server 7.1 Update 1 introduces the Ajax table container (see screencast for more information) . The Ajax container provides Ajax capabilities at the framework level such as drag & drop positioning of portlets, asynchronous refreshing of portlets, multiple layouts and styles.

The Community feature (see this post for more information) allows you to create new communities with different layout templates. The layout templates provided out-of-the-box are 2 column, weblog and  wiki, left navigation, and wiki. The Ajax container is not provided out-of-the-box, but it is fairly easy to add the Ajax table layout to the existing templates. Follow these steps to add Ajax table layout as one of the options to be displayed during community creation.

Step #1

From your command shell (make sure you are logged in as root or the portal user), go to /var/opt/SUNWportal/portals/<portal-id>/communitytemplates. All the paths in this post are for a portal installed on Solaris. If you are using Linux or Windows use the appropriate corresponding paths. For example, the above path on Linux will be /var/opt/sun/portal/portals/<portal-id>/communitytemplates, and on Windows it'll be something like C:\\Sun\\JavaES5\\portal\\data\\portals\\<portal-id>\\communitytemplates.

Step #2

In the /var/opt/SUNWportal/portals/<portal-id>/communitytemplates directory, copy 2column directory as ajax (or some other name), and as

# cd /var/opt/SUNWportal/portals/portal1/communitytemplates
# cp -r 2column ajax
# cp
# ls
2column                          menucontainer               blogwiki           
ajax                         wiki

Step # 3

Change to the newly created ajax directory. You'll see a number of XML files in the directory.

# cd ajax
# ls
banned.xml    disabled.xml  member.xml    pending.xml   visitor.xml
deleted.xml   invited.xml   owner.xml     rejected.xml

Edit each file and replace the string "JSPTableContainerProvider" with "AJAXTableContainerProvider".

Step # 4

Change directory one level up and edit Customize the values for the new ajax template. This should be fairly straightforward. Next create a localized copy of by copying it as

# cp

That's it! Your ajax community layout is now ready to be tested.

Login to the Community sample as a user. Default user is test/test. Click on the "Create a New Community" link to launch the community creation wizard. Enter the values for the first two screens of the wizard till you reach the Template step. In the templates screen you should now see a new option for the Ajax Table Layout.

Select Ajax Layout in the template selection step and go through the wizard to create a new community. Access your newly created community and you should see the community load up using the Ajax table layout. In your layout, you'll be able to drag and drop portlets around the page, change the layout from 2-column to 3-column, and even change the style of the page.

This concludes the simple hack to make your community Ajax-enabled!

Thursday Jun 07, 2007

OpenPortal Community Wiki has Moved!


The OpenPortal Community Wiki has moved. Please make sure you update your bookmarks.  You'll find the new OpenPortal Community Wiki page here.

Tuesday May 01, 2007

Sun Java System Portal Server 7.1 Source Available in the OpenPortal Community

OpenPortal  Sun announces the creation of the OpenPortal community which will focus on the development of standards-based enterprise-class portal technologies. You can access the OpenPortal community on

Sun recently contributed the Sun Java System Portal Server 7.1 source into the OpenPortal community.  The source code is a read-only, non-buildable version that you can download from the OpenPortal Downloads page.  A buildable version of the source code will be available later this month, the Roadmap page has more details.

The Sun Java System Portal Server 7.1 includes features such as

  • identity-based content delivery,
  • community framework (including wiki and blog),
  • plugins for portlet development in Eclipse and NetBeans,
  • and much more. 
Developers can now use, reproduce, modify, sublicense and redistribute the portal source code under the terms of the Common Development and Distribution License (CDDL).  You will also find several Developer Resources available on the OpenPortal Downloads page.

Moving forward, all Sun Java System Portal Server development, including buildable source and binaries, will be available in the OpenPortal community.

Tuesday Apr 24, 2007

Web 2.0 Communities via the Sun Java System Portal Server

Portal communities Tom has published an article that describes how Web 2.0 concepts are a perfect complement to Portals, and in particular how the Sun Portal product makes effective use of Web 2.0 features and concepts to help users be more collaborative and productive.

So check it out here -- Creating Web 2.0-Enabled Communities With Sun Java System Portal Server


Thursday Feb 01, 2007

Portal Community Wiki

The enterprise-class Portal open source project is a community of Users, Developers, Partners, and Evangelists creating an industry leading enterprise-class Portal. This community is part of a collection of Open Source Middleware Communities.

The Portal Wiki is a valuable informational resource addressing the requirements of this broad Portal Community. The wiki is open for reading to all. Contributors to existing or new wiki topics need to have a registered user id.

The Portal Wiki is hosted in the following URL
Here are the links to Wiki of each Portal Component



« July 2016