Wednesday May 14, 2008

Tutorial: JSR 286 portlet Eventing using Eventing Story Board

The recently released Portal Pack 2.0 has a new feature called Eventing StoryBoard.The Eventing StoryBoard feature in Portal Pack 2.0 simplifies the task of creating portlet application that uses JSR-286 eventing. It provides a simple drag drop feature to link the portlets involved in eventing. Automatic code generation functionality in the storyboard adds the necessary interfaces, methods and xml elements needed during eventing.

Here's a tutorial  contributed by Sriram K,  which explains about JSR 286 eventing using Eventing StoryBoard

 http://portalpack.netbeans.org/tutorials/eventing/EventingStoryBoardTutorial.html

There is also a screencast available for the same. Thanks to Hemadri, Anjana, Sriram for their help for this screencast

http://portalpack.netbeans.org/demos/evtstoryboard/eventing-story-board.htm 


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.

Monday Aug 13, 2007

New Feature: Resource Serving in JSR 286


Recently the JSR 286 draft was available for public review which can be downloaded from this link. It includes some of the major features which were missed in the JSR 168 spec. You can visit Deepak's blog  to  get a list  of  all those major changes.  One of the major feature introduced  in this  new Portlet  specification is "Resource Serving"  .  In this blog I will  explain  this  feature in detail.

In one line "The resource serving feature provides the ability for a portlet to serve a resource".

[Read More]

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.

 

 


About

ranjansatya

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today