New Liferay Faces release - The alloy:selectStarRating and alloy:selectThumbRating components

Company Blogs October 16, 2015 By Vernon Singleton

Let me introduce two simple and fun components from among our recently released Liferay Faces Alloy tags, alloy:selectStarRating and alloy:selectThumbRating.  Following the example set by our friends on the AlloyUI team, we packaged their rating component as a JSF component.

AlloyUI StarRating + JSF ➔ Liferay Faces alloy:selectStarRating


And similarly, for a boolean true/false …
AlloyUI ThumbRating + JSF ➔ Liferay Faces alloy:selectThumbRating


Both of these components are written to be used in the manner of JSF's selectOneRadio, and they simply default to use the bootstrap theme with FontAwesome star and thumb icons available in Liferay.  Speaking of the bootstrap theme, you may also want to follow my colleague's post here that shows how to use Liferay's built in bootstrap themes and generate your own.

Look forward to greater things from our team as we tackle the portlet 3 specification and the new bridge specification.  The community has decided, portals are here to stay with another round of new features and new standards to implement.


New Liferay Faces release - The alloy:accordion component

Company Blogs April 14, 2015 By Vernon Singleton

Continuing in the spirit of Juan Gonzalez’s excitement over the new portal components, let me introduce a new Liferay Faces Alloy component which will be included in the the upcoming GA release.  Following the example set by our friends on the AlloyUI team, we packaged their toggler as a  JSF component.  

Q: What advantages does JSF bring to the table?

A: All the power you would expect from the Java EE standard webapp UI framework.

AlloyUI Toggler + JSF Liferay Faces alloy:accordion


features added using JSF:

  • renders your menu from a collection, providing developers with the ability to iterate over a data model via the standard “value” and “var” attributes.

  • usage of @ResourceDependency support from JSF 2.

  • Broadcasts the tabExpanded and tabCollapsed server-side events when the users selects a tab.

features brought to the table by AlloyUI:

  • Beautiful easing animation!

features brought to you by the Liferay Faces team:

  • auto-detects Liferay and uses its bootstrap css … your portlet looks like an out of the box portlet.

  • all of the Liferay Faces Alloy components work outside of Liferay in a plain webapp.

For more information, take a look at the Liferay Faces Showcase, or visit our documentation.  Enjoy using Liferay Faces Alloy!


New features

General Blogs February 19, 2014 By Vernon Singleton

Whew!   A new release of Liferay Faces is out the door for you to use.

But I also wanted to mention some cool new features that the gurus of Liferay Faces have been working on.   These new features can be gleaned from the parent pom in the master branch, so let's take a look:


What does this mean?

1) HTML5 support
2) Resource Library Contracts (a toned down Multi-Templating)
3) Faces Flows
4) Stateless views

and two new demos to show off some of these features

1) jsf2-html5-portlet
2) jsf2-flows-portlet


What does this mean?

a new primefaces4-portlet demo


What does this mean?

This means that all of these portlets and features above are currently being tested on the newest versions Liferay Portal (6.2.0-ga1 and the Enterprise Edition

You can try these new demo portlets and features for yourself by building Liferay Faces From Source.

Also, if you are new to Liferay, or if you learn by doing, try one of these two new tutorials to get a feel for using Liferay Faces.

1) PrimeFaces Portlet Tutorial
2) Generate a portlet using maven




Liferay Faces 3.1.3-ga4 Released

General Blogs September 7, 2013 By Vernon Singleton

This release was about doing lots of hard work to get things that are just nice to have.  Or rather, lots of hard work to get things to the point that you do not have to have them anymore, like zero configuration of those silly listeners we always had to declare in the bottom of every web.xml whenever we wanted to simply publish a new portlet.

But yet this release was also more great icing on the cake that we did not expect to get done.  Indeed, some things that many developers do not expect to get done ... like Documentation.
Near and dear to many developers is that special kind of documentation that is complete, thorough, and even readable to the point that it looks like it was painful to create, but then on closer inspection, you see that it is complete because it was more automated than painful.
And then, you realize that you may benefit from this documentation even more than when you were simply thinking of it as a reference, because now you see that the tool they used to automate their documentation is useful on your current faces apps.  You too can get that same bling that your project desperately needs.
Yes, that's what I am talking about: useful documentation, and useful tools for making documentation.  Take a look at the View Decoration Language tool Vdldoc.
Originally forked and recently updated by this fellow who has some ridiculous reputation over on stackoverflow.
Vdldoc has now been enhanced to support composite as well as custom components. This helped our project publish complete vdldocs here.
It was great fun to work on a tool like Vdldoc that will help many developers whether they use Liferay or not.
If you still need to know more about this release, get some here.

CDI for portlets is here

General Blogs June 4, 2013 By Vernon Singleton


For those of you egg heads who have been wondering where the support for Context and Dependency Injection is, well this is your day.  Liferay now has support for your favorite annotations like: @Named and @Inject.
Cruise over to the demos page and checkout the new jsf2-cdi-portlet:
My buddy Neil Griffin also wrote a new wiki article for you How to develop Liferay portlets with CDI:
Showing 5 results.