<?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>IPC Events with Redirect on Liferay 7</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117461517" />
  <subtitle>IPC Events with Redirect on Liferay 7</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117461517</id>
  <updated>2026-04-05T08:47:05Z</updated>
  <dc:date>2026-04-05T08:47:05Z</dc:date>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117525205" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117525205</id>
    <updated>2019-10-21T15:00:58Z</updated>
    <published>2019-10-21T15:00:58Z</published>
    <summary type="html">Hi Ramon,&lt;br /&gt;I&amp;#39;m glad to learn that the workaround is good enough for your use-case. Thanks for reporting back and thanks for using Liferay Faces.&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-10-21T15:00:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117519477" />
    <author>
      <name>Ramon Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117519477</id>
    <updated>2019-10-21T05:29:01Z</updated>
    <published>2019-10-21T05:29:01Z</published>
    <summary type="html">Hi Neil!&lt;br /&gt;&lt;strong&gt;Your workaround works!!&lt;/strong&gt; and now I can do redirect with  jsf-ipc-events-customers-portlet and also with my custom portlet!!!&lt;br /&gt;Thank you very much for your help!!! </summary>
    <dc:creator>Ramon Garcia</dc:creator>
    <dc:date>2019-10-21T05:29:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117495700" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117495700</id>
    <updated>2019-10-18T19:38:15Z</updated>
    <published>2019-10-18T19:38:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Ramon,&lt;br&gt;I did some investigating and I think this is a regression introduced to Liferay Portal 7.1 and 7.2 by &lt;a href="https://issues.liferay.com/browse/LPS-76771"&gt;LPS-76771&lt;/a&gt; by &lt;a href="https://github.com/liferay/liferay-portal/commit/73b47aeed284005659f2dc7493bf705527322d4b"&gt;this commit&lt;/a&gt;.&lt;br&gt;I was able to workaround the problem in the jsf-ipc-events-customers-portlet by adding the following to src/main/webapp/WEB-INF/liferay-portlet.xml:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;action-url-redirect&amp;gt;true&amp;lt;/action-url-redirect&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Please let me know if that is a viable workaround for you.&lt;br&gt;&lt;br&gt;The only other option I can see is to wait for a fix. For more information you can "watch" the following issue in JIRA: &lt;a href="https://issues.liferay.com/browse/LPS-103415"&gt;LPS-103415&lt;/a&gt;.&lt;br&gt;Kind Regards,&lt;br&gt;Neil&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-10-18T19:38:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117478878" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117478878</id>
    <updated>2019-10-18T02:05:00Z</updated>
    <published>2019-10-18T02:05:00Z</published>
    <summary type="html">Hi Ramon,&lt;br /&gt;I wanted to let you know that I have reproduced the problem locally. I hope to have more time tomorrow to find a workaround or a way to fix it.&lt;br /&gt;Kind Regards,&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-10-18T02:05:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117468198" />
    <author>
      <name>Ramon Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117468198</id>
    <updated>2019-10-16T15:21:05Z</updated>
    <published>2019-10-16T15:21:05Z</published>
    <summary type="html">Hi Neil,Thanks for your fast reply!I&amp;#39;ve tried the 3 solutions for disable SennaJS... and the result is the same... it navigates to the new page but no IPCHandler is called.....Some other idea?Thanks in advance!</summary>
    <dc:creator>Ramon Garcia</dc:creator>
    <dc:date>2019-10-16T15:21:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117466975" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117466975</id>
    <updated>2019-10-16T14:50:04Z</updated>
    <published>2019-10-16T14:50:04Z</published>
    <summary type="html">Hi Ramon,I&amp;#39;m not sure if this is will fix the problem, but I recommend that you &lt;a href="https://stackoverflow.com/questions/41288039/how-can-i-disable-sennajs-spa-in-liferay-7"&gt;try disabling SennaJS&lt;/a&gt; and see if it starts working.Kind Regards,Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-10-16T14:50:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117468142" />
    <author>
      <name>Ramon Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117468142</id>
    <updated>2019-10-16T14:47:11Z</updated>
    <published>2019-10-16T14:47:11Z</published>
    <summary type="html">Hi Neil,I have all these settings in my portal-ext.properties....  also I have:portlet.public.render.parameter.distribution=layout-set&lt;br /&gt;Some suggestion about the redirection URL creation or similar?? I have not idea about where are my mistake..Thanks in advance for this help!</summary>
    <dc:creator>Ramon Garcia</dc:creator>
    <dc:date>2019-10-16T14:47:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117466945" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117466945</id>
    <updated>2019-10-16T14:35:09Z</updated>
    <published>2019-10-16T14:35:09Z</published>
    <summary type="html">Hi Ramon,Please see &lt;a href="https://liferay.dev/forums/-/message_boards/view_message/28207972#_com_liferay_message_boards_web_portlet_MBPortlet_message_28207972"&gt;Vernon Singleton&amp;#39;s reply to a similar thread&lt;/a&gt;. Is it possible that you forgot to put the settings in portal-ext.properties?Kind Regards,Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-10-16T14:35:09Z</dc:date>
  </entry>
  <entry>
    <title>IPC Events with Redirect on Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117461516" />
    <author>
      <name>Ramon Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117461516</id>
    <updated>2019-10-16T05:35:53Z</updated>
    <published>2019-10-16T05:35:53Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;span style="font-size: 16px;"&gt;I want to use IPC events between two portlets in different pages.... &lt;/span&gt;&lt;br&gt;I try it with the&amp;nbsp;&lt;strong&gt;com.liferay.faces.demo.jsf.ipc.events.bookings.portlet&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;com.liferay.faces.demo.jsf.ipc.events.customers.portlet&lt;/strong&gt;&lt;span style="font-size: 16px;"&gt;...&lt;/span&gt;&lt;br&gt;I deploy:&lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;&amp;nbsp;&lt;strong&gt;CUSTOMERS&lt;/strong&gt;&amp;nbsp;on page&amp;nbsp;&amp;nbsp;/&lt;strong&gt;page1&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;BOOKINGS&lt;/strong&gt; on page &lt;strong&gt;/page2&amp;nbsp;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;I try to change&amp;nbsp;&lt;strong&gt;selectionListener&lt;/strong&gt;&amp;nbsp; method on&amp;nbsp;&lt;strong&gt;CustomersBackingBean&lt;/strong&gt;&amp;nbsp;like:&lt;pre&gt;&lt;code&gt;[code]    public void selectionListener(ActionEvent actionEvent) {

      UICommand uiCommand = (UICommand) actionEvent.getComponent();
      Customer customer = (Customer) uiCommand.getValue();
      QName qName = new QName("http://liferay.com/events", "ipc.customerSelected");
      ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
      ActionResponse actionResponse = (ActionResponse) externalContext.getResponse();

      Serializable eventPayload = customer;
      actionResponse.setEvent(qName, eventPayload);

      try {
         externalContext.redirect("http://localhost:8080/web/guest/page2");
      } catch (IOException e) {
         e.printStackTrace();
      }
                                         
   }&lt;/code&gt;&lt;/pre&gt;In this test... I create the URL manually..... but the&amp;nbsp;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;CustomerSelectedEventHandler&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;is not called...&lt;br&gt;On Liferay 6.2 I do a similar solution and it works...&lt;br&gt;How can do it on Liferay 7??&lt;br&gt;Thanks in advance for help....&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ramon Garcia</dc:creator>
    <dc:date>2019-10-16T05:35:53Z</dc:date>
  </entry>
</feed>
