Liferay DXP 2026.Q4    |    Release Webinar: 18 November 2026    |    Replay coming soon! 

Blogs

Making portlet support public render parameter in DXP

Neil Jin
Neil Jin
أقل من قراءة دقيقة

This is the way how to make IPC through public render parameter in Liferay DXP(Lfieray 7).

Key point:

     You need to add a supported render parameter in all portlet's Component Annotation.

     "javax.portlet.supported-public-render-parameter=message"

     The "message" is the public render parameter name.

    After you have done this you can use this parameter as a regular render parameter in the portlet. 

    In your link you can add the parameter like this:

    <portlet:renderURL var="senderURL">

        <portlet:param name="message" value="Prove you can receive me" />
    </portlet:renderURL>
 
    You can receive the value like this:
     renderRequest.getParameter("message");
 
Please check the attachment for a functional project.
After the module is installed you can find the portlets under Sample category.
 
تعليقات الصفحة

Related Assets...

لا توجد نتائج

More Blog Entries...

Himanshu Chauhan
نوفمبر ٢٠, ٢٠٢٦
Tony Lim
نوفمبر ١٩, ٢٠٢٦