<?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>sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120622314" />
  <subtitle>sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120622314</id>
  <updated>2026-04-05T10:54:20Z</updated>
  <dc:date>2026-04-05T10:54:20Z</dc:date>
  <entry>
    <title>RE: RE: sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120685214" />
    <author>
      <name>Nimmy Gopinath</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120685214</id>
    <updated>2021-03-17T10:39:34Z</updated>
    <published>2021-03-16T20:15:37Z</published>
    <summary type="html">&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;While preparing the SCCE we narrowed down the cause to remoteCommand
  and that if it's removed everything is fine. Below given is the
  remoteCommand line that we used in our xhtml code.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;p:remoteCommand action=&amp;quot;${abcBackingBean.initBeans}&amp;quot; autoRun=&amp;quot;true&amp;quot; update=&amp;quot;:f1 :scriptForm&amp;quot; onstart=&amp;quot;spinnerOn('Building Application Menu', 'f1');&amp;quot;&amp;gt;&amp;lt;/p:remoteCommand&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you please help us to find the exact rootcause?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nimmy&lt;/p&gt;</summary>
    <dc:creator>Nimmy Gopinath</dc:creator>
    <dc:date>2021-03-16T20:15:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120648440" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120648440</id>
    <updated>2021-02-25T20:06:55Z</updated>
    <published>2021-02-25T20:06:55Z</published>
    <summary type="html">&lt;p&gt;Hi Nimmy,&lt;/p&gt;
&lt;p&gt;Please provide an &lt;a href="http://sscce.org"&gt;SSCCE&lt;/a&gt; that
  reproduces the problem. Preferrably a Maven based project that I can
  build with &amp;quot;mvn clean package&amp;quot;&lt;/p&gt;
&lt;p&gt;My main concern is the versions of Liferay Faces Dependencies that
  you are using. But I will be able to determine that from your SSCCE
  pom.xml descriptor.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2021-02-25T20:06:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120632849" />
    <author>
      <name>Nimmy Gopinath</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120632849</id>
    <updated>2021-02-22T17:41:03Z</updated>
    <published>2021-02-22T17:20:46Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could someone please help as this issue is really &lt;strong&gt;blocking
  &lt;/strong&gt;further development activities.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Nimmy&lt;/p&gt;</summary>
    <dc:creator>Nimmy Gopinath</dc:creator>
    <dc:date>2021-02-22T17:20:46Z</dc:date>
  </entry>
  <entry>
    <title>sendRedirect not working (JSF-2.2, Liferay7.2, primefaces-7.0)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120622313" />
    <author>
      <name>Nimmy Gopinath</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120622313</id>
    <updated>2021-03-29T17:54:22Z</updated>
    <published>2021-02-18T23:18:07Z</published>
    <summary type="html">&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We upgraded liferay from 6.2 to 7.2, JSF from 2.1 to 2.2 and
  primefaces from 5.1 to 7.0. When trying to redirect to a URL, getting
  below error&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;java.lang.IllegalStateException: Set render parameter has already been called
        at com.liferay.portlet.internal.ActionResponseImpl.sendRedirect(ActionResponseImpl.java:52)
        at javax.portlet.filter.ActionResponseWrapper.sendRedirect(ActionResponseWrapper.java:81)
        at com.liferay.faces.bridge.filter.internal.ActionResponseBridgeImpl.sendRedirect(ActionResponseBridgeImpl.java:54)
        at com.liferay.faces.bridge.context.internal.ExternalContextImpl.redirect(ExternalContextImpl.java:759)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Below given is the existing code snippet&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
externalContext.redirect(url);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We have already tried the solution (Add the Bridge.DIRECT_LINK
  parameter to the URL with a value of &amp;quot;true&amp;quot;:) mentioned in
  the below path but didn't work in our case.&lt;/p&gt;
&lt;p&gt;https://issues.liferay.com/browse/FACES-1315?focusedCommentId=202366&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel &lt;/p&gt;
&lt;p&gt;Is there any fix or solution for this?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Nimmy&lt;/p&gt;</summary>
    <dc:creator>Nimmy Gopinath</dc:creator>
    <dc:date>2021-02-18T23:18:07Z</dc:date>
  </entry>
</feed>
