« 返回到 Liferay IDE

Liferay IDE 1.2 New and Noteworthy

Previous New and Noteworthy pages #

New features in 1.2 #

Portlet UI Frameworks #

Liferay IDE now has support for 3 different portlet UI frameworks.

  • Liferay MVC (default framework for 6.0 SDK)
  • JSF - based on JSF 2.0 and portletfaces bridge (requires Liferay 6.1)
  • Vaadin - based on Vaadin framework (requires Liferay 6.1)

In the new Liferay Project wizard, on the 2nd page, you are now given the option for selecting a portlet framework.

JSF Portlet Wizard #

To create JSF portlets, first create a new Liferay project, select portlet for plugin type and click Next to go to the portlet UI framework select page and select JSF framework and click Finish

Once you have a JSF portlet project you can create new JSF portlets with the new JSF Portlet wizard.

The New JSF Portlet wizard will create a JSF portlet based on the PortletBridge project and will generate facelet XHTML files for the view.

XHTML files are generated in JSF wizard.

Vaadin Portlet Wizard #

To create Vaadin portlets, first create a new Liferay project, select portlet for plugin type and click Next to go to the portlet UI framework select page and select Vaadin framework and click Finish

Once you have a vaadin portlet project you can create new Vaadin portlets with the New vaadin Portlet wizard

The New Vaadin portlet wizard instead of creating a portlet class, it creates a new Vaadin Application class and wires up the Vaadin portlet in portlet.xml to render the application in Liferay.

Improved features in 1.2 #

Improved Ext plugin deployment #

Ext plugin deployment has been reworked in the 1.2 release. It is now fully supported in the IDE for all use-cases, deploy (publish), undeploy (clean), and re-deploy (uses direct-deploy ant task)

  • Multiple deploys (redeployment) now works as expected from IDE, note that auto-matic publishing for Ext plugins is not enabled. It requires manually invoking a publish for Ext plugins. Other projects (portlets, hooks) are still automatically published.

  • Undeploying of Ext plugins is now supported through the Clean App Server action

  • Clean app server action is invokved as a context menu action from Ext plugin project

  • Requires extra runtime configuration for specifying the zip bundle

  • Multiple Ext plugins are not supported on one server

Custom server settings #

The Liferay Tomcat server has additional settings that can be customized for the developer's use.

  • User timezone can be set
  • Server memory arguments can be set
  • IF user has external properties they would like to set (added to -Dexternal.properties) they can be specified

Other improvements #

  • SDK build.<username>.properties can now be optionally updated during SDK commands to match the Liferay IDE configuration (app.server properties)

  • Liferay Hook wizard can now add hooks to both Hook and Portlet projects

  • Service builder tasks are not performed in external JRE with more memory available
  • Multiple or custom service.xml files are now supported
16 附件
55168 查看
平均 (2 票)
满分为 5,平均得分为 5.0。
评论
讨论主题回复 作者 日期
Thanks Gregory really worthy.~~~~~ Suhail Ahmed 2011年2月11日 上午7:12
I will update right now! Aritz Galdos 2011年2月11日 上午12:23
Well done! Updating... Milan Jaroš 2011年2月11日 上午1:39
Great, JSF 2.0 and Vaadin Portlets! But where... Leon Dai 2011年2月11日 上午4:46
Hi Leon, Unfortunately the only way to get the... Greg Amerson 2011年2月11日 上午10:05
Hi Greg, thanks for your answer. Leon Dai 2011年2月11日 上午10:57
Gregory, why i can edit your wiki page? Sorry... Leon Dai 2011年2月11日 上午5:07
Nice Work Gregory !!! Pravin Pawar 2011年2月11日 上午6:30
Excellent updates especially Liferay Server... Kamesh Sampath 2011年2月12日 上午12:45
That sounds great, thanks! I was wondering... Joseph Toman 2011年2月13日 上午10:26
Nothing prevents you from using those scripting... Greg Amerson 2011年2月14日 上午8:46
Hi Gregory, I use LIDE 1.2 in order to build... Christophe Cariou 2011年3月31日 上午3:56
Replying to myself (but any comment will be... Christophe Cariou 2011年3月31日 上午6:03
see : ... Christophe Cariou 2011年3月31日 上午6:21
Christophe: you saved my day! :) Cheers, Ivan Ivan Ricotti 2011年9月27日 上午1:41
Thanks Gregory very helpful...:) jaid shaik 2013年5月14日 上午5:39

