Archive for the ‘NetBeans’ Category

Portal Pack 3.0.5 Beta for NetBeans IDE 7 is now available for download.

Few changes

  • Compatible with NetBeans IDE 7.x
  • Works with maven based web project
  • Works with Liferays maven projects
  • Service builder plug-in is compatible with Liferay 6.0.4 and later

I have released this as beta to address any major regressions before the main release. You can submit issues here.

I got few comments in my previous blog that the Service Builder functionality is broken in Portal Pack 3.0.4 & Liferay 6.0.5. After a  little investigation, I found that there are few changes in the new liferay release in service builder part.  I will fix that issue in the next release.

It is a regression and due to lack of QA resources, we could not test it.

Meanwhile, I would really like to know from the users that what are the features you are using most in Portal Pack ?  And any area where you want improvement ? These information are really critical for the next release, as I don’t have much bandwidth to develop and test everything 😦 . So based on your feedback I can priorities the areas and will make sure those would be tested properly in future releases.

Also based on your feedback, if there are more users using service builder plugin in Portal Pack, I will try to do a better integration for service builder plugin in Portal Pack.

Also if  you have any new suggestions or if you would like to contribute to this project in any way like QA or development, please let me know.

Cheers !!!

Updated:

There is a workaround or alternative which is little tricky.

– Please download the  servicebuilder.jar  from http://portalpack.netbeans.org/servicebuilder.jar

– Go to your ~userhome/.netbeans/6.9/ directory

– Remove the existing servicebuilder directory

-Unjar the downloaded jar inside ~userhome/.netbeans/6.9 directory

-Now try to generate the service without restarting NetBeans. It should work.

But if you restart your NetBeans, the servicebuilder directory will be overwritten with the default files. So you need to follow the above steps again.

I am pleased to announce that a new version Portal Pack 3.0.4 is now available for download. There was a long gap between Portal Pack 3.0.3 and 3.0.4 release because of various reasons.  But this new version is aimed to be compatible with NetBeans 6.9, Liferay 6 and also latest version of Portlet Container.

So here are some key features

Many thanks to Deepak for helping me for this release.

If you want to contribute any new feature or doc, you can leave a message here in this blog or send a mail to  portalpack at contrib.netbeans.org

FYI, This project is no longer sponsored by Sun/Oracle.

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.

So if you are using service builder plugin in NetBeans,  here are some steps provided by Ilya Zverev in this forum post to generate soap/http/json classes for the services in your service.xml . I am just doing the copy paste of those steps here in this blog

  • Create service using ServiceBuilder.
  • Create new package apart from your portlet and create an interface there with all service methods.
  • Use Apache Axis’ Java2WSDL and WSDL2Java to create all soap classes and deploy.wsdd .(You can also manually call the build-wsdd target)
  • Find YourServiceSoapBindingImpl.java and write implementations for all methods to call corresponding YourServiceUtil methods, generated by ServiceBuilder.
  • Build this package and put it into tomcat/webapps/ROOT/WEB-INF/lib folder;
  • Take <service> tag from generated deploy.wsdd file and copy-paste it into tomcat/webapps/tunnel-web/WEB-INF/server-config.wsdd near other services.
  • Copy the jar generated with ServiceBuilder into tomcat/common/lib/ext
  • Stop, then start tomcat, deploy your portlet.
  • Check http://localhost:8080/tunnel-web/axis for your service. It should be there.

Thanks to Ilya Zverev for these steps.
Meanwhile we are trying to automate these steps in Portal Pack Service Builder and hope you won’t need to follow all these manual steps in next update release of Portal Pack.

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.

So the detail steps to reproduce this issue  are
1)Create a JSF portlet app using portal pack that uses page naviagation (say from page1 to page2)

2)Deploy the portlet app


3)Click on some botton in page1 to naviagate to page

Issue:Page2 of the JSF portlet is not rendered untill a referesh.Issue not seen in IE..

So now the good news is, there’s a workaround

From the jsf jsp page remove webuiAll="true" attribute from <webuijsf:themeLinks……/> tag. Everything works perfectly in Firefox & IE after removing this attribute.

Portal pack 3.0The Portal Pack 3.0 is now available for download. With lots of new features and bug fixes, the Portal Pack 3.0 is out there to make portlet development easier than before. This version is compatible with NetBeans 6.5 IDE. This version of Portal Pack supports the recently released Sun GlassFish Web Space Server 10.0 which is part of the GlassFish Portfolio.
WebSpace
Sun GlassFish Web Space Server is Sun’s next generation aggregation and presentaion platform.  It enables businesses large and small to pull together applications and content from a variety of Web-based and internal sources and present them as a unified, customizable portal on Web browsers, kiosks, and mobile devices. For more info you can check this blog written by James.

Some of the Key Features in Portal Pack 3.0

  • Support for New JSR 286 specification
  • Eventing Storyboard for JSR 286 Eventing
  • Visual Portlet Builder plug-in to build JSF portlet using WYSIWYG editor.
  • Portlets with Spring MVC framework
  • Write Portlets with different languages like Ruby/PHP/Groovy which can be deployed on Sun GlassFish Web Space Server and Liferay Portal Server.
  • Use Web Space/Liferay’s service builder framework inside your portlet. A new advanced Service XML editor is introduced to help you define and generate services.
  • Use Web Space/Liferay’s service apis directly to write advanced portlets.
  • Use Taglibs provided by Web Space/Liferay directly inside your Portlet. For example : You can use rich ui taglibs provided by Liferay/Web Space inside your Portlet, so that your portlet will look similar to other UI in the portal page.
  • Directory deployment : Using new directory deployment feature, you can quickly develop and test your application without redeploying your portlet application again and again. So no need to deploy your portlet when you are changing JSPs, HTML, javascripts etc etc… Also if you are developing portlets using PHP/Ruby/Groovy languages then you need to deploy the portlet only once during development cycle. During development, just change the PHP/Ruby/Groovy script and refesh the browser to see the output.

The deployment support in this release has been extended to support the following servers

Here’s the link to the  quick start guide for Portal Pack 3.0 . So try out this new Portal Pack 3.0  !!!

We have already started working on the next update for Portal Pack. Your feedback for the existing features and suggestions for any new features are most welcome. So you may see your suggested feature in the next update release of Portal Pack.

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