アプリを jsf2 と richfaces 4.3.1 に移行していますが、コンポーネントの rich:contextMenu に問題があります。
コンテキスト メニューには、いくつかの最終項目 (スニペットの「すべて」の項目など) と、「bean」で定義された List 属性から取得されたその他の項目が必要です。
jsf1.2 と richfaces 3.3.x では "c:forEach" 要素は正常に機能しましたが、新しい構成では機能しません。何か案は?
コード スニペットは次のようになります。
<rich:contextMenu id="menu" showEvent="click" target="panel" mode="ajax" >
<rich:menuItem label="All" action="#{bean.search}" render="list">
<a4j:param assignTo="#{bean.currentLabelId}" value="0" />
</rich:menuItem>
<c:forEach var="item" value="#{bean.labelSelectItemList}">
<rich:menuItem label="#{item.label}" action="#{bean.search}" render="list">
<a4j:param name="param1" assignTo="#{bean.currentLabelId}" value="#{item.value}" />
</rich:menuItem>
</c:forEach>
</rich:contextMenu>