Popups how top program the ok and cancel button

How do I program the ok and cancel button in the popups. I want to add functionality to the existing ok and cancel buttons in the popup
Thanks,
Veena

You can ise a dialog inside the popup and use a dialogListener to check how hte dialog has been closed
public void handleDialog(DialogEvent event)
  if (event.getOutcome().equals(DialogEvent.Outcome.no))
    setGender(getOldGender());
    // reference to the gender component is from component binding
    // see selectOneRadio above - binding="#{sharedPopup.genderComponent}
    RequestContext.getCurrentInstance().addPartialTarget(getGenderComponent());
}{code}
Timo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Would like to change my home page. I click on options and my general tab is blank with only the ok and cancel buttons showing. How do I fix this?

    In options, under the general tab, it is blank all except the ok and cancel buttons. I can't change my home page. Please help.

    Hi cor-el,
    Thank you for your reply. Before I had seen your reply. I went into options and under general, all of a sudden it showed what should be there. I closed browser and did it again and it didn't show. It has been blank for roughly two months. Just seems funny that I ask a question and after all this time of not showing what it should, it does, to only be blank again.
    I have also been trying to update the flash player. That comes up completely blank as well with nothing showing at all. I did this several times the day before I posted my question. That same day I also hit the reset button for firefox when I was having trouble trying to update the flash player.
    I did as you said to do. Nothing has changed. Is there something else that I could try?

  • How I can internatiolization OK and Cancel buttons confirmDialog?

    private void clickButton() {
              int response = JOptionPane.showConfirmDialog(this, resBundle.getString("Confirmation_text_itroduction"),
    resBundle.getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE);
    if (response == JOptionPane.OK_OPTION) {
                   System.out.println("OK button clicked");
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
    As you can see I internatiolization the title of confirm dialog and text (use object resBundle). OK!
    But how I can internatiolization OK and Cancel buttons is this confitm dialog?

    OK, I can internatiolization buttons "OK" and "Cancel" in confirm dialog:
    private void clickTestKindButton(String message) {
              Object[] options = { resBundle.getString("OK"),
                        resBundle.getString("Cancel") };
              int response = JOptionPane.showOptionDialog(this, message, resBundle
                        .getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
              if (response == JOptionPane.OK_OPTION) {
                   new IntroductionTest();
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
         }It's work OK!
    But how I can internatiolization buttons "OK" and "Cancel" in the input dialog ?

  • Lost my iPad and when I attempt to use the "LOST" feature in icloud, the NEXT and CANCEL buttons are not responding.  I have tried this on 3 different windows based computers.  Any ideas???

    When using icloud because I lost my ipad...when i attempt to use the "LOST" feature the "next" and "cancel" buttons do not respond.  I have attempted this on 3 different windows based computers on 3 different networks.  Any ideas? 

    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
     Cheers, Tom

  • Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    It appears OP solved the problem: [/questions/874744]

  • How to hide the Print and Export button in analytics report or tasks pane

    Hi Experts,
    In BIEE 11g,
    How to hide the Print and Export button in analytics report or tasks pane ?
    For example:
    In console,I have created one userA which is belong to BIConsumer GROUP , when I make use of the highest user 'weblogic' to create one simple report, then the userA will login the analytivs to view this report (not dashboard), it will show the print and export as below.So customers do not want to give him the privilege for printing and exporting.
    In addtion, go to catalog->tasks(left corner), it will also show the print and export button. So how to hide or not access these button?
    Note: Maybe it can use the policy for consumer role for implementing this requirement, but I do not know how to modify the policy. Are you facing the problem? Thanks.

    Hi,
    1. Create seperate folder for Reports & Dashobard.
    2. For BI_Consumer (userA) set the catalog permission to view Dashboard Folder only and remove permission on the Report Folder (you can give traverse permission but don't give Open permision).
    3. By this user won't be able to open or run any reports in that folder and the only way he can see the reports is through Dashboard and on dashboard the export and print buttone can be removed very easily.
    Mark helpful if it helps.
    Regards,
    Kashi
    Edited by: K N Yadav on 24 May, 2013 1:51 AM

  • How to disable the maximize and minimize button of JDialog

    How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.

    Btw, isn't it a little strange to ask thisquestion...
    Actually, I thought it was meant to be sardonic...
    Dialogs don't have those buttons, so the question
    n should be to the OP how did he/she get them in the
    first place? Cuz they aren't using JDialog to do it,
    unless it's something to do with a specific look &
    feel.I somehow missed that, good point :-)

  • How to customize the prev and next buttons separately in slideshows?

    Is there a way to customize the prev and next buttons separately in slideshows in muse? When I import a background image that looks like a right arrow it puts the image for both prev and next buttons. I import it by selecting the next button, and then clicking on the folder icon labelled "Image" in the Fill drop-down menu in the Tool bar at the top of the Muse page.

    Yes, it should be very easy. Here is how I do this:
    First, I move the arrows onto the image, and double click the box so that I can remove the arrow character.
    Then, I go up to the "Image Fill" and click the file icon to fill with an image
    Then, I select the other arrow, and do the same
    Hope this helps!
    Julia

  • How to get the submit and Reset buttons on bottom of the page?

    while viewing a parametric form in the web browser i get SUBMIT
    and RESET buttons on the top of the form which doesnt look good.
    I tried pasting the whole html available by default in the
    Before Form Value(where the submit and reset buttons are
    defined) in the After Form Value property of the report property
    pallette. Though the layout appears as i wanted but its not
    passing the parameters values to the query but generates an
    error " REP-0788 Warning : The value of restricted LOV parameter
    BV_FROM_DATE is not among the selected values.". What can be the
    solution to this problem? Your Help is much appreciated. And
    also the report generated in the Runtime Previewer shows all the
    colors of the fields but its not shown on the web browser where
    can i define them...Your Help!!!!Thank you very much in
    advance..

    when you select 'list of values for the parameters' there is a choice box that says 'restrict list to Predetermined values'. Don't select it. This will solve your first problem.
    Second:When you run the report on the web you must choose ' desformat=htmlcss' then you can display the report as in the preview window. But still you can't see the same view in the web browser on report builder. It is still not good. As I sad before you can see the right view when publishing on the web.

  • Disk Mode? How long pressing the select and play buttons?

    Please, I`ve tried everything to turn it on my ipod since i drop it. It doesn`t appear in itunes or desktop, or my computer. It was with that exclamation mark. I was trying to turn to Disk mode, but it doesn`t go!! For how long should i hold the select and play buttons? I was holding for about 5 minutes until i gave up. Does it take that long?
    Thanks, Juliana

    How to put your iPod into disk mode:
    1) First, make sure that your iPod is mostly charged.
    2) Toggle the "hold" switch on/off a few times.
    3) Hold the "menu" and "select" (center) buttons down together for 7 seconds.
    4) As soon as the Apple logo appears on the screen, let off the menu and center buttons, and immediately click the "select" (center) and "play/pause" buttons until the "disk mode" screen appears.
    If that didn't work, your iPod might be broken.
    But before you presume that, try those four steps above several more times. Sometimes you need to do this step several times before you get the hang of it.
    I hope this helps!
    ~~Kylene

  • How to program the LPC2368 and LPC2468 using microprocessor SDK?

    Hi
    where to start? I have not found on the site of corresponding materials.
    thanks for the help
    Solved!
    Go to Solution.

    Hi Sergiv,
    I would suggest taking a look at the following document: LabVIEW Embedded for ARM Porting Guide - Chapter 1: Introduction.  It is a generic document that will explain the process of porting to any microprocessor.
    If you have LabVIEW Embedded for ARM module, I would suggest that you take a look at one of the shipping templates.  There is a template already build for the LPC2468 that you should use.  And if you don't have the module you should download the evaluation version to get the template and save yourself a bunch of time.
    I hope this helps.
    Justin Parker
    National Instruments
    Product Support Engineer

  • Why did adobe switch the OK and cancel buttons for Place?

    I keep hitting Cancel and it's driving me nuts. Seems like a bonehead move. Can you change it back in a future update?

    Mouse wheel up or down, zooms in or out. Mouse wheel with shift pressed at the same time, scrolls the timeline at a speed that actually is useful.
    That should be reversed, where the wheel alone will scroll at a usable speed and the modifier plus wheel will zoom.
    Of course, that's how it used to work.  Adobe 'fixed' this, too.

  • Moving ok and cancel buttons

    Hi,
    When I do JOptionPane.showOptionDialog(...);
    Can anyone tell me how to make the ok and cancel buttons appear at the bottom right of the dialog instead of the bottom center.
    Thanks,
    Jim

    Sure, use another panel as a spacer thusly:
    | |
    | Other Panels |
    | |
    | Spacer | OK Can|<-position panel contains both panels
    Use BorderLayout for the entire dialog and set a position panel to be SOUTH (If you are using someother layout, add a full panel as a backdrop and move your Other panels into it using NORTH). Add the Spacer panel and 'OK/Cancel' panel to this using GridLayout (2 columns, 1 row).
    There is no restriction, other than memory size, to how many panels you use and their hierarchy.
    Robert Templeton

  • Gridbaglayout:- middling the elusive OK CANCEL buttons

    Hey guys,
    I constantly use Gridbaglayout in all my windows. But what constantly evades me is how to get the "ok " and "cancel" button to middle in the window at the bottom.
    What is the trick? I try various settings that should apparently work but they don't. I have gotton it right once but am unable to figure out why it works (but it only works on windows, on linux the layout is messed up again).
    Regards.

    There is some sort of misbelief that you can only use a single panel when laying out a GUI. I can't even guess how much extra work and frustration this has caused. Swing containers are designed ot be nested to create GUIs.
    Here's my suggest:
    Create a main JPanel and set its layout to BorderLayout.
    Creat another JPanel with your other components, less Ok and canel Button. Add this panel to the main panel using BorderLayout.CENTER.
    create a third panel and add the Ok and cancel buttons to it. Add this panel to main panel using BorderLayout.SOUTH.
    To give your gui a really professional look I would even create a fourth panel set to gridlayout e.g new GridLayout(1,0,5,5). add your buttons to this panel and add this panel to the one in SOUTH. This will center the buttons and make them equal size with a small gap between them.
    Cheers
    DB

  • How to handle "ok" and "cancel" button of dialog popup?

    Hello everyone,
    I'm using a dialog with type="okCancel". My question is how to handle ok and cancel button of this popup window. Here is my code below:
    <af:popup id="kriterPopup">
    <af:dialog title="Kriter Seçiniz" type="okCancel" inlineStyle="width:500px;height:400;" id="d2"
    dialogListener="#{BasvuruDegerlendirmeBean.kriterDialog}">
    <af:selectManyCheckbox label="Kriterler :" id="smc2"
    binding="#{BasvuruDegerlendirmeBean.kritersCheckbox}">
    <af:forEach items="#{BasvuruDegerlendirmeBean.kriterList}" var="item">
    <f:selectItem itemLabel="#{item.ybKriter.tur}" itemValue="#{item.ybKriter.tur}" id="si3"/>
    </af:forEach>
    </af:selectManyCheckbox>
    </af:dialog>
    </af:popup>
    I want to handle ok and cancel button of this window, and redirect to the pages which I want.
    Can anyone help me how I can do?
    Thanks, with my regards.
    Ali

    You need dialogListener..
        public void dialog1_dialogListener(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.yes)){ //for Yes
            }else{ //for Cancel
        }

Maybe you are looking for