階層メニューを手動で作成するには、階層内のノードごとにJSFページを作成します。次に、各メニュー・コンポーネントをPanelPage
ファセット内に配置し、適切なコンポーネントを"selected"としてマークします。この方法は時間がかかり、エラーが発生しやすいことに注意してください。このため、ツリーが大きい場合は、メニュー・モデルへのコンポーネントのバインド、またはメニュー・モデルへのページ・コンポーネントのバインドを検討してください。
PanelPage
とメニュー・コンポーネントを使用してメニュー階層を作成する手順は、次のとおりです。
<navigation-rule>
...
<navigation-case>
<from-outcome>go.insurance</from-outcome>
<to-view-id>pages/insurance.jsp</to-view-id>
</navigation-case>
...
</navigation-rule>
<af:panelPage title="Insurance">
<f:facet name="menu1">
<af:menuTabs>
<af:commandMenuItem text="Benefits" selected="true"
action="go.benefits"/>
<af:commandMenuItem text="Employee Data" action="go.emps"/>
</af:menuTabs>
</f:facet>
<f:facet name="menu2">
<af:menuBar>
<af:commandMenuItem text="Insurance" selected="true"
action="go.insurance"/>
<af:commandMenuItem text="Paid Time Off" selected="false"
action="go.pto"/>
</af:menuBar>
</f:facet>
<f:facet name="menu3">
<af:menuList>
<af:commandMenuItem text="Health" action="go.health"/>
<af:commandMenuItem text="Dental" action="go.dental"/>
</af:menuList>
</f:facet>
<f:facet name="menuGlobal">
<af:menuButtons>
<af:commandMenuItem icon="images/help.gif" text="Help"/>
</af:menuButtons>
</f:facet>
<f:facet name="menuSwitch">
<af:menuChoice>
<af:commandMenuItem text="Financials"/>
</af:menuChoice>
</f:facet>
<f:facet name="location">
<af:menuPath>
<af:commandMenuItem text="Benefits" action="go.benefits"/>
<af:commandMenuItem text="Insurance"/>
</af:menuPath>
</f:facet>
<af:outputText value="All full-time employees are entitled to enroll in insurance plans offered by our company."/>
</af:panelPage>
メニュー階層について
ADF Facesメニューのファセットおよびコンポーネントについて
ADF Facesコンポーネントの使用
Copyright © 1997, 2006, Oracle. All rights reserved.