How to disable the copy - paste in af:inputText

Hello

I had an obligation to disable a user of the operation to copy - paste into an af:inputText field.
How can do us?

Thank you
Amit

Hi Amit,

Welcome to OTN.

You disable the control keys and right mouse click on the text entry using javascript and the client listener.

For ex.

        
          
          
          
            function disableCtrlKey(e) {
              if (!e) {
        var e = window.event;
    }
              characterCode = e.getKeyCode();
              if (characterCode == 17 ) alert('Control Keys are not allowed');
              else event.cancel();

            }
                        function disableContextMenu(e) {
              if (!e) {
        var e = window.event;
    }
              alert('Cannot invoke context menu');
              e.cancel();
            }

          
        

Will give the user a warning when they use the CTRL / right mouse click on the text field.

But what happens if the user selects the browser-> copy edit and modify-> menu Paste?

Arun-

Tags: Java

Similar Questions

  • Disable the copy/paste to the console remotely.

    Dear team,

    How to disable the copy/paste to the console remotely.

    concerning

    Mr. VMware

    Hello

    Copy/paste is disabled as default setting from vSphere Client 4.1 see here: http://kb.vmware.com/kb/1026437

    Tim

  • Need a script to disable the copy/paste in virtual machines

    Need a script to disable the copy/paste in virtual machines

    =================

    Begin {}

    $disableCopy = "isolation.tools.copy.enable".
    $disableCopy_value = "false".
    $disablePaste = "isolation.tools.paste.enable".
    $disablePaste_value = "false".
    $disableGUI = "isolation.tools.setGUIOptions.enable".
    $disableGUI_value = "false".
    }

    {In process
    #Make of course, it's a virtual machine
    If ($_ - isnot [VMware.VimAutomation.Client20.VirtualMachineImpl]) {co continue}

    #Setup our object
    $vm = get-view $_. ID
    $vmConfigSpec = new-Object VMware.Vim.VirtualMachineConfigSpec
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig [0]. Key = $disableCopy
    $vmConfigSpec.extraconfig [0]. Value = $disableCopy_value
    $vmConfigSpec.extraconfig [1]. Key = $disablePaste
    $vmConfigSpec.extraconfig [1]. Value = $disablePaste_value
    $vmConfigSpec.extraconfig [2]. Key = $disableGUI
    $vmConfigSpec.extraconfig [2]. Value = $disableGUI_value
    #Run change
    $vm. ReconfigVM ($vmConfigSpec)
    }

    =================

    The script above did not work. This script must run on VMs specified in a cluster that is mentioned.

    As long as vmhgfs is not installed in your virtual machines during the installation of the tools in 5.0, copy and paste between virtual machines is not enabled by default

  • How to use the copy paste

    I would use the copy/paste feature to copy some text from my file in Word for my web site (as an administrator).
    I faund some information in Firefox, but I wasn't able to follow. I'm not a programmer or a system in English. I'm just an oridinary user.

    As a general rule, you should be able to stick by using one of three methods provided by the browser:

    • CTRL + v
    • the orange Firefox button > edit > paste or classic menu Edition > paste
    • Right click > paste

    However, if the editor has a small button of dough, which can be blocked by security restrictions. I'm not sure it's interesting to try to make these buttons work (as I think you found your question).

  • How to disable the copy/Select/Select all

    Hai...

    I'm up large amount of text in my application... I had a window copy/select/Select all windows... Everyone knows how to hell it please help me

    Thank you

    Dembélé

    You place your text in what UI element?

    If you use a TextField:

    var tf:TextField = new TextField();
    tf.selectable = false;
    
  • How to disable the menu options?

    Hi all

    We have oracle EBS 11i (11.5.10.2).

    Now, on the purchase order (POXPOEPO. FMB), I want to disable/hide the option to drop named 'printed '.

    Navigation-> form IN. path > tools > copy Documt (you want to disable/hide).

    Can anyone suggest me how to proceed?

    Thank you
    concerning
    Sanjay

    "How to disable the Copy Document function in tools (Doc ID 360590.1)"

    This allows to limit the service to selected responsibilities:

    Copy of Document function cannot be excluded in the setup of the responsibility

    System administrator: Security > responsibility > define > tab: Exclusions of Menu

    Insert a new record as follows

    Type = Function
    Name = IN. printed

    NOTE: After above installation was done, the service will remain visible. However, when you click on it, the user will received message 'feature not available to this responsibility. Change the responsibilities or contact your system administrator. »

  • Disable the copy or cut and paste completely

    From: kend_beledm

    Is it possible on a windows-based systems to disable or completely disable the copy and paste function, any type of program is displayed on the screen.

    De : Andrew McLaren

    You can do this for Windows as a whole (and even if you did, users could simply use a print-screen instead, limited data). But you can do it for specific applications: essential technology is Windows Rights Management Services ("RMS"). See http://www.microsoft.com/windowsserver2003/technologies/rightsmgmt/default.mspx

    If you have an application that can participate in a RMS infrastructure, you can indeed set up policies to selectively allow or prevent the n-cut-paste, etc., to users and groups. or refuse to cut-and - paste altogether in this application.

    Microsoft Office is the application most common which can be plugged into RMS. Once it is all together, it is extremely effective... you really want to cut-and - paste privileged information from this juicy email or a Word document. but hell, you just can not! You also cannot transfer protected emails, etc..

    There is a public SDK, so anyone can write an application that subscribes to RMS and restrict access to the application data. However if you have a legacy application (IE, an already existing application) which you can not re-engineer, so I think you're a bit stuck. You may need to address the issue of security in a non computer perspective, such as human resources policies, etc.

    You can also take a look at the Software Restriction policies ("PRS"), a similar security Windows feature. SRP will not stop users to cut and paste, as such; but it lets you create a very controlled environment. You can stop the users do a lot of things you don't want to do. See:

    http://technet2.Microsoft.com/windowsvista/en/library/0d504b1d-e57c-4DCC-8A5A-8d1da9e4d1fe1033.mspx?mfr=true

    It will be useful,

    --

    Andrew McLaren
    amclar (at) optusnet dot com dot to the

    Another response of the community of Windows Vista discussion groups

  • Anyone know how to disable the movement forward while keeping the status bar

    Does anyone know how to disable the movement forward in the navigation and now the tray without having to use ActionScript? I already have the forward button disabled, but you can always advance by dragging the indicator in the status bar.

    Thank you!

    Hi Trevor,

    Close Captivate.

    Please copy - paste the swf attached to

    : Files\Adobe\Adobe captivate 4\Gallery\PlaybackControls\SwfBars\AS2.

    Open captivate and choose "default" PlayBar in the skin Editor. Publish the AS2 project. This should disable all the events on the progressbar control.

    Manish

    http://blogs.Adobe.com/Captivate

  • How to disable the toolbar to search related

    Visiting a few results from web sites in the appearance of a toolbar on the left, called "related searches." How to disable the toolbar?

    I have the feeling that it is injected by one of your modules. Here's my method to track down and clean the bad modules and ad injectors. I know it seems long, but it's not so bad.

    (1) open the Control Panel, uninstall a program. After the loading of the list, click on the column heading "installed on" to group infections, I mean additions by date. This can help the undisclosed items bundle smoker who snuck out with some software, you have agreed to install. Out as much garbage as possible here.

    (2) open Firefox page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons
    • in the Windows "Run" dialog box, type or paste
      firefox.exe "about:addons"

    In the left column, click on Plugins. Set essential and unrecognized plugins 'never enable '.

    In the left column, click Extensions. Then, in case of doubt, disable (or delete, if possible) not recognized and unwanted extensions.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

    (3) you can search the rest of problems with scanning/cleaning tools listed in our technical support article: Troubleshooting Firefox problems caused by malware. These scanners on request are free and take a long time to run. If they end quickly, especially if they require the payment you have a serious infection. I suggest the specialty forums listed in the article in this case.

    Success?

  • How to disable the App tabs (tablets should) start automatically?

    How to disable the App tabs (tablets should) start automatically?

    because the option [don't load the tabs up to choosing] dose does not work with her, and she keeps starts every time when I restart Firefox.

    Please help me!

    Don't bother, I arrived at the solution of my car, you can do the following:

    Type "subject: config" [without quotes!] in the location Bar (address bar) and press ENTER to display the list of preferences, as shown in the photo #1 in Firefox 17 under Windows 7.

    If you see a page with the warning as pictured #2, this might void your warranty!, click the "I'll be careful, I promise!" button to continue (in fact, there is no guarantee that it is, it's more a joke to ensure that users are aware of what they are about to do). Uncheck the box to avoid the warning in the future.

    Now to the search bar in the image #3 type: tab and search for it

    preference name:
    

    Browser.sessionstore.restore_pinned_tabs_on_demand

    or you can copy directly to the search bar.
    Then, follow the instructions in the photo n ° 3 .

    Just in case where if the photo appears, follow these steps:

    First: Right-click on the name of the preference that we sought.
    Then, click Toggle to change the value from false to true.
    Or, double-click it and it will change.
    Finally, restart Firefox, and you'll notice that they don't automatically load until you click on it.

    That's it, good luck to all. ;-)

    Note: the list of fonts preferences fat is the user changed, and the United Nations-fat is the default setting.

    Warning: change preferences can, in rare circumstances, break Firefox, Thunderbird or Mozilla Suite, or cause strange behavior. Only do if you know what you're doing or trustworthy tips.

    Additional INFORMATION:

    Subject: config is a feature of Mozilla applications which lists application settings (known as preferences) that are read from the profile files prefs.js and user.js and the default application. A lot of these preferences are not present in the preferences or Options dialog box. Using about: config is one of the many methods of changing the preferences and adding the other 'hidden '.

  • How to disable the Apple Photos

    How to disable the Apple Photos when importing photos (ambient light).

    There are two ways:

    1. When you connect your camera or your iPhone to your Mac and your Photos opens go to the import window and uncheck this box:

    However, if you use a device with a memory card and reformat card Photos will think it's another camera and Photos will be open again.

    2. to disable form opening automatically when any camera is attached permanently to Photos, iPhoto or Image Capture paste the command following in the Terminal window, followed by the return key or enter:

    defaults write currentHost - com.apple.ImageCapture disableHotPlug - bool YES

    Change Yes to no reverse the order

  • How to disable the search feature in inputComboboxListOfValues

    Hello

    I'm working on Jdeveloper version 11.1.1.6.0. I use the component 'inputComboboxListOfValues '.

    How to disable the search feature in inputComboboxListOfValues?

    Frank Nimphius-Oracle

    I saw a topic archived for even where you replied on

    AF | {inputComboboxListOfValues::search}

    visibility: hidden

    }


    But when I use it, I'm getting some unknown pseudo class look in the css source file while pasting your code.

    Pls help.


    Thank you

    Hey, Timo,.

    Found the solution,

    LOV > UI advice > list Searh > include the search box > select No research

    Search link will be disabled in the drop-down list box drop-down list

    Thank you

  • How to disable the SOS on Apple Watch 2 function

    How to disable the SOS on Apple Watch 2 function?

    Hello

    It is not currently possible to completely disable the SOS emergency feature.

    However, to disable "hold to call auto":

    • On your iPhone, in the application of the watch, go to: Watch My > General > emergency SOS - deactivate Hold to call self.
  • How to disable the feature CALL SOS?

    I've just updated to iOS 10 and 3 watch OS, but I can't find how to disable the feature of emergency SOS on my Apple Watch.

    I thought it would be a good feature for me so I turned it on, but my fingers are clumsy, so I struck the wrong cursor when I turned off my watch and accidentally, I called 911. I've disabled "Stick to Auto Call" and deleted all my contacts SOS in general in the application to watch on my iPhone and I restarted the iPhone and the Apple Watch, but emergency SOS still shows on my watch when I want to turn off my watch.

    I think that before I turned emergency SOS, I saw "Power Reserve" under the "Power Off". I read that once you turn Hold for Auto call in the app shows and then turn off, the cursor of SOS emergency will always be displayed when you turn off the watch.

    How can I disable the cursor of emergency SOS when I turn off my Apple Watch? Can I use Reset under general, or désapparier my watch and pair again? I don't want to do that, because it would take a lot of time to get all my settings that I want them to be.

    Hello

    I'm not aware of any option settings to remove the emergency SOS cursor in the menu that appears on pressing them and holding the button.

    If you want Apple to consider adding an option to disable the feature, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • How to disable the photo?

    How to disable the photo?

    Not easy - just ignore it

    LN

