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!

Preventing Double Click on Command Link in Oracle ADF

MagwaaMar 7 2016 — edited Mar 10 2016

Hi there,

I am using Jdeveloper 11.1.2.3. I am facing a problem while attempting to prevent double click on commandLink. I have tried using javascript function using client listener, double click gets blocked but the problem is that command link has an action and action listener to perform.The action leads to a task flow call which loads a dialog and the canvas is loaded. When user double clicks the link the dialog doesn't render and the console of Jdeveloper says "overwriting preexisting parameters". Is there a way to disable the command link on double click.?

Following is the code snippet:

<af:commandLink id="cl1" action="gotoEditor" useWindow="true"

                                                            windowHeight="590" windowWidth="510"

                                                            actionListener="#{LoadImageCnavasHandler.doServerCall}">

                                                <af:image source="/image?encounterId=#{item.EncounterId}&amp;serialNo=#{item.SrNo}&amp;method=getImageByID"

                                                          id="i1"

                                                          inlineStyle="border-color:Black; border-style:solid; border-width:medium; outline-color:inherit;"/>

                                                <af:clientAttribute name="encId" value="#{item.EncounterId}"/>

                                                <af:clientAttribute name="srNo" value="#{item.SrNo}"/>

                                                <af:clientAttribute name="Method" value="getImageByID"/>

                                                <af:clientListener type="dblClick" method="clickStopper"/>

                                            </af:commandLink>

This post has been answered by Timo Hahn on Mar 7 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2016
Added on Mar 7 2016
2 comments
473 views