Disable the button but showpopupbehavior works (Jdev 11.1.1.3)

Hi all.

I put a toolbarbutton and I put attribute: disabled = true

I associate a popup by a popupshowbehaviour the button

Start the application: the button is see turn it off (gray), but if I click on the popup appears. Bug?

Cristian

Hello

This is not a bug but works as expected. In fact, to tell you the component listening for a click of the mouse, it does. To remove the popup to show base on your use case, you don't want to hear the click but the action event.


align = "afterEnd" / >

The components that are disabled are clickable, as may be re-branded to inactive components DOM event listeners. If you use 'click' in your application to call customer behaviors, so you want to consider replacing all occurrences to use 'action' instead. A side effect of the use of 'click' is also your command button does not launch the popup if you browse toolbar button and press ENTER.

Frank

PS. : looks interesting - control button ignores the click if they are disabled

Published by: Frank Nimphius, July 14, 2011 15:31

Tags: Java

Similar Questions

  • At the opening of some Web pages I get a msg 'unable to connect to the server', but it works very well in startup

    The last few days during the use of the internet, some Web pages will not be not open. I get a msg of error saying 'unable to connect to the server', but it works very well with other sites such as Facebook and YouTube.  This happens when I use Safari, Firefox and Chrome.  Yet if I'm in Safe Boot mode it works fine.  I exaggerate the App installed VPN and when I am in normal mode and connect to the VPN exaggeration, all Web pages work correctly. I searched the net for days trying to find a solution but nothing I tried worked.  I'm not very computer savvy either so don't know much of what I do with this technical stuff.  I emptied the caches, but that did not work.  Following the advice of an answer to another question on this forum that was similar to mine, I went into the Terminal and performed a diagnostic test.  I don't understand all the information in this essay so hope someone here can decipher. The report is quite long, but this is the beginning of the pasted below.  Help, please!

    The system version: OS X 10.11.1 (B 15, 42)

    Kernel version: Darwin 15.0.0

    Boot Mode: Normal

    Model: MacBookPro11, 1

    FileVault: on

    The System Diagnostics

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    2016-04-13 desmoides crash

    Diagnosis of the user

    2016-04-12 AssetCacheLocatorService crash

    Accident of GarageBand 2016-04-12

    Kernel messages

    Apr 12 15:34:15 AssertMacros: tmpData (value: 0x0), leader: /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleCredentialManager/AppleCre dentialManager-82.10.1/AppleCredentialManager/AppleCredentialManager.cpp, line: 765

    Apr 12 15:34:15 init: error getting of PHY_MODE; using MODE_UNKNOWN

    Apr 12 15:34:18 NTFS-fs warning (device/dev/disk0s4, pid 165): ntfs_system_inodes_get(): Windows is put into hibernation. Will not be able to get back on read-write. Run the chkdsk command.

    Apr 12 15:35:41 deal with iCoreService [94] taken causing excessive Awakenings. Awakenings (per second) rate: 520; Maximum rate (per second) Awakenings: 150; Observation period: 300 seconds; Life of the Awakenings of task number: 45019

    Apr 12 16:45:59, launchd process [1]-l' system of limitation of disabling i/o level

    Apr 12 16:45:59, launchd process [1] disable the CPU - the system-wide limit

    Apr 12 16:46:31 AssertMacros: tmpData (value: 0x0), leader: /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleCredentialManager/AppleCre dentialManager-82.10.1/AppleCredentialManager/AppleCredentialManager.cpp, line: 765

    Apr 12 16:46:31 init: error getting of PHY_MODE; using MODE_UNKNOWN

    Apr 12 16:46:33 NTFS-fs warning (device/dev/disk0s4, pid 155): ntfs_system_inodes_get(): Windows is put into hibernation. Will not be able to get back on read-write. Run the chkdsk command.

    Apr 12 16:47:52 iCoreService process [94] taken causing excessive Awakenings. Awakenings (per second) rate: 557; Maximum rate (per second) Awakenings: 150; Observation period: 300 seconds; Life of the Awakenings of task number: 45052

    12 apr 17:20:51 0xe00002db questioned the file opening error

    -the last message repeated 1 time.

    Apr 12 19:39:26 AssertMacros: tmpData (value: 0x0), leader: /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleCredentialManager/AppleCre dentialManager-82.10.1/AppleCredentialManager/AppleCredentialManager.cpp, line: 765

    Apr 12 19:39:26 init: error getting of PHY_MODE; using MODE_UNKNOWN

    Apr 12 19:39:28 NTFS-fs warning (device/dev/disk0s4, pid 158): ntfs_system_inodes_get(): Windows is put into hibernation. Will not be able to get back on read-write. Run the chkdsk command.

    Apr 12 19:40:49 deal with iCoreService [94] taken causing excessive Awakenings. Awakenings (per second) rate: 545; Maximum rate (per second) Awakenings: 150; Observation period: 300 seconds; Life of the Awakenings of task number: 45066

    Apr 12 20:46:58 launchd process [1]-l' system of limitation of disabling i/o level

    Apr 12 20:46:58 launchd process [1] disable the CPU - the system-wide limit

    Apr 12 20:47:21 AssertMacros: tmpData (value: 0x0), leader: /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleCredentialManager/AppleCre dentialManager-82.10.1/AppleCredentialManager/AppleCredentialManager.cpp, line: 765

    Apr 12 20:47:21 init: error getting of PHY_MODE; using MODE_UNKNOWN

    Apr 12 20:47:23 NTFS-fs warning (device/dev/disk0s4, pid 157): ntfs_system_inodes_get(): Windows is put into hibernation. Will not be able to get back on read-write. Run the chkdsk command.

    Apr 12 20:48:44 deal with iCoreService [94] taken causing excessive Awakenings. Awakenings (per second) rate: 545; Maximum rate (per second) Awakenings: 150; Observation period: 300 seconds; Life of the Awakenings of task number: 45476

    Apr 12 21:54:58 opening error 0xe00002db questioned the file

    -the last message repeated 3 times.

    Apr 13 01:42:49 deal with com.apple.WebKit [12265] wire 546051 caught fire CPU! He used more than 50% of the CPU (actual recent use: 93%) more than 180 seconds. Screw using the processor to life 90,030145 seconds, (89.468979, System 0.561166 user) information book: balance: 90000757669 credit: debit 90000757669: limit 0: 90000000000 period (50%): 180000000000 time since last filling (ns): 96164617988

    Hi AussieEgypt,

    Thank you for using communities Support from Apple.

    If a problem does not occur when it is started in safe mode, then you have already determined that the problem was isolated to a few 3rd party software running on your Mac.  Take a look at the information below to start with the removal of some elements of start-up and connection and see if the problem persists:

    Test your login items

    1. Choose the Apple menu > System Preferences, and then click users and groups.

    2. Click on your account under the current user name, and then click connection points.

      Make a list of the login items, you will need to remember later.

    3. Select all the elements of connection, and then click the button Delete .

    4. Choose the Apple menu > restart.

    5. If this solves the problem, reopen the preferences users and groups, add the elements of connection one at a time and restart your Mac after the addition of each of them.

      If the problem persists, follow the steps above to remove only the last element of connection that you added.

    OS X El Capitan: If you think you have incompatible connection points

    See you soon.

  • Left mouse click selects the button but does not execute the action of the button (for example close)

    HI - this seems to be a problem with Windows rather than the mouse, so any help would be greatly appreciated!

    First of all - I have a trackball M570. Works fine connected to another Windows 7 machine.

    But on a single machine including windows 7... I can use the left click for most, but in some applications, when I click a button it not actually click the button. Yes, he selects the button but it does not perform the button action. I also see the issue in the boxes, I can't put a tick in the boxes. Or at least I just figured someway by combining fast random space bar presses and presses mouse, but it is obviously not right. Couldn't find anything useful in google, so I thought I would try here in hope!

    Thank you for the pointers !

    Cheers, Jim.

    HI - Finally - I found a solution.

    First of all - the following solution worked for me, but there are possible solutions mentioned on the thread I linked in my previous email.

    The mouse is a Logitech wireless, with the SetPoint software installed. I also had a Microsoft wired keyboard and just in case that was the problem, I replaced it and - YES! All good new - in fact explains some other issues, I was less concerned. The problem with the keyboard was somehow screwing of the mouse.

    Since then I have been reduced to a media volume on the keyboard button, no idea how to solve this problem, and the replacement keyboard was free, so just get rid of the old. Note: I could use the old keyboard when I downloaded the Microsoft Mouse and keyboard Center, installed and disabled the offending button.

    Thank you, maybe my solution might help some people out there.

    Jim.

  • How to disable the button submit when running

    Hello

    I create a page with buttons createEmployee, deleteEmployee and updateEmployee employee management.

    I want to disable the buttons send above if the user is "OPERATIONS".

    My code as follows:

    String userName = pageContext.getUserName ();

    {if ('Operations'. Equals (username))}
    OAPageLayoutBean page = pageContext.getPageLayoutBean ();
    page.prepareForRendering (pageContext);
    OAGlobalButtonBarBean buttons = (OAGlobalButtonBarBean) page.getGlobalButtons ();
    OAGlobalButtonBean button = (OAGlobalButtonBean) buttons.findIndexedChildRecursive ("CreateEmployeeButton");
    button.setDisabled (true);
    }

    but he throws NullPointerException.

    For this code, I guide the OAF Dev R12.

    can you explain what is function_name in the next line

    Button OAGlobalButtonBean = (OAGlobalButtonBean) buttons.findIndexedChildRecursive ("< function_name >");

    I tried with the id of the button, but I didn't work.

    Can you explain about this clearly.

    Thanks in advance,
    SAN

    Hello

    I think that your button on the page is in the region of pageButtonBar.

    Use code below.

    String userName =pageContext.getUserName();
    
    if("OPERATIONS".equals(userName)){
    OASubmitButtonBean button = (OASubmitButtonBean) webBean.findChildRecursive("CreateEmployeeButton");
    if(button!=null)
    {
        button.setDisabled(true);
    }
    } 
    

    Kind regards
    GYAN

  • disable the button in the current state

    Hello world

    I am new to catalyst, so my question may seem stupid probably ;-)

    I build a small site in PS CS4 one try to bring it to live in the catalyst. My problem is the folloing:

    How can I disable a button in the selected state?

    I can configure the appearance when it is disabled, but cannot find an option to disable the button.

    «for example, when I clicked 'links' - button, it must be disabled (and watch in a special way) until I choose another State and leave the links ' States '.»

    Thank you

    Hey dm.

    Without seeing the layout of the fxp/how the custom button is configured, it is sometimes difficult to provide the right steps!

    Hopefull this post will clarify a bit my last.

    Regarding the change of the State of the button when you go to the States, it is indeed easier by checking a box in the properties panel.

    (1) navigate to the State in which you would like the button disabled (or enabled).

    (2) in the properties panel, in the common section, see the box "enabled."

    (3) check it so that a button is enabled (in the normal state) in that State. Clear the checkbox to make this option disabled in this State.

    To make sure you have the right look, double click on the button.  You should now see four different States, which is a disabled"" State.

    Check to make sure that the button looks like as you wish in the disabled state.

    Using this strategy, navigate to a State and by setting the property enabled in the properties panel, you reach the look you're looking for?

    I'm always kind of unclear on the button click/No seeing the disabled look?

    Perhaps what you are looking for, is to add an interaction to the button, such as "click", in order to move from one State in particular, to another second particular State?  In which case, in the second State the button is disabled?

    If you could clarify that would be awesome?

    Or, if you feel you could post/send me your fxp so I can measure the best approach.

    Let me know how it works for you, and if the enabled checkbox is indeed what you are looking for.

    Tara

  • Disable the buttons

    I have a page that I have 6 video clips that are treated as buttons. I have another page behind this page with an alpha of 0. One of the buttons on the home page brings the alpha of the last page 1 and greater than 0 page. My problem is that I turn off the hand cursor when the last page is at the front, but if I click where a button was it will execute the functions of the button. How can I disable the button functions when the page with all the buttons in the back? The other issue I have is as soon as I disable the hand cursor that he won't return. I try to turn the buttonMode back to true, but it doesn't seem to work. Hope that makes sense, and someone can help you. Thank you

    Thanks, that worked great!

  • Disable the button Delete in the toolbar on EBS (Apps) Oracle using Custom pll.

    Hello

    I am trying to disable the button remove on Oracle Apps, I tried the following code, but it does not work. If the a person who has been able to do it please share.

    I tried this.
    begin
           
            if (event_name = 'WHEN-NEW-FORM-INSTANCE') then
                      app_special.enable('EDIT.DELETE', PROPERTY_OFF);
                       fnd_message.set_string('After APP_SPECIAL.ENABLE');
              
            end if;
      end;
    Thank you

    Hello

    Take a look at the following links.

    Custom.PLL
    Custom.PLL

    How can note: 561676.1 - I use SQL to disable a menu item?
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=561676.1

    Kind regards
    Hussein

  • Disable the button Wireless Laser Mouse PA3706E Alt + Tab?

    I have what I think, it's a mouse Toshiba PA3706E (it's the one in the picture below)

    It has a small button of Alt + Tab at the worst place in the fact that it could be, and I was wondering if anyone knows a way to disable? I installed the thing that comes with it to change the functions of the buttons, but for some reason, it is the only button you cannot not change or not. The only option for the Application Switch button is Alt + Tab.

    http://img340.imageshack.us/img340/8080/mousedriver.PNG

    Anyone? It's makes me absolutely crazy and things like TF2 happens to crash when it Alt + tabs; -

    > Is it possible to disable it, as pilot/configure CD software that comes with the mouse wont allow it.
    Well, if the software that came with the mouse, does not support this option, then I put t see any other possibility to disable the button ALT + TAB.

  • Disable the button by using the node property

    I used a button which has the button is pressed again and again, I want this button to get disabled when needed up to 6. I used a business structure that compares the value when it is greater than 6, it gets the true value and the structure of the case must turn off the button, but I run the code the button is already disabled.

    Can someone please guide me where I made mistake.

    Kind regards

    Ather

    In the case of range? and downstairs is the two True in any given iteration of the loop, you will write to the serial port twice with only about one millisecond between the Scriptures. Is that what you want? The remote device can handle two sequential writes?

    The code in the two structures case is identical. It is usually better to make a Subvi of duplicated code. Then if ever it needs to be changed, simply change it one place.  If you use the decimal string number, simply two cases on the internal structure of the case.

    It is not necessary to have two close functions of VISA for the same session. In fact one of them always generates the 1073676418 warning: the specified object reference is not initialized.

    This is a cleaned version a little with most of above changes implemented.

    Lynn

  • I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    If it still shows paper jam and you know that there is no paper, just turn it works, and it should realize that there is no paper.

  • Disable the buttons before webservice response

    Hello

    How to disable the buttons until the webservice response came, but when came the web service respone it will allow all the button

    can you give me any suggestions...

    Thank you

    Learning by doing. I've attached an example that does what you want to do, disable the buttons x, where x in this example is 5 seconds to activate the buttons and where x for you would be availability of webservice response.

    All what you need to do is:

    • Add ID to your buttons (see the example input elements I used)
    • Add the source to remove the attribute "disabled" of these buttons (see the example of function that I have documented)

    She's.

  • FN + F3 disable the Touchpad does not work. Dell XPS L702X

    Hello, I am new to this forum.

    The function FN + F3 that disable the Touchpad does not work, my laptop Dell XPS 17 (L702X)

    I googled my problem and the only thing I found was this: http://en.community.dell.com/support-forums/laptop/f/3518/t/19454265.aspx

    I think that my problems with the touchpad started when I plugged a mouse into the USB port. It didn't work (it worked well before), and in material-sound-mouse control panel, the system asked me to uninstall a driver or other. I do not remember, but later the mouse worked.

    After this weird thing with the mouse, I noticed that the touchpad was malfunctioning. While I write, the cursor moves without touching the touchpad, it is annoying because it makes me write bad because he is moving in the middle of writing, as I write so it's a mess.

    The second oddity, the Fn + F3 does not disable the touchpad, the orange light come on (the led on the top of the touchpad), but the cursor can be moved in any case, with or without a connected mouse.

    I checked for driver updates, perform an audit of the system, checked for viruses, spywares and I don't know what I could do. I don't know if the problem with the mouse had nothing to do with the function Fn + F3 problem.

    I have not formatted or re installed windows 7, never.

    In Device Manager I have this:

    -mouse and other pointing devices:-Compatible PS/2 mouse

    Help, please. Thank you.

    DOH! Problem between Chair and keyboard...

    C:\dell\drivers\R289237

    Run the executable file of Synaptics.

    Download of extracts only the program on your disk. You must manually install the driver for the Synaptics touchpad with its own executable.

    FN + F3 now disables =)

  • How can I disable the buttons next/previous slide show?

    Hi guys!

    I tried to play with a slide show earlier and wanted to change the colour or the next/previous buttons to image placement. But every time that you click on that it passes to the next photo! Is there a way to disable the buttons temporarily? It also appears that the buttons should be the same color for each photo. Am I wrong?

    Thanks in advance!

    Hello

    You cannot disable the buttons next and previous, you can hide them via the options menu flying if you want (select the widget > click the blue circle with the white arrow at the top right of the widget).

    However, even if the next/previous buttons will take you to another image, you can still change them, when they are selected, as the buttons remain same for all slides.

    In addition, the buttons should be the same color for each photo.

    It will be useful,

    Sonam

  • Need to disable the button until all the elements of the array was posted

    Hello

    I get a lot of help from this Forum, thought about getting more out of it. I am very new to AS3 and to do my best to get as much as I can that are still a few problems to come through.

    I am trying to disable the button on a specific image until all the Clips of film in a table are bieng is displayed, otherwise it should show another clip from movie plurarite the message that all video Clips are not displayed.

    Here's the scenario-

    SUMMARY.

    There are three buttons on the stage, the next image button, button to load the 1st Movie Clip (note1), button to load the second film Clip (note2)

    I'm counting the Clips of film with the length of the array (I don't know if I'm doing things), but the idea is that once all the video clips are loaded, next picture button must be activated in the case otherwise he must remain inactive, rather would display another clip of film as notice that all Clips are not loaded)

    Here is my Code.

    import flash.events.MouseEvent;

    btnnxt.mouseEnabled = false;

    var note1:Mc_Notice1 = new Mc_Notice1;

    var note2:Mc_Notice2 = new Mc_Notice2;

    function next(Event:MouseEvent):void

    {

    if(Count.Length == 2)

    {

    btnnxt.mouseEnabled = true;

    nextFrame();

    trace ("mouse is on");

    }

    else {}

    btnnxt.mouseEnabled = false;

    }

    }

    notes of the var: Array = [note1, note 2, note3];

    var numbers: Array = new Array();

    btnnxt.addEventListener (MouseEvent.CLICK, next);

    btnload1.addEventListener (MouseEvent.CLICK, hearings1);

    btnload2.addEventListener (MouseEvent.CLICK, load2);

    function load1(Event:MouseEvent):void

    {

    addChild (notes [0]);

    Notes [0] .x = 100;

    Notes [0] there = 100;

    Count.push (1);

    trace ('Count' + count.length);

    }

    function load2(Event:MouseEvent):void {}

    addChild (notes [1]);

    Notes [0] .x = 100;

    Notes [0] there = 100;

    Count.push (1);

    trace (counting);

    count0 = 1;

    trace (count.length);

    }

    Please help in fixing this error that I do not receive the required results.

    Help, please.

    Best regards

    Part of the problem is that you try to count by clicking a disabled button to activate this button.  As long as the button is disabled you can not use it for himself.  Instead of adding an event listener to btnnxt immediately, just assign it when it is ready to be used.  Whenever you load you need to check the value of the counter and if it is equal to 2, then you can assign the event listener for the btnnxt.

    You do not have a (County) table for that since you're using only its length property... a simple integer value will suffice.

    As I do not see you create a variable named note3, you probably get an error for this.

    In your function load2 you always aim the remark 1 placement where it should be placed.

  • Disable the button Save all the time

    Hello! I want to have a form that is with button "DISABLE" save all the time. When I put this code below into the trigger once - new - form - Instance:
    Set_Menu_Item_Property('Action.Save', ENABLED, PROPERTY_FALSE ) ;  
    first of all, it's disable, but when I click the "RUN" button, the "Save" button is again enable. My question is where I must put the code above to disable the button Save all the time.

    TX in advance.

    indoracle wrote:
    Hello! I want to have a form that is with button "DISABLE" save all the time. When I put this code below into the trigger once - new - form - Instance:

    Set_Menu_Item_Property('Action.Save', ENABLED, PROPERTY_FALSE ) ;  
    

    first of all, it's disable, but when I click the "RUN" button, the "Save" button is again enable. My question is where I must put the code above to disable the button Save all the time.

    TX in advance.

    Hello
    Is there another code in the form to activate this?

    Try the code at the moment-new Record Instance to the block level.

    Hope this helps.

Maybe you are looking for

  • Dell optiplex gx270s missing audio device

    Multimeida Audio Controller has the yellow question mark and no devices under Audio Sound devices.  Please, please help.

  • HP Compaq dc7900 Small Form Factor PC

    My mother PC is Windows 7 Professional 32 bit. This computer yourself running the 64 bit version of windows 7 Professional.

  • Bridge constantly crashing

    Under the bridge El Capitan used to plant with monotony ordinary before10.11.4 (Solution to fix the bridge CC 6.1.1 and 6.2 crashing on Mac OS X El Capitan )... It is back, since I upgraded to 10.11.6. any ideas to solve other than the workaround sol

  • HELP... can't save the file!

    Here's the situation: I have a GB 13.1. PSB I can't register because I don't have enough space to work. I had about 100 GB available initially but now have about 5 GB of available because I have a temp 67 GB and a 28 GB temp file just hanging out. I

  • the light in cinema 4 D Lite

    I created a source of visible light in Maxon Cinema 4 d lite, but it appears only as a wire in After Effects. Even when I returned the object, it makes like a wire of QuickTime, for example. I searched the web and made many tutorials for three days a