<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Pass parameters to a portlet configured in a page in Liferay 5.1.0</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1285786" />
  <subtitle>Pass parameters to a portlet configured in a page in Liferay 5.1.0</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1285786</id>
  <updated>2026-04-05T19:07:08Z</updated>
  <dc:date>2026-04-05T19:07:08Z</dc:date>
  <entry>
    <title>RE: Re: [Liferay Forums][3. Development] Pass parameters to a portlet confi</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3099966" />
    <author>
      <name>Mariusz Zawadzki</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3099966</id>
    <updated>2009-05-14T18:26:32Z</updated>
    <published>2009-05-14T18:26:32Z</published>
    <summary type="html">I figured it out, by using JSR-286  public render parameter in portlet.xml&lt;br /&gt;&lt;br /&gt;(example for jsf: http://blogs.sun.com/deepakg/entry/jsf_portlet_and_public_render)&lt;br /&gt;&lt;br /&gt;Maybe someone will find it useful.</summary>
    <dc:creator>Mariusz Zawadzki</dc:creator>
    <dc:date>2009-05-14T18:26:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Re: [Liferay Forums][3. Development] Pass parameters to a portlet confi</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3096237" />
    <author>
      <name>Mariusz Zawadzki</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3096237</id>
    <updated>2009-05-14T10:38:21Z</updated>
    <published>2009-05-14T10:38:21Z</published>
    <summary type="html">Hi.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m developing a portal in Liferay for our company.&lt;br /&gt;&lt;br /&gt;And we need to render one page with few portlets, but all of these portlets need to get the same parameter at a time.&lt;br /&gt;Getting a parameter from page request seams to be best solution for this. &lt;br /&gt;&lt;br /&gt;Is it possible? Or is there another way to do this?&lt;br /&gt;&lt;br /&gt;Best regards.</summary>
    <dc:creator>Mariusz Zawadzki</dc:creator>
    <dc:date>2009-05-14T10:38:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Re: [Liferay Forums][3. Development] Pass parameters to a portlet confi</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1291858" />
    <author>
      <name>Mario Striglione</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1291858</id>
    <updated>2008-09-10T15:18:33Z</updated>
    <published>2008-09-10T15:18:33Z</published>
    <summary type="html">Hi!&lt;br /&gt;&lt;br /&gt;Thanks for the answer.&lt;br /&gt;&lt;br /&gt;But what if I need to pass parameters to two different instances of two different portlets? In this way I can refer only to one instance of one portlet.&lt;br /&gt;&lt;br /&gt;Best regards.</summary>
    <dc:creator>Mario Striglione</dc:creator>
    <dc:date>2008-09-10T15:18:33Z</dc:date>
  </entry>
  <entry>
    <title>Re: [Liferay Forums][3. Development] Pass parameters to a portlet configure</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1287739" />
    <author>
      <name>Ray Augé</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1287739</id>
    <updated>2008-09-09T21:48:48Z</updated>
    <published>2008-09-09T21:48:48Z</published>
    <summary type="html">On Tue, 2008-09-09 at 13:22 +0000, Mario Striglione at Liferay&amp;#39;s&lt;br /&gt;Community Forums wrote:&lt;br /&gt;&lt;br /&gt;&amp;gt; I am trying to update to liferay portal 5.1.0 but I am not able to use&lt;br /&gt;&amp;gt; this approach any more.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s because according to the JSR-286 spec, it is illegal to pass a&lt;br /&gt;parameter to a portlet when you are not directly targeting the portlet,&lt;br /&gt;which means you have to include the p_p_lifecycle and p_p_id params&lt;br /&gt;along with the namespaced param.&lt;br /&gt;&lt;br /&gt;This ends up looking like:&lt;br /&gt;&lt;br /&gt;[tt]p_p_lifecycle=0&amp;amp;p_p_id=56_INSTANCE_tes1&amp;amp;_56_INSTANCE_tes1_articleId=10130[/tt]&lt;br /&gt;&lt;br /&gt;which is kinda ugly and heavy.&lt;br /&gt;&lt;br /&gt;SO, use the friendly URL instead:&lt;br /&gt;&lt;br /&gt;[tt]&amp;lt;layoutFriendlyURL&amp;gt;/-/journal_content/&amp;lt;groupId&amp;gt;/56_INSTANCE_tes1/10130[/tt]</summary>
    <dc:creator>Ray Augé</dc:creator>
    <dc:date>2008-09-09T21:48:48Z</dc:date>
  </entry>
  <entry>
    <title>Pass parameters to a portlet configured in a page in Liferay 5.1.0</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1285785" />
    <author>
      <name>Mario Striglione</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1285785</id>
    <updated>2008-09-09T13:22:48Z</updated>
    <published>2008-09-09T13:22:48Z</published>
    <summary type="html">Hi all.&lt;br /&gt;&lt;br /&gt;portal Until Liferay version 4.4.2 I was able to pass parameter to a portlet configured in a page using the instance name.&lt;br /&gt;For instance if I wanted to pass the articleId 10130 to the JournalContent portlet I needed just to add in the URL _56_INSTANCE_tes1_articleId=10130, considering that in this particular case the instance name was 56_INSTANCE_tes1.&lt;br /&gt;I am trying to update to liferay portal 5.1.0 but I am not able to use this approach any more.&lt;br /&gt;&lt;br /&gt;Can you help me?&lt;br /&gt;&lt;br /&gt;Best regards.</summary>
    <dc:creator>Mario Striglione</dc:creator>
    <dc:date>2008-09-09T13:22:48Z</dc:date>
  </entry>
</feed>
