Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Can';t在ADF中使用jsp:Include包含上下文菜单_Java_Jsp_Oracle Adf - Fatal编程技术网

Java Can';t在ADF中使用jsp:Include包含上下文菜单

Java Can';t在ADF中使用jsp:Include包含上下文菜单,java,jsp,oracle-adf,Java,Jsp,Oracle Adf,我试图通过JSP include包含ADF上下文菜单,但该菜单拒绝显示。以下是尝试包含菜单的代码片段: <af:table value="#{mockupPersonController.people}" var="person" id="personDataTable" rowSelection="single" inlineStyle="width: 100%; height: 95%"> <f:facet name="contextMenu">

我试图通过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的一部分。其思想是基于会话范围的值“wheremi”来显示上下文菜单的各个部分:



有人能帮忙吗?

您应该创建一个声明性组件来完成此任务


检查这一点

声明性菜单是一种方法,另一种方法是使用页面片段并将其包含在任务流中,然后将其作为区域带入页面

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