Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[SOLVED] Show/hide options in af:navigationPane

user8959800Apr 2 2014 — edited Apr 8 2014

Hi.

I'm using JDeveloper 11.1.1.7.0

I have followed this tutorial http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_43/jdtut_11r2_43.html to create a basic and plain left-side menu in my application.

This tutorial shows more advance topics, but I have created a simple left-side menu, with a list.

I haved created an unbounded task flow, drag/drop a wildcard, then the views, then the control flows, ... It works perfect

In the JSF template, in the left-side, I have this code:

<af:navigationPane id="pt_np1" hint="list" value="#{supervision_menu}" var="supervisionInfo">

                    <f:facet name="nodeStamp">

                      <af:commandNavigationItem text="#{supervisionInfo.label}" id="pt_cni1"

                                                destination="#{supervisionInfo.destination}"

                                                action="#{supervisionInfo.doAction}"/>

                    </f:facet>

                  </af:navigationPane>

I need an advanced feature, and I want to show/hide some options, based on a parameter.

I need to execute a view object with this parameter, process the results, so I get the information to know which options could be shown or hidden.

So, my questions are:

  • How could I force to execute this check as the first step of this flow?
  • In generated menu.xml and in af:commandNavigationItem, there are visible  attribute. Where should I place the condition?

Any help would be very appreciated. Thanks





This post has been answered by Alejandro Tovar Lanz on Apr 3 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2014
Added on Apr 2 2014
10 comments
3,715 views