Legacy Knowledge Base
公開されました Jul. 2, 2025

Nested Applications PortletでRenderURLが動作しない。

Written By

Joel Jeong

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • JSPに <liferay-portlet:renderURL > タグを持つ「ネストされたアプリケーション」ポートレット内にポートレットを配置した場合、レンダリングされるurlはポートレットによって「認識」されず、リダイレクトは発生しません。

    例えば、パラメータを受け取り、 forwardTo パラメータに基づいてユーザーをシステム上の特定のページにリダイレクトするポートレットがある場合、そのポートレットは、以下のようになります:

    <liferay-portlet:renderURL var="forwardToTEURL">
    <portlet:param name="forwardTo" value="TE" />
    </liferay-portlet:renderURL>

    ネストされたアプリケーション」ポートレット内に配置された場合、ポートレットは意図したとおりに動作せず、リダイレクトが発生しません。

Environment

  • Liferay DXP 7.2

解決策

  • renderURL の代わりに actionURL を使用して、リダイレクトを送信する必要があります。

Did this article resolve your issue ?

Legacy Knowledge Base