Maybe you are looking for

  • HP probook 6570b: 6570b hp Base system device and unknown device

    I have hp 6570b with os win 7 Professional 32 bit.it appear in Device Manager that there is a need driver software.it shoes Base system unit hardware and unknown device... Hardware ID base system device PCI\VEN_197B & DEV_2392 & SUBSYS_17AB103C & REV

  • Recommend me a good portable games

    I currently have a laptop A200-15I Finalis. I'll sell that the graphics card is good enough, and especially because the quality/display is not good when connected to an external TFT. I am looking for a laptop with a good graphics card, at least 160 G

  • Upgrade of RAM for my g4 2049tx pavilion

    My system configuration is mentioned in this link: http://support.hp.com/us-en/document/c03548502 I want to improve RAM 4 GB to 8 GB. I don't know what RAM or its specifications to purchase. Please suggest me some links to buy some RAM for my laptop.

  • Current limit for analog output on USB-6211-OEM

    The current output drive listed in the specifications of this card is of +/-2 my. What happens when you try to go beyond that? Is there damage to the card or is it simply rail out around 2mA. For example, if I connect a 1000 ohm load. I'm okay, if I

  • How multiboot Vista and Windows 7?

    How can I install Windows 7 and keep my old operating system available? I have bought discs Windows 7 and you want to load, but I want to keep my Vista too. Is this possible?