legacy-knowledge-base
公開されました Jul. 2, 2025

内の PrimeFaces 非標準プロトコルは、DOM 内で _jsfBridgeRedirect=true となる。

written-by

Alfonso Crisci

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

問題

  • Liferay Faces(PrimeFaces)ポートレットで、以下のようなマークアップを使用した場合:
     <p:link
    href="d3://searchdefault&amp;test_1=dummy=="
    value="Hover the mouse or inspect here to see the resulting hyperlink"
    />
    DOM上で不正なリンクに変換されます:
    <a href="d3:?_jsfBridgeRedirect=true" class="ui-link ui-widget"></a>

環境

  • ポータル6.2
  • Liferay DXP 7.0+

解決策

  • PrimeFaces <p:link /> コンポーネントのレンダラーは、 href 属性の値を「リダイレクト」タイプのURLとみなしています。 詳しくは、 OutcomeTargetRenderer.java#L172をご覧ください。

    ポートレット環境では、 _jsfBridgeRedirect=true パラメータが自動的に付加されます。

    開発者は、代わりに以下を使用することが推奨されます:
     <h:outputLink value="d3://searchdefault&amp;test_1=dummy==">
    <h:outputText value="Click Me" />
    </h:outputLink>
did-this-article-resolve-your-issue

legacy-knowledge-base