Tuesday Nov 24, 2009

Where's Portal Pack Project !!!

The Portal Pack project site (http://portalpack.netbeans.org) is down for last few days because of the netbeans.org migration. But in case you need Portal Pack's binaries urgently,  here is the new location for Portal Pack project http://contrib.netbeans.org/portalpack/. We have filed a bug to set the redirect for http://portalpack.netbeans.org to this new location. Once that bug is fixed, you should be able to access the Portal Pack project site using the old url http://portalpack.netbeans.org .

For more details check this issue

Friday May 29, 2009

Web Space/Liferay : Expose SOAP & JSON services through Service Builder

As you know Portal Pack 3.0.1 provides a nice service builder editor where you can add/remove services and also generate service classes from NetBeans IDE. These services can be deployed on Liferay/Web Space server. To know more about how the services can be generated using Portal Pack, check this blog.

If all your portlets are deployed on the same liferay instance, then they can consume those services through normal java calls. But what about exposing a service as remote service, so that it can be consumed by remote clients. But currently the service builder plug-in in Portal Pack doesn't generate SOAP, JSON classes which are required to expose a remote service as SOAP and JSON and hence can not be consumed by remote clients.

[Read More]

Tuesday May 26, 2009

JSF Portlet Page Navigation Issue - workaround

There is an issue with JSF Portlet (Woodstock portlet) with page navigation created by Portal Pack 3.x and running on Liferay or Web Space Server. So if you have page navigation inside jsf portlet, then no component in the portlet is shown when try to navigate to the a second page.But if you reload the page, the portlet is shown properly. This behaviour is there only with Firefox, but it works fine with IE.

[Read More]

Thursday May 08, 2008

Portal Pack and WebSynergy

There is a preview version of the WebSynergy plug-in available at Portal Pack project site. This plug-in supports portlet development and deployment on the new WebSynergy and also works with Liferay.

You need to install other Portal Pack 2.0 plug-ins before installing this plug-in. 

Using this plug-in :

  • You can write portlets which can be deployed on the WebSynergy and Liferay.
  •  By selecting the target runtime server as "WebSynergy", it automatically creates all liferay specific xml/properties file to the project.
  • Liferay specific files get updated whenever a new portlet is added to the project
  • Single click portlet deployment on WebSynergy and Liferay.
  • You can see a list of the deployed portlets in the Services tab under WebSynergy node inside your NetBeans IDE
  • Undeploy a portlet directly from the NetBeans IDE
  • Create PHP/Ruby Portlet which can be deployed on the WebSynergy. Ruby portlet development support is not currently available for download. But it will be available soon. 
  • Develop cross-platform inter-widget communication code using Eventing StoryBoard with simple drag and drop. To use this feature you need to download the latest nightly build of Generic Portlet Builder which is linked from the WebSynergy plug-in download location. Check these blog and screencast for more details.

Portal Pack 2.0 is now available

The Portal Pack 2.0 final version for NetBeans 6.1 is now available for download. It supports the new JSR 286 portlet specification.There are many new features which will help developers to write portlets quickly using JSR 286(Portlet 2.0) features. These plug-ins are also available at NetBeans 6.1 Auto-Update Center and
with Java Tools Bundle Update 5 .


Some highlights of this release are :

To know how to develop portlet using Portal Pack 2.0 read this article.

In the next few days, I will be blogging about some specific features in Portal Pack 2.0 . So keep watching this space :)

Monday Mar 17, 2008

New Visual JSF Portlet Builder in Portal Pack Beta 3

http://blogs.sun.com/satya/resource/jsf-small.PNG         A new plug-in called "Visual Portlet Builder" has been added to the recently released Portal Pack Beta 3 plug-ins list. Sometime back I had written a blog entry on how to create a JSF based portlet using NetBeans 6 + Portal Pack through some manual steps. This new plug-in eliminates all those manual steps and provides JSF portlet building capability inside Netbeans. It uses the existing VisualWeb's WYSWYG editor and enables portlet developers to design their JSF portlet through drag & drop components. You can use OpenPortal Portlet Container 2.0 RC1 to test your jsf based portlets.

