How to disable a commandbutton  from bean after closing a popup.

Hi,
I have a scenario where there is a popup with a button.On click of the button the popup must close and all the buttons in the parent page must be disabled.
I tried the following to disable the button in the parent page:
commandbutton1.setDisbled(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(commandbutton1);
But it doesn't work.Am I missing something here ?
Thanks!
Rohit

seems like the page is getting refreshed after your code..
Try keepng the button used to close the popup as partialSubmit="True"

Similar Messages

  • How to disable TextEdit's automatic termination after closing last open document?

    Hi!
    I was wondering how to disable TextEdit's automatic termination after closing the last open document.
    It's so annoying!
    Thanks for everything!
    Chris.

    Quit TextEdit, launch the Terminal app in /Utilities, copy & paste this one-liner into the window that pops up, hit the return key, quit the Terminal app, and restart.
    defaults write com.apple.TextEdit NSDisableAutomaticTermination -bool yes
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.5), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • [SOLVED] ADF - How to disable/enable CommandButton from JavaScript

    CommandButton is rendered as a image in HTML and image does not have disabled property in JavaScript. Is there some other way to dynamically change render property of ADF/CommandButton without auto submitting?

    - if you don't mind that it doesn't 'look' disabled, you can have an onClick return false
    - you might be able to hide it by putting it in the custom 'div' tag someone recently posted on this forum and then using visibility:hidden from the javascript
    - or you could put it in the div tag, or use a seperate div tag and float that on top, and play around with opacities
    - or you could just grit your teeth and do the partial submit. Hmm, speed vs. maintainability :-p

  • Does any one know how to Disable/Hide "BCC" from outlook/owa in office 365?

    Hi,
    Does any one know how to Disable/Hide "BCC" from outlook/owa in office 365?
    Thank You.

    Hi Kavin,
    You can try the below steps on the OWA server box,
    search for this file name in explorer
    File name: "messageoptionsdialog.aspx"
    open this file in notepad
    search for "chkbcc" you'll find something like this "input type="checkbox" id="chkBcc"
    you need to update the LINE BEFORE IT to <td style="visibility:hidden">
    Try this and let me now if this worked
    Although I've not tried this for the OUTLOOK client, you can try this and check if you need
    But this has worked for OWA for one of my client
    I'm also not very sure if this can be achieved on all of your outlook users from a server admin point of view, coz this is a client feature and not a user specific active directory attribute.
    Thanks & Regards
    John Chris 

  • How do I keep URLs from printing after Events?

    Version 3.0.8 (1287) - How do I keep URLs from printing after Events?

    Open the Pages preferences > uncheck Automatic detect email and web addresses

  • How to disable other users from changing the status

    Hi,
    The status entry field can be changed irrespective of ownership in Documents.
    I was able to change the status on the document created by other user.
    Example: The status of document was In-Work. The document owner was X. But I was able to change it to Inspection Check.
    How to disable other users from changing the status?
    Regards,
    Shashi

    This is a frequently discussed topic.Please use the search feature.It has been discussed in [previous posts|CV01N: Filter documents by role; in various contexts.
    Regards,
    Pradeepkumar Haragoldavar

  • How to Direct control to application's window after closing the popup?

    Hi,
    I am using 10.1.3. In my application I am unable to direct control to application's window after closing the popup, if I open any other window at the same time.
    For more info see the below step:-
    -> Open any popup in my application.
    -> Open any new window (lets say Google.com).
    -> Now restore popup on Google window.
    -> Now close popup
              - control goes to Google window but not the parent application window.
    How to direct control to the parent window?
    Can anybody help me regarding this?
    Thanx...Abhijit

    Hi Abhijit,
    You can do this using Javascript alone. Below are the two sample files I created.
    main.html_
    <html>
    <head>
      <title>Testing popup</title>
      <script type="text/javascript">
      function openPopup() {
        window.open("popup.html");
      </script>
    </head>
    <body>
      <a hr_ef="javascript:openPopup()">Open popup</a>
      <input id="something" name="something" type="text" value="something">
    </body>
    </html>
    Note: hr_ef should be href. The code tags are messing with the link.
    popup.html_
    <html>
    <head>
      <title>This is the popup window</title>
      <script type="text/javascript">
      function goToMain() {
        window.opener.something.focus();
      </script>
    </head>
    <body onunload="goToMain()">
      This is the popup window. Close this window to return to main window.
    </body>
    </html>The idea is to call a javascript function in the popup window that tries to focus on an object (eg. InputText) in the main html.
    Although, one point to take note is the naming of html objects by by these ADF UI Components. If you named your form id as "*form1*" and input text id as "*something*", your input text id will end up as "*form1:something*".
    Therefore, you will have to tweak the code above to the following:
    <script type="text/javascript">
    function goToMain() {
      window.opener.form1['form1:something'].focus();
    </script>Regards,
    Chan Kelwin

  • Refresh the table after closing the Popup iView

    Hi all,
    I have list of survey in my table. In that table i have toolbar button(DELETE) for deleting the survey. While deleting the survey it asks the confirmation. If we click Ok it delete the selected survey and close the popup also. what I want is I should refresh the table after closing the Popup.How can i achieve this?
    Help me in this regard.
    Thanks & Regards,
    Hemalatha J

    Hi Hema,
    Check this link.
    Visual Composer - You can do anything....
    In this blog, they are used 'Refresh' Button and a Hidden 'Plain text' message to solve this problem. If you are satisfy with this you can take this solution.
    Or you can try to trigger the 'Submit' action of 'Input form' once again from the 'Popup window' when the 'Delete' button is clicked.
    Hope it helps...
    Regards
    Basheer
    Edited by: Basheer on Dec 23, 2008 8:03 PM

  • How to disable "shift-option" from zooming out in InDesign?

    Hi all,
    This truly is driving me crazy...how can I disable the "shift-option" shortcut so that I do not zoom out in InDesign? I have searched through the keyboard shortcuts but cannot find where or how to disable this:( I use the shortcut a LOT when I am drag-copying something that needs to be on the same horizontal or vertical line as the the item I am copying from.
    Thank you so much in advance for your help,
    Christine

    I haven't had time to come back here and post a reply because I've been so incredibly busy working on a catalog. I do have to say that this zooming out is KILLING me and cutting heavily into production time. This was not happening in ID CS5 and only seems to have been happening with ID CS6. There is no third key and it doesn't seem to happen ALWAYS...so I am completely baffled. Normally it is when I shift-option drag an object. Sometimes even just option-dragging an object causes it to happen. I just don't know what is causing this or what I can disable to stop it from happening:(

  • How do i delete images from camera after importing

    how do i delete images from camera, ipad, iphone after importing the files into aperture3?

    Image capture will allow you to delete from the device after import, but I believe it is by design that Aperture does not do this as it is recommended (in the case of a camera) to use a device's own delete function rather than a 3rd party like Aperture. This also allows time for a proper backup before everything is erased from the device?

  • How to access Message bundle from beans??

    Greetings i am new to JSF.
    I want to access my message bundle from beans, anyone could tell me how to do it?
    Also, i need my beans to obtain the url address of my servlet automatically, how can i do that?
    Thanks for any help!

    Another alternative if using the <f:loadBundle> tag within your JSP is to do something like the following in your bean logic:
    In a JSP:
    <f:loadBundle basename="Resources" var="messages"/>
    In Bean:
    ExternalContext extContext = FacesContext.getCurrentInstance().getExternalContext();
    // Obtains the Map containing the key/value pairs loaded by the loadBundle tag
    Map messages = (Map) extContext.getRequestMap().get("messages");
    As to the second question, I'm assuming you want the URL that invoked the current request? If so, look at ExternalContext.getRequestPathInfo() and ExternalContext.getRequestServletPath().

  • How to disable proxy settings from ipad

    hi i am using airtel india  sim for acessing internet from ipad mini. but my memberships in some accounts has been suspended saying that due to proxy use. but i  did not use any proxy settings n i m using internet via airtel internet. in this regard, i wnt to remove the proxy settings from my device. can any one help me on advising where to find the proxy settings and how to disable them? plz...............

    Proxy settings on the iPad relate only to WiFi (Settings > WiFi). It's possible your mobile operator is using a Proxy. You should talk to them to see if that's the case.

  • HT201320 How to disable an account from an I-Pad? (Without the I-Pad...)

         How can you disable an account from an I-Pad without it? I have an email linked to an I-Pad that I cannot get a hold of anymore because it was my school's for a required project. I've been sending and recieving anonymous mail from it occasionally. I just changed the password and allowed a vertification for my email login, but I don't want to delete it, it's my primary email. Is there anyway I can disable the account without it? PLEASE HELP!

    Hold down on the app icon until it wiggles. Then tap the X on the icon to delete it. Tap the home button when you are done.

  • How to disable save option from adobe toolbar in Acrobat Reader

    We need to disable Save option from Acrobat Reader plugin in Internet Explorer 8/9/10 version.
    Acrobat version is X.
    Is it possible to disable Save ( Floppy Disk) icon?
    We have disabled printing and copying.
    Please help

    You are, I'm afraid, chasing an impossible security that cannot exist. Many have sought this, but it just isn't there -- and there is so much more than the save button involved.
    If you are a big enterprise with sensitive information consider DRM solutions ($$$$+).

  • How to disable auto-completing service request after completing last activity

    How to disable standard rule, that change service request status to "Complete" when the last activity in this service request is completed?
    For SCSM 2012 R2

    Perhaps you can use the "Closed" status as a way of indicating that your are completely finished with a service request? (This follows ITIL). It has the advantage of being an out-of-the-box feature and, by default, SR's have to be closed by
    a user.
    Keep in mind, though, that closed service requests are groomed out of the CMDB (356 day retention time by default, i believe). But, they'll still be available for a few years in your data warehouse.
    What is your business reason for this behavior? Console views? Custom reports?
    If "Closed" doesn't cut it for you, you may want to consider extending the Server Request class with your own status property that you can use for whatever your requirements are.

Maybe you are looking for

  • MacBook Pro screen won't turn on

    Yesterday my MacBook Pro unexpectadly shut off.  It then would not turn back on and it became warm.  You could also hear the fans blowing beneath, at one point it got so loud at night that I took the battery out so I could sleep.  Today around 2:30 I

  • [Solved] Cinnamon desktop quirks

    Hey, I installed the cinnamon desktop, but I can only see my usb drive under the root acount, not under the my user account. I've looked in the wiki, but nothing.  I've got myself added to the groups, but nothing either. I also can't seem to shutdown

  • Questions about documented client limitations

    I set up a 1.4.2 Beehive server so my boss could test it out, and then sent him the end user PDF. Since we're currently using Oracle Calendar standalone, we're primarily interested in testing the time management component of Beehive, and generally vi

  • Will Homeplugs work with 'Premium' channels ?

    Though this subject deserves it's own thread as I suspect a lot of customers currently connect their vision boxes via homeplugs rather than direct wired by Ethernet cable. I have the Sky Sports channels + ESPN currently & Infinity. I was recently sen

  • BO4 - Data tab shows date as 01/01/1970 but actually now on database

    Hi, Using bo4 webi and noticed whilst report correctly shows date as blank/null in report (no object format in universe) but date in data tab shows as 01/01/1970. Any idea why this is the case? Thanks