01 January, 2013

Java standards portlet

WHAT IS A JAVA PORTLET?

  • There are two JSR standards that govern portal/portlet behavior.
  • JSR-168 is the Portlet 1.0 Specification.
  • It was created out of a need to have a specification for displaying multiple applications on the same page.
  • JSR-286 is the Portlet 2.0 Specification which retains backwards
  • compatibility with 1.0 (JSR-168) portlets.
  • Adds new features based on the experience of the different portal vendors.
  • The portlet specification defines the life cycle of a portlet as well as its characteristics.
BENEFITS OF JAVA STANDARD PORTLETS

Core Architecture :
  • The core architecture will be the same across Java Standard compliant portals.
  • Portlets written to the standard will run on all compliant portlet containers.
Documentation :
  • The Portlet Specification will not change, and you can reliably refer to it for information.
  • Standard Portlet API for developers.

06 December, 2012

Liferay to build online environments for regulatory organizations


By Victor Zorin, Enterprise Architect – MyOffice24x7 Pty Ltd
 
(As presented at the Liferay Symposium, San Francisco , 2012)

Challenges of regulatory environments
What is a regulatory environment? One example is an Australian statutory authority that administers state gambling and liquor laws, including management of licensing and compliance.
We had already worked with them to produce a Liferay-based intranet for employees and several specialised extranet portals.
They wanted us to help them come up with an improved way of managing the issuing and renewal for each of their  100+ types of licenses, which were all currently in paper/scanned format. We discovered that the one major challenge faced by these types of organisations is that end users (customers, applicants) expect an uncomplicated, easy to use, and unified front with which to interact BUT regulatory organisations by nature are comprised of a large number of highly disconnected business stakeholders.

05 December, 2012

Using Liferay Portal as an e-Learning Platform



How to use Liferay Portal 6.x to help deliver digital training to your organization affordably and effectively.

Our goal is to show you how Liferay Portal can be used to build a facility where trainees or students are able to undertake
structured, sequenced coursework
under the supervision and assessment of managers and mentors.

Why Liferay?

Liferay Portal does not ship as an e-Learning product, but it does provide
a solid foundation for one:
·          Strong CMS (content management) functionality: its user, role and community
facilities are already well suited to this task.
·          Attractive set of collaboration portlets (wikis, discussion boards, blogs etc) that ship
with the portal.
·          Easily extensible thanks to JSR-168/286 compliance.

Liferay Portal is capable of delivering many of the facilities offered by existing e-Learning products such as Blackboard or Moodle without the associated costs or troubles.
Filling in the Gaps


Liferay Portal is clearly missing some functionality when it comes to achieving our initial goal:
“... a facility where trainees or students are able to undertake structured, sequenced coursework under the supervision and assessment of managers or mentors”
Our priority in conceiving this e-Learning platform is to maximally take advantage of whatever functionality is offered to us by Liferay Portal (or third-party extensions).
Functionalities that are lacking in Liferay Portal:
·          A facility for students/trainees to undertake exercises or ‘lessons’.
·          Facilities for course administrators and supervisors to monitor progress and undertake assessment of completed exercises.
·          A way to implement a community-module-exercise hierarchical structure (Liferay Portal communities cannot really do this natively).

30 November, 2012

Useful Patch for Liferay 6.1.1 GA2 - By Juan

Hi Everyone,

I was just looking out some solution for the problem which is coming out during migration and i found this forum article.

Nice forum article by Juan !!!!
It's really helpful to lookout and solve many issues for Liferay 6.1.1.

He is been doing some years ago, he has  released a patch for solving many issues for 6.1.1 GA2. He has tried to patch only bugs, not improvements.

For patching just unzip the .diff file into liferay 6.1.1 source folder (same folder level as portal-impl, portal-web, etc folders) and use patch command in Linux or other tools for Windows. After that just compile and enjoy!

Example on how to apply patch in Linux: patch -p0 < patch_6.1.1_juan.diff

17 November, 2012

Liferay CRUD portlets with XMLPortletFactory - By Jack Rider



One of the first tasks you find in a project is to create support for the persistence layer, say for example products, clients, suppliers table. This usually accounts for a big load of hours, not to say if you find your self with late changes with fields, versions, requirements....etc

Luckily Liferay developers have this open source tool called XMLPortletFactory, that creates complete portlets with just a small XML definition file, were you can control and implement a load of parameters like:

06 November, 2012

Date picker using alloy UI

Use below code to insert date picker in your jsp file :
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

05 November, 2012

Liferay 6.2 New Features

Guys,
Today i was looking out liferay community and palying with some of article and I found some interesting stuff which would be launching in upcoming version of liferay which is Liferay 6.2 .
So here are some of the attractive features i have listed here.

1)  Website Management :


WCM Management User Interface

      • Similar UI to Documents and Media

      • Easy organization via folders

      • Support for workflow per folder per content type

24 October, 2012

Liferay Community Contributor Awards -2012

Jignesh Vachhani

Jignesh has been involved with Liferay from the start of his career in 2008. Gradually, his interest increased toward Liferay with his experience. Initially Jignesh learned a lot and in fact is still learning from Liferay's Blogs, Wikis, and Forums.  He then started to contribute his own knowledge to the community using forum posts (more than 700 of them). Jignesh is also member of BugSquad.
Apart from his contributions on liferay.com, Jignesh has also started a blog  at www.liferaysolution.com around 2 years ago, sharing useful Liferay development tricks faced during project execution.  The blog currently  has more than 100 blog posts and more than 250,000 visitors (some of which are regular visitors). Jignesh is also an active member of LIUG (Liferay's India User Group) and recently coordinated a meetup in Ahmedabad area. He also guides and encourages other interested liferay developers to participate in liferay collaboration activity, especially within his organization (and Liferay partner, CIGNEX Datamatics) since 2008. Jignesh has been involved in more than 13 Liferay projects (from the US, UK, EMEA, and APAC) as a Liferay tech lead and have provided predominant solutions.
Jignesh completed his Bachelors of Engineering in Computer Science in 2008 from Faculty of Technology (DDU, Nadiyad), and wants to contribute as much as he can to the Liferay platform directly or indirectly using liferay.com and its collaboration activity.
Click Here to get more details...

28 September, 2012

Maven build with liferay

Nice tutorial by http://www.eusia.info

Have a look !!!


Assuming that you have JDK and Maven set up in you machine, I will write here how we can have a liferay project in minimal effort and make it distributable in all environments.
We will use Maven archtype plug-in to create liferay project.
Consider a folder as your project home, like: /home/manna/examples/liferay
if you working with maven you can have several maven settings based on project requirements, so better to have a different maven settings file like here we have : /home/manna/.m2/eusiaweb.xml
<settings>
    <profiles>
        <profile>
            <id>examples</id>
            <repositories>
                <repository>
                    <id>sonatype</id>
                    <url>http://oss.sonatype.org</url>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>maven</id>
                    <url>http://repo2.maven.org/maven2</url>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>examples</activeProfile>
    </activeProfiles>
</settings>


14 September, 2012

Get user roles in theme velocity template

Many times we have requirement coming out to fetch user roles in theme velocity template (.vm) file.
So below code you can use for Liferay 6.X :


#set($role=$serviceLocator.findService("com.liferay.portal.service.RoleLocalService"))
$role.getUserRoles($user_id)

Hope this will useful !!!
Best,
Jignesh Vachhani

13 September, 2012

Liferay search container without database

If you want to use search container in which data will come from Array rather than database,
you can simply use below code :


Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...