Steps to create a JSF Portlet :

  • Create a Web Application with "Portlet Support" framework.
  • Right click on the project node, select New > Visual Web JSF Portlet Page
  • Enter page detail and press Finish.
  • Now you can drag & drop jsf components and design your jsf portlet page.
  • You can create more than one jsf portlet pages in the project and set them as VIEW/EDIT/HELP mode page for the jsf portlet.

To select jsf portlet pages for different modes of the portlet

  • Right click on the visual web jsf portlet page.
  • Select "Set as Initial" and select VIEW/EDIT/HEP mode page

Now you can build and deploy your project on OpenPortal Portlet Container from your NetBeans IDE.

The Portal Pack Beta 3 plug-ins are now available on both Portal Pack project site and NetBeans Beta Auto Update Center.

Wednesday Jul 25, 2007

Build JSF Portlet with NetBeans Visual Web Pack and NetBeans Portal Pack

In this blog I will explain how  NetBeans 6.0 M10 with Visual Web Pack and Portal Pack 2.0 preview plug-in can be used to develop & deploy JSF Portlet application.

[Read More]

Tuesday May 29, 2007

Portal Pack 2.0 preview for NetBeans 6 M9

The Portal Pack 2.0 preview is now available for download here. Though in this version there are no functional changes in the serverplugin modules, but there are some changes in the portlet builder (Generic Portlets) module. Unlike earlier version, in this version of the Portal Pack, there is no separate "Portlet Application" project type. In this version Portlet application is supported through web framework. So  "Portlet Support" can be added to a new/existing web application  through web framework. In other word you can say an existing/new web application can be extended to support Portlets inside it. To know how to create portlet application in this version click here

Thursday May 17, 2007

InterPortlet Communication Made Easy with IPC Story Board in the Portal Pack Plug-ins for NetBeans

In my last blog, I had mentioned about the IPC Story Board which is an upcoming feature in the next version of the Portal Pack. In brief IPC Story Board in Portal Pack will help developers to implement Inter Portlet Communication/Eventing in their portlets in a visual manner.  More importantly it also generates most of the eventing related code automatically for you. In my last demo I had also linked to a screen cast which gives an idea how this IPC Story Board will work in future. But now there is a new flash demo available which shows a full functional IPC Story Board in action. This feature will be supported in the next version of the Portal Pack for NetBeans 5.5/5.5.1. The new binaries are not yet available on the Portal Pack project site, but those will be available very soon. In this flash demo I have created a simple shopping cart portlet application using Portal Pack + NetBeans 5.5 with IPC Story Board support. The application developed using IPC Story Board can be deployed/run on Open Portal Portlet Container / Sun Java System Portal Server 7.x . The future version of the IPC Story Board will also be supporting  JSR-286 portlet eventing.

If you are interested to see the fully functional IPC Story Board in action then check this screencast

Let me know if you have any suggestions & feedbacks or you want to see any new features in the Portal Pack. 


Monday May 07, 2007

Upcoming Feature in Portal Pack - IPC Story board for Eventing to visually wire the portlets

Now a days I am working on some new features for Portal Pack. One of the features I am working on is "IPC Story Board"  for Eventing. Portal Pack IPC Story board will be useful for all portlet developers who want to make their portlets consume events thrown by other portlets. Though  eventing is not part of the current portlet specification, but it will be part of the next portlet specification. IPC Story board will be providing drag and drop support where the developers will be able to drag and drop their portlets and then visually wire them with each other. If you want to see an early preview of IPC Story board in the Portal Pack then check this small flash demo

Saturday Mar 31, 2007

Easy Steps to Set up Portlet Development Environment

This blog will help

  • All new portlet developers who don't know how to start writing portlets and test them
  • Developers looking for open source softwares to develop and test their portlets
  • Developers looking for an integrated portlet development environment

You can use the Java EE Tools Bundle U3 Preview which comes with pre-configured GlassFish appserver, Open Source Portlet Container and NetBeans IDE with Portal Pack Plug-ins to start portlet development.

But Alternatively if you want to use latest versions of mentioned components to set up your portlet development environment then go through this blog. 

The following open source components are required to set up your portlet development environment

  1. Glassfish Application Server
  2. Open Source Portlet Container
  3. NetBeans 5.5/5.5.1 Beta IDE
  4. Portal Pack Plug-ins

