Total Pageviews

Saturday, May 30, 2015

Liferay: IPC using Public Render Parameters

IPC (Inter Portlet Communication) in Liferay can be implemented in different ways and  we'll see one among the possibilities, i.e. Public Render Parameter. This concept was introduced in JSR 286.

The central idea of this concept is to share a normal parameter across all deployed portlets despite of the fact that they lie in same WAR or in different.

1. In portlet.xml in the end of </portlet> tag we have to define the name of parameter

2. In portlet.xml in the end of <portlet-app> tag we have to define the identifier with the name of parameter

Full portlet.xml file will look like as follows:

Setting Parameter:

Reading Parameter:

Note: If render parameters need to be shared among two different WARs, and you have to set parameter in portlet 1 and read in portlet 2, For achieving this, we have to add definition of render parameter in the portlet.xml file of both the WARs. 

8 comments:

  1. Great blog..You have clearly explained about the concept..Step by step explanation is too good to understand..Its very useful for me to understand..Keep on sharing..
    Java Training in Chennai

    ReplyDelete

  2. yours idea is really good and innovative , these resources are really awesome thanks for sharing those information and i got more in formation about this concept.




    sap training in chennai

    ReplyDelete
  3. This blog explains the details about changing the ways of doing that business. That is understand well and doing some different process. Provides he best output of others. Thanks for this blog.
    SAP Training in Chennai

    ReplyDelete
  4. Awesome..You have clearly explained ...Its very useful for me to know about new things..Keep on blogging..
    Dotnet training in chennai

    ReplyDelete
  5. Awesome..You have clearly explained ...Its very useful for me to know about new things..Keep on blogging..
    Dotnet training in chennai

    ReplyDelete
  6. That is very interesting; you are a very skilled blogger. I have shared your website in my social networks!


    SAP training in Chennai

    ReplyDelete
  7. I have read your blog its very attractive and impressive. I like it your blog.


    JavaEE Training in Chennai JavaEE Training in Chennai

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Java 8 Training in Chennai

    ReplyDelete