Recent Bloggers

Sandeep Sapra

2 Mensagens
17 de Novembro de 2017

Zeno Rocha

17 Mensagens
7 de Novembro de 2017

Yasuyuki Takeo

3 Mensagens
5 de Novembro de 2017

John Feeney

1 Mensagens
3 de Novembro de 2017

Gregory Amerson

30 Mensagens
3 de Novembro de 2017

Minhchau Dang

13 Mensagens
3 de Novembro de 2017

Petteri Karttunen

5 Mensagens
30 de Outubro de 2017

Alex Swain

2 Mensagens
27 de Outubro de 2017

Jamie Sammons

10 Mensagens
23 de Outubro de 2017

Jan Verweij

2 Mensagens
23 de Outubro de 2017

How to Support Staging in your App

Company Blogs 30 de Maio de 2017 Por Cody Hoag Staff

If you're interested in providing Staging and/or Export/Import support for your application, you must create Staged Models to track your app's entities and Data Handlers to share information about your entities to the Staging framework. Liferay now provides official documentation to help you do both. There are three new tutorials you can reference for Staged Model development:

There are also tutorials for understanding and creating Data Handlers:

Having trouble deciding if you should support Staging in your app? Consult the Decision to Implement Staging tutorial for advice on what you should do.

If you're interested in advanced topics about Liferay's Staging framework, visit the tutorials outlining How to Initiate a Staging Process Programatically and How to Listen for Staging Events During the Publication Process.

There's still more Staging docs in the works, so stay tuned!

Want to stay updated on the latest official documentation published by Liferay? Follow us on Twitter: @liferaydocs.

Spring 2016 Javadoc Contest Winners

Company Blogs 16 de Maio de 2016 Por Cody Hoag Staff

Our inaugural Community Javadoc Contest officially ended last week, and we received some really good submissions. Luckily, there were two clear-cut winners, so the process of choosing our champions was very straightforward. We have one internal winner (Liferay employee) and one external winner (community member). Before announcing them, I'd like to give a big thanks to anyone that submitted Javadoc over the past few months. We greatly appreciate it! Now to the exciting part!
excited applause awesome minions exciting
Community Javadoc Champion - Sébastien Le Marchand  
Sébastien fully documented Liferay's GetterUtil and ParamUtil classes, and partially documented several other classes/interfaces. I'd like to especially thank Sébastien for his quick responses and obvious attention to detail! Thanks!
Internal Liferay Javadoc Champion - Marcellus Tavares  
Marcellus provided a slew of Javadoc for our DDL Java code, which included DDL constants, exceptions, exporter, utility, comparators, and services. Thanks, Marcellus!
Again, thanks to everyone that played a part in this contest. If you'd like to provide any feedback on how this contest could be improved, or if you'd like to see this contest again in the future, please comment on this post below.

Javadoc Contest

Company Blogs 6 de Março de 2016 Por Cody Hoag Staff



Another Liferay contest is on the way! This one, however, is a bit different than others you may have participated in previously. To celebrate the upcoming release of Liferay 7, we are holding a community Javadoc contest. It's simple; you write Javadoc for parts of Liferay you have expert knowledge on, and you accumulate points based on the amount of documentation you provide.


Why should I enter the contest?


In the early years of Liferay, documentation was a sore subject among Liferay users and community members. This has changed drastically over the years and has culminated in Liferay's Developer Network. Another area Liferay is looking to drastically improve is its API reference documentation (API docs). Because this is such a large task, we're calling on our community to assist. Liferay held an internal Javadoc contest, which garnered enthusiasm about writing API docs from within the company. The winner of our internal contest, Olaf Kock, gave some good advice for how the Javadoc transformation can be done quickly. His paraphrased advice: If many developers using Liferay provide Javadoc for the areas they have a deep understanding for, whether that be a couple methods or an entire package, Liferay will quickly see a turnaround in overall source code documentation. For more motivation, getting the recognition of Top Javadoc Contributor is a nice bragging right. smiley


I like bragging, but I like prizes more!


The top contributors will win an awesome Liferay Javadoc Master t-shirt (see graphic below).



So when you’re bragging about being a Javadoc expert to your friends and colleagues, you can have some proof to back it up.


Contest Timeline


March 8: Contest Opens

May 6: Last day to submit Javadoc

May 13: Winners announced


This gives you approximately eight weeks to submit as much Javadoc as possible for the contest.




How do I write Javadoc?


Liferay provides comprehensive Javadoc Guidelines that explains the rules for writing Javadoc. In fact, these guidelines are so comprehensive that they are split up into two major sections: Javadoc Guidelines and Advanced Javadoc Guidelines. Start with the Javadoc Guidelines if you're a newbie and want to learn the basics. If you know the general rules and are looking for specific examples for a use case, the Advanced Javadoc Guidelines is where you want to visit.


