• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
Search:
HOME/Docs & Support
Using Portal Pack 3.0 Plugins to Create Portlets on NetBeans 6.5IDE
As a set of plugins for NetBeans (IDE), the Portal Pack plugins support full life-cycle of portlet application developmentinside NetBeans. Using this tool portlet developers can develop, package, deploy, and test portlets inside their NetBeansIDE. By automatic code and Deployment Descriptor generation, this tool helps developers to develop portlets quickly.Portal Pack plugins provide a tight integration with portal servers (such as the WebSynergy Server, Liferay Portal Server,Sun Java System Portal Server 7.x, The OpenPortal Portlet Container on java.net) to support deployment andundeployment of portlets on both the local and remote servers.The following are the topics covered in this article:Configuring the WebSynergy ServerTo configure the WebSynergy ServerTo View Portlets Deployed on WebSynergy ServerCreating Portlets using Portal Pack 3.0 PluginsCreating a ProjectTo Create a ProjectCreating JSR168/286 Portlets and Portlet PagesTo Create a JSR168/286 PortletTo Deploy Portlets to WebSynergy ServerTo Create a new JSR 168/286 PortletCreating VisualWeb JSF Portlets and PagesTo Create a VisualWeb JSF PortletTo Create a Edit or Help mode JSF PageCreating Ruby/PHP/Groovy PortletsTo Create a Ruby PortletTo Create a Edit Mode or Help Mode Ruby Portlet PageTo Create a PHP PortletTo Create a Edit Mode or Help Mode PHP Portlet PageTo Create a Groovy PortletTo Create a Edit Mode or Help Mode Groovy Portlet PageRelated LinksThis article discusses creating portlets on the NetBeans by using Portal Pack 3.0 plugins, and deploying them on ProjectWebSynergy. As a prerequisite, you need to download and install the Project WebSynergy bundle. Also, Portal Pack 3.0plugins need to be installed on the NetBeans 6.5 IDE software.As a prerequisite for installing Project WebSynergy, you need to installJDK1.5orJDK1.6on your machine. You can download the platform specific jar for Project WebSynergy fromOpenPortal Community. Install the Project WebSynergybundle and start the server.Download Portal Pack 3.0 plugins fromhttp://portalpack.netbeans.org.To install the Portal Pack 3.0 plugins on the NetBeans 6.5 IDE:1. Start the NetBeans IDE and choose
Tools
—>
Plugins
. The
Plugins
window pops up.2. To add plugins from the download location, navigate to the
Downloaded
tab, and click the
Add Plugins...
button.3. Click
Install
to start the installation.
Configuring the WebSynergy Server
The portlets created using Portal Pack plugins can be deployed on Project WebSynergy. The following topics are discussedin this section:To configure the WebSynergy ServerTo View Portlets Deployed on WebSynergy Server
To configure the WebSynergy Server
Training
Java Programming LanguageDeveloping Applications for theJava EE Platform
Support
Sun Developer Services BuyingGuideGet Sun Software Service PlanNow
Documentation
Basic Java ProgrammingJava and JavaFX GUIsJava Web ApplicationsEJB & Web Service ApplicationsMobile ApplicationsSOA ApplicationsUML ModellingPHP ApplicationsRuby ApplicationsC/C++ ApplicationsNetBeans Modules and Rich-Client ApplicationsSample ApplicationsDemos and Screencasts
More
FAQsContribute Documentation!Docs for Earlier Releases
11/03/2009Using Portal Pack 3.0 Plugins to Creanetbeans.org/kb//portalpack.html1/22
 
1. Choose Servers from the Tools menu.The
Servers
window appears.
Figure 1 Configuring the WebSynergy Server
Click to Expand2. Select the Project WebSynergy Server from the Servers list, and click the Add Server button.The
Add Server Instance
window appears.
Figure 2 Configuring the WebSynergy Server
Click to Expand3. Select Project WebSynergy Server and click Next.4. Click the button next to the GlassFish Home, to choose the GlassFish Home directory.The
Choose Directory
window appears.5. Navigate to the 'glassfish' folder on your desktop, and click 'OK'.The GlassFish Home, Domain Dir, Domain, Port, and Admin Port fields are populated.6. Type the password in the Password field.
 
Note:
The default password is
adminadmin
.
Figure 3 Configuring the WebSynergy Server
Click to Expand7. Click Next.8. Click Finish.You have successfully configured your NetBeans IDE to deploy the portlets created on it to your WebSynergybuild.
To View the Portlets Deployed on WebSynergy Server
1. Display the Services tab in the NetBeans IDE by clicking the tab name, choosing 'Services' from the window menu,
11/03/2009Using Portal Pack 3.0 Plugins to Creanetbeans.org/kb//portalpack.html2/22
 
or pressing Ctrl-5.2. Expand WebSynergy Server under Servers.3. Expand 'Portlets'.To view a particular portlet, right-click the portlet name and choose
Show Portlet
from the pop-up menu.
Figure 4 Viewing the portlets deployed to WebSynergy Server
Creating Portlets by using Portal Pack 3.0 Plugins
You can create JSR 168/286 portlets, VisualWeb JSF portlets, and Ruby/PHP/Groovy portlets by using Portal Pack 3.0plugins on NetBeans IDE 6.5 software. To create portlets, you need to create a Web Project with the Portlet Supportframework. You can have multiple portlets within a single Web Project.The following topics are discussed in this section:Creating a ProjectCreating JSR168/286 Portlets and Portlet PagesCreating VisualWeb JSF Portlets and PagesCreating Ruby/PHP/Groovy Portlets
Creating a Project
You can create and delete projects within the NetBeans IDE. A project acts as a container for portlets and portletpages, and all other files related to them.
To Create a Project
1. Choose New Project from the File menu.The New Project page appears.2. Choose Java Web and Web Applications respectively for Categories and Projects, and click Next.
Figure 5 Creating a Project
Click to Expand3. Specify a name for your project, and click Next.
Figure 6 Creating a Project
11/03/2009Using Portal Pack 3.0 Plugins to Creanetbeans.org/kb//portalpack.html3/22
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...

how to download this document easily? thanksl

You must be to leave a comment.
Submit
Characters: ...