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

learn-legacy-article-disclaimer-text

問題

  • 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