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!

[ADF] How to access node attributes from contextual menu?

2840355Sep 17 2015 — edited Sep 21 2015

Hi,

I work with ADF Tree component:

<af:tree value="#{bindings.TreeVO.treeModel}" var="node">

                                                    <f:facet name="nodeStamp">

                                                        <af:outputText value="#{node.Label}"

                                                                       id="nodeLabel"/>

                                                    </f:facet>

                                                    <f:facet name="contextMenu">

                                                        <af:popup id="RemoteTreePopup" childCreation="deferred"

                                                                  autoCancel="disabled">

                                                            <af:menu text="menu 1" id="m1">

                                                                <af:iterator id="i2"

                                                                             value="#{bindings.CtxMenVO.collectionModel}"

                                                                             var="element">

                                                                    <af:commandMenuItem text="#{element.Label}/#{node.Label}" ...

What I expect: when I right-click on a node (represented by the output text "node-label", a contextual menu appears with "element-label/clicked-node-label"

What I see: the output text of the node is ok, but #{node.Label} has no value in <af:commandMenuItem

How can I retrieve node.label from commandMenuItem?

This post has been answered by Ruben Rodriguez on Sep 18 2015
Jump to Answer

Comments

vladodias

Hi mate,

I'm not aware of any property that will look for wildcard patterns... A possible solution to achieve your requirement is to use a "list" operation and then iterate to delete the files one by one...

Cheers,

Vlad

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 19 2015
Added on Sep 17 2015
10 comments
3,465 views