1. GlassFish Application Server

GlassFish is an open source application server. Download the latest version of GlassFish Application server from here.  GlassFish installation is very easy. Just follow the steps mentioned here

2. Open Source Portlet Container

The Open Source Portlet Container  is an Enterprise Class Open Source Portlet Container which is free and available for download here. This can be used to deploy/test your JSR 168 portlets. To install Open Source Portlet Container on the GlassFish AppServer run the following command which opens an GUI installer. The whole installation process completes within a few seconds

java -jar portlet-container-configurator.jar

Alternatively you can check installation instructions here 

3. NetBeans IDE 5.5 and above

Download and Install NetBeans IDE from https://www.netbeans.org 

4. Portal Pack Plug-ins

The Portal Pack NetBeans Plug-ins for Portlet development is  available in NetBeans 5.5 Beta Auto Update Center.

But if you want to try latest version of Portal Pack Plug-ins then download them from here . You can find the installation instructions for the plug-ins in download page.

As all of the above components are installed and configured properly, you can now start your portlet development. You can check user guides and documents available in portal pack doc page. If you want a short/quick tutorial on Portlet development using Portal Pack check this.

Wednesday Feb 21, 2007

Portal Pack Plug-ins are now also available at NetBeans Auto-Update Center Beta

Portal Pack Portlet Plugins are now also available at NetBeans Auto Update Center Beta. To install/update latest version of these plugins 

> Go to Tools > Update Center menu of NetBeans 5.5 IDE

> Select "NetBeans Auto Update Center Beta" check box in the list of update centers

> Click Next

The following modules of Portal Pack are required for Portlet Development support in NetBeans IDE

  • Generic Portlets - This module provides wizard based supports to create JSR 168 based portlet applications.
  • OpenSource PC - This module provides support to deploy/undeploy portlet applications on Portlet Container available on http://portlet-container.dev.java.net or bundled with Java EE SDK
  • Sun Java System Portal Server 7.x - This module provides support to deploy/undeploy portlet application on Sun Java System Portal Server 7.x
  • Base PSFramework - This is a library module which is required for the above two server plug-ins modules.

The same modules are also available as a zip archive at http://portalpack.netbeans.org/download.html

Saturday Feb 17, 2007

Updated Flash Demos for Portal Pack Plug-ins

Check out updated Portal Pack flash demos at  http://portalpack.netbean.org

These flash movies show all the new features supported by Portal Pack plug-ins for Sun Java Systems Portal Server 7.x

Wednesday Feb 07, 2007

Debug Portlet Application while using NetBeans 5.5 IDE and Portal Pack Portlet Plugin

This blog describes how you can debug a portlet application while you are using NetBeans 5.5 IDE + Portal Pack plug-in for portlet development.

This blog assumes that you are using 

Though Portal Pack plugin starts the Glassfish server automatically from NetBeans IDE, but currently it doesn't starts the server in debug mode. Using the following approach you can quickly debug your portlet application.

Set Debug mode for GlassFish Application Server

  1. Open NetBeans IDE
  2.  I am assuming that you have already added a Portlet Container instance in your NetBeans IDE
  3. Go to Runtime window . Right click on Servers > Open Source Portlet Container instance.
  4. Click "Start" to start the server.
  5. When the server is started properly. Open http://localhost:4848 in your browser.
  6. Login to GlassFish Admin Console as "admin" (default password is "adminadmin")
  7. Go to the "Application Server" page .
  8. Select the JVM Settings tab and the General option.
  9. Check the Debug Enabled box.
  10. Check debug port (default value is 9010)
  11. Select the Save button.
  12. Now  restart  the  server through  the NetBeans IDE  by the same way  you had started the server.

Configure debugger in NetBeans IDE

  1. Go to Run > Attach Debugger menu in title menu bar of NetBeans IDE.
  2.  It will pop-up a dialog box.
  3. Select Debugger as "JPDA Debugger"
  4. Select Connector as "SocketAttach"
  5. Give your machine host. (example, localhost)
  6. Give debug port no. (Default, 9010).
  7. Click Ok
  8. Now the debugger will be attached to the application server's debug port
You are now ready to debug your portlet application. Add break point in your portlet java file and start debugging. All of the above configuration steps are required once.






« July 2016