How do I contribute?


Once you've committed your Javadoc using Git, you can send a pull request to liferay/liferay-portal with your changes and tag @codyhoag in the pull request comments. Be sure to only include Javadoc; no code changes please!


How do I score points?


We're placing an emphasis on higher level areas. This means package description > class description > method description. The following point values apply:


Package: 3 points

Class: 2 points

Method 1 point


The points will be tallied for each contributor and standings will be posted frequently to the following Javadoc Contest Standings forum post. Make sure to subscribe to this forum post for updates.


Warning: Although this is a contest judged on the amount of content submitted, please strive to produce Javadoc that would be helpful for developers. Contest judges have the right to nullify contest points if it is obvious the submitter did not exert the appropriate effort necessary to write a useful description.


What’s the review process for my submitted Javadoc?


Submitted Javadoc will be reviewed by a lead developer for the area you documented to check for accuracy. The Javadoc will be reviewed again by the lead technical writer of the area to ensure the Javadoc Guidelines have been followed. We understand that not everyone is a native English speaker or has a fancy writing degree hanging in their office. We want Liferay knowledge, and we'll take care of the rest!

Again, please subscribe to the Javadoc Contest Standings forum post if you’re interested in following or participating in the contest. Good luck and happy Javadoc'ing!

giphy (2).gif

New OAuth Information Available on Liferay Developer Network

Company Blogs 25 de Novembro de 2014 Por Cody Hoag Staff

You may have noticed that Liferay's new OAuth Provider application was released on Marketplace last week. This utility authorizes third-party applications to interact with a user’s resources. OAuth is a handshake mechanism that redirects Liferay users to a service provider, where they can tell the service provider to allow a plugin limited access to their Liferay accounts. This keeps the plugin from storing any of the user's credentials, avoiding security risks.
If you're interested in a Liferay Bodyguard (OAuth) and want to learn more about how it works, visit the Liferay Developer Network's user article on OAuth. If you'd like to implement OAuth yourself, visit the developer tutorial.
Special thanks to Igor Beslic for his helpful advice and insight. Also, thanks to Rich Sezov and Jim Hinkey for their guidance.

Troubleshooting JSF Portlet Deployment Errors

General Blogs 15 de Julho de 2014 Por Cody Hoag Staff

Many of us have experienced it, you go to deploy a new application into your portal instance and see the dreaded deployment error messages. What do you do? Is the error message helpful? How can I find the solution?

If you're experiencing deployment problems with deploying a JSF portlet on Liferay, there's a simple process you can follow to solve your deployment issues. Instead of trying to figure out what's wrong with your code, it's sometimes easier to compare your portlet to a working example. The strategy/tutorial below creates a working example to compare your project to. This strategy is recommended by our Liferay Faces experts.

For the following steps, we assume someone is using a JBoss server. However, these fundamental steps can be followed for any app server. Here they are:

  1. Download a Liferay+JBoss bundle
  2. Determine the correct version of Liferay Faces: Liferay Faces Version Scheme
  3. Follow the instructions to upgrade Mojarra: For JBoss or for other app servers
  4. Follow the instructions to upgrade Weld: For JBoss or for other app servers
  5. Follow the instructions for Building Liferay Faces From Source
  6. Build the jsf2-portlet (from liferay-faces on Github) using theJBoss profile and deploy it to the Liferay+JBoss bundle:

            cd liferay-faces/demos/bridge/jsf2-portlet
            mvn -P jboss clean package
            cp target/jsf2-portlet*.war $LIFERAY_HOME/deploy

    7. Build the primefaces4-portlet (from liferay-faces on Github) using the JBoss profile and deploy it to the Liferay+JBoss bundle:

            cd liferay-faces/demos/bridge/primefaces4-portlet
            mvn -P jboss clean package
            cp target/primefaces4-portlet*.war $LIFERAY_HOME/deploy

    8. Examine the working example WARs and find out how they are different from the WARs that you are having trouble deploying. Typically it is a problem with dependencies. For example, you might be including portal-service.jar inside of WEB-INF/lib which could cause a ClassCastException.

This specific Liferay Faces troubleshooting tutorial is currently being migrated into Liferay's documentation. I'll post the link to the official tutorial to this post, once it's complete. Hope this helps!

Recycle Bin Section Now Available in Developer's Guide

General Blogs 8 de Maio de 2014 Por Cody Hoag Staff

There's been a lot of talk in the past year in regards to Liferay's new Recycle Bin framework. How do we use it? Why do we use it? Basic "user" based questions can be answered in our User Guide (Using Liferay Portal) section: Recycling Assets with the Recycle Bin. However, for a more comprehensive, in-depth guide for implementing the Recycle Bin framework for custom apps, you can now visit the Developer Guide's brand new Implementing the Recycle Bin in Your App section.

