不能包含与jsp中的ContextMenu:包含在ADF中
问题描述:
我试图通过JSP include包含ADF上下文菜单,但菜单拒绝显示。下面是试图包含菜单的片段:不能包含与jsp中的ContextMenu:包含在ADF中
<af:table value="#{mockupPersonController.people}"
var="person" id="personDataTable"
rowSelection="single" inlineStyle="width: 100%; height: 95%">
<f:facet name="contextMenu">
<af:popup id="tableContextMenu">
<af:menu>
<jsp:include page="/contextMenu.jsp" flush="true"/>
</af:menu>
</af:popup>
</f:facet>
....
这里是contextMenu.jsp的一部分。我们的想法是用来显示基于会话的上下文菜单的各个部分作用域“WHEREAMI”的价值:
<af:commandMenuItem text="Review Person"
actionListener="#{personStatusBean.launchPopup}" />
<af:separator />
<af:switcher facetName="#{sessionScope.whereami}"
defaultFacet="default">
<f:facet name="default">
<af:commandMenuItem text="Main Menu" />
</f:facet>
<f:facet name="location1">
<af:commandMenuItem text="Do Something" />
<af:commandMenuItem text="Do Something Else" />
</f:facet>
谁能帮助?
答
声明菜单是这样的一种方式,另一种方式是使用pagefragment,包括它在一个任务流中,然后你作为一个区域进入页面。