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!

Context menu disappears

user8850362Jul 13 2015 — edited Jul 17 2015

Hello community,

we have an adf application with a table with lots of data. To enhance the function of the table we implemented a context menu. If i right click on a row of the table the context menu appears and i can select a menu entry.

But...

There is another scenario:

I right click to get the context menu. Then i see: oops, thats the wrong row and right click again on another row. The context menu disappears (which is good) but doesnt come back again on any other right click. Only after reloading the page i can call the context menu again.

This seems to be a bug for me but maybe there is something else wrong with my implementation?

JDEV Studio Edition Version 11.1.2.4.0

Browser: Firefox 31.8, IE 9.0.8112

Can anyone give an advice ?

Here is my code. I removed the property listeners. It's not important in this case and makes the code less readable:

<af:popup childCreation="deferred" autoCancel="disabled" id="p1"

                                                      contentDelivery="lazyUncached">

                                                \<af:menu text="menu 1" id="m2" contentDelivery="lazy">

                                                    \<af:commandMenuItem text="Nachricht öffnen" id="cmi3"

                                                                        action="#{monitorClickBean.callMessage}">

                                                    \</af:commandMenuItem>

                                                    \<af:group id="g2">

                                                        \<af:commandMenuItem text="Nachricht herunterladen"

                                                                            id="cmi2">

                                                        \</af:commandMenuItem>

                                                        \<af:commandMenuItem text="Suche passenden Eintrag" id="cmi1"

                                                                            action="#{monitorClickBean.MarkSameMessageFromMETA}"

                                                                            disabled="#{pageFlowScope.MetaFilterValueChangedBean.someFiltersSet}"

                                                            \<af:setPropertyListener from="#{row2.SidIe}"

                                                                                    to="#{pageFlowScope.paramSID\_IE}"

                                                                                    type="action"/>

                                                        \</af:commandMenuItem>

                                                    \</af:group>

                                                    \<af:group id="g4">

                                                        \<af:commandMenuItem text="Fehlermeldung anzeigen" id="cmi7"

                                                                            action="Show\_Error" useWindow="true"

                                                                            windowHeight="340" windowWidth="500"

                                                                            windowEmbedStyle="inlineDocument"

                                                                            disabled='#{bindings.Status.inputValue ne "ERROR"}'>

                                                        \</af:commandMenuItem>

                                                    \</af:group>

                                                \</af:menu>

                                            \</af:popup>

I simply included the context menu inside the contextmenu facet of the table. here is the structure:

popup.PNG

Nachricht geändert durch user8850362

Regards,

André

This post has been answered by Timo Hahn on Jul 17 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2015
Added on Jul 13 2015
6 comments
1,056 views