For this new Dev Guide section, we go through a detailed step-by-step guide explaining everything that is required to leverage the Recycle Bin in your personal app. Because the Recycle Bin is integrated with Liferay’s platform, configuring and implementing the Recycle Bin for your apps is easy. There are five Recycle Bin framework capabilities we discuss, in detail:

  • Moving Entries to the Recycle Bin
  • Restoring Entries from the Recycle Bin
  • Implementing the Undo Action
  • Moving/Restoring Parent Entities
  • Resolving Conflicts

While discussing these capabilities, we refer to code snippets taken from Liferay’s Jukebox Portlet plugin.
If you're interested in learning about the development side of Liferay's Recycle Bin framework, the Developer Guide's new section should be your first stop!
Special thanks to Julio Camarero and Jim Hinkey, for their helpful advice and guidance.

Liferay IDE 2.0 Documentation Now Available

General Blogs 6 de Janeiro de 2014 Por Cody Hoag Staff

You probably heard about the release of Liferay IDE 2.0 a couple weeks ago, but may have questions as to what is new and improved. Of course, it is compatible with the new Liferay Portal 6.2 release, but what are some of the major additions that make this release so great? The 6.1 and 6.2 Liferay Developer's Guide is now updated to describe some of these awesome new features, and also provides Liferay plugin development examples using Liferay IDE 2.0.

One of the largest additions is the brand new Liferay Plugin Project Wizard supporting both Ant (Plugins SDK) and Maven (liferay-maven-plugin) projects. This means you can now create and modify Maven projects using a graphical interface! There's also a new POM editor featuring five interactive modes, which helps you modify and organize your POM and its dependencies. Having problems resolving your POM's errors? Liferay IDE 2.0 also offers resolution generation for common pom.xml errors.

Greg Amerson wrote a couple useful blogs that introduces Liferay IDE 2.0's new features: Liferay IDE Milestone 1 Update and Liferay IDE Milestone 3 Update.

For examples and documentation on IDE's new features, visit our Working with Liferay's Developer Tools chapter in Liferay's 6.2 Developer's Guide. If you're interested in using Liferay IDE 2.0 for Liferay Portal 6.1, you can reference the Liferay IDE and Developer Studio and Developing Plugins Using Maven chapters of Liferay's 6.1 Developer's Guide. However, these aren't the only places to find IDE related information! IDE examples are sprinkled throughout the guides for most plugin development examples as well (e.g. Developing Portlet Applications chapter has IDE example for developing Liferay portlet plugins). If you're interested in using Liferay IDE 2.0, make sure to take a pitstop at Liferay's Developer's Guide!

Note: If you are interested in contributing content to the Dev Guide or any of our official documents, go to and follow the README file found in the project root and follow the guide documents found in the guidelines folder.

OpenSocial Gadgets chapter released in Development Guide

Company Blogs 4 de Outubro de 2012 Por Cody Hoag Staff

It's finally here! OpenSocial gadgets is the next great topic now residing in Liferay's Development Guide. Gadgets are similar to portlets because they can be added to your portal's pages and used for all kinds of tasks. Also known as social applications, gadgets share data within well defined networks, facilitating communication of information between groups of users. Furthermore, gadgets are characterized as being simple, widely available, and easy to deploy.

This new comprehensive guide can be found in Chapter 12: Creating and Integrating with OpenSocial Gadgets in the Development Guide. The chapter introduces gadget basics, OAuth technology, PubSub, and a guide for using Liferay Portal's gadget editor. Likewise, fun examples and fully functional code snippets offer a great learning experience for developers.

If you're interested in learning more about OpenSocial gadgets or want to incorporate them into your portal, make sure to visit Liferay's Development Guide!

Kaleo Designer for Java now in Development Guide

Company Blogs 17 de Setembro de 2012 Por Cody Hoag Staff

The Knowledge Management team is pleased to bring an extensive guide for one of Liferay Developer Studio's newest features: Kaleo Designer for Java. The Kaleo Designer for Java facilitates back-end Java development and scripting to incorporate in your workflows. This feature adds another dimension to working with your Kaleo workflows making it easy for Java developers to enhance workflow business logic.

This new comprehensive guide can be found in Chapter 9: Liferay IDE located within Liferay's Development Guide. The guide introduces background information, features, capabilities, set-up procedures, and a working example for developers to reference when trying out this new feature. Also, snapshots are given for a visual reference. This comprehensive guide gives you a plethora of tips and options about Kaleo Designer for Java hinged on a fun and useful workflow exercise. Lastly, you can visit Greg Amerson's video for a brief visual demo.

If you need assistance or just want to learn more about the Kaleo Designer for Java, this guide is a necessary pit-stop for your workflow development!

Mostrando 9 resultados.
Items 20
de 1