Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

[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
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,239 views