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

ページフラグメントのループ内で編集可能フィールドが機能しない

written-by

Ankit Gupta

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

問題

  • 再現する手順:

    1. Site Builder > Page Fragments の下で、フラグメント エントリをインポートします。zip(添付)
    2. フラグメントをコンテンツ ページにドラッグします。構成では、反復の defaultValue は 3 です。 正常に動作し、フィールドはデフォルト値 3 で編集可能です。
    3. フラグメント構成アイコンをクリックし、「Number for Loop Variable」フィールドの値を 15 に変更します。
    4. 編集できないフィールドをランダムに編集しようとすると、編集されるフィールドと編集されないフィールドがあります。
    5. ブラウザのコンソールを確認すると、以下の JS エラーが見つかります。
Uncaught goog.asserts.AssertionError {
message: "Failure: expected param content of type function(), but got undefined.",
reportErrorToServer: true,
messagePattern: "Failure: expected param content of type function(), but got undefined.",
stack: "AssertionError: Failure: expected param content of...-dom@2.16.8/lib/IncrementalDomRenderer.js:4931:5)"
}

Environment

  • Liferay DXP 7.2

解決策

did-this-article-resolve-your-issue

legacy-knowledge-base