Thanks Gregory really worthy.~~~~~
在 11-2-11 上午7:12 发帖。
在 11-2-11 上午12:23 发帖。
在 11-2-11 上午1:39 发帖。
Great, JSF 2.0 and Vaadin Portlets!
But where can I get the Liferay plugin sdk 6.1???
在 11-2-11 上午4:46 发帖。
Gregory, why i can edit your wiki page? Sorry for that, I did it without intention.
在 11-2-11 上午5:07 发帖。
在 11-2-11 上午6:30 发帖。
Hi Leon,

Unfortunately the only way to get the 6.1 SDK is to pull the plugins SDK from trunk and run the "ant extract-plugins-sdk" command.

http://svn.liferay.com/repos/public/plugins/trunk/
在 11-2-11 上午10:05 发帖以回复 Leon Dai
Hi Greg, thanks for your answer.
在 11-2-11 上午10:57 发帖以回复 Gregory Amerson
Excellent updates especially Liferay Server updates which was a nightmare previously as we need to create a duplicate runtime and then update it for Liferay server settings.

I am eagerly waiting for JBoss Server support for runtime which I see will happen in v2.0 of the IDE
在 11-2-12 上午12:45 发帖。
That sounds great, thanks! I was wondering though, is there any support in Liferay IDE for building portlets in other languages than Java, e.g. the supported scripting languages or Scala? If not, are there any plans to add this?
在 11-2-13 上午10:26 发帖。
Nothing prevents you from using those scripting languages manually in Liferay IDE if you install eclipse plugins for those languages. No plans at the moment for adding wizards for creating new portlets directly in the IDE.
在 11-2-14 上午8:46 发帖以回复 Joseph Toman
Hi Gregory,

I use LIDE 1.2 in order to build an ext plugin.

All is perfect inside LIDE, with an attached LP6.0.5 bundle : my ext is deployed and run as expected.

Now, I'm trying do build my ext for a deployment on a production server.
I've launch the and "deploy" task from Eclipse, that generate me a war for my ext.
Next I've pasted this war on the deploy dir of my running server.
The deployment start, the war is copied end expanded in /webapps and BOUM : I've this error :
-------------------------------------------------
09:16:52,796 INFO [ExtHotDeployListener:137] Registering extension environment for ansamble-ext
java.lang.StringIndexOutOfBoundsException: String index out of range: -321
at java.lang.String.substring(String.java:1937)
at com.liferay.portal.tools.WebXMLBuilder.<init>(WebXMLBuilder.java:96)
at com.liferay.portal.tools.WebXMLBuilder.main(WebXMLBuilder.java:44)
....
----------­---------------------------------------

And of course, my ext isn't deployed (the ROOT app has no changes).

I reproduced it on a fresh new install of a Liferay bundle.

So, can you help me? Why does it work well inside LIDE and not outside ? Does LIDE do "something" more than just paste the war inside a deploy dir ?

Regards
在 11-3-31 上午3:56 发帖。
Replying to myself (but any comment will be apprecied) :

The error was coming from the web.xml parsing by WebXMLBuilder. The method look for "<web-app" tag and "/web-app>". BUT, by default the web.xml file in an ext plugin created from IDE contains a <web-app ..../> tag ! So the parsing failed and the deployment goes down...

The problem should be the same from the direct-deploy ant script, but it doesn't revert the whole deployment process as from the hotdeploy listener.

I'll post 2 jiras about that (one for the parser and one for default web.xml file in the IDE).

regards
在 11-3-31 上午6:03 发帖以回复 Christophe Cariou
see :
http://issues.liferay.com/browse/LPS-16233
and
http://issues.liferay.com/browse/ID­E-331
在 11-3-31 上午6:21 发帖以回复 Christophe Cariou
Christophe: you saved my day! emoticon
Cheers,
Ivan
在 11-9-27 上午1:41 发帖以回复 Christophe Cariou
Thanks Gregory very helpful...emoticon
在 13-5-14 上午5:39 发帖。