gpt4 book ai didi

java - 无法包含带有 jsp 的 ContextMenu :include in ADF

转载 作者:行者123 更新时间:2023-12-02 07:56:16 25 4
gpt4 key购买 nike

我尝试通过 JSP include 包含 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”的 session 范围值来显示上下文菜单的各个部分:

<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>

有人可以帮忙吗?

最佳答案

您应该创建一个声明性组件才能执行此操作...

看看这个 https://blogs.oracle.com/adffun/entry/fun_with_declarative_components

关于java - 无法包含带有 jsp 的 ContextMenu :include in ADF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9592239/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com