Hidden Message Box

Hi all. I would like to pop up an information message saying: "Your data has been saved." after the data has been saved in the data base. So, I try to do this:
if (cachedRowSetDataProvider1.canAppendRow()) {
                try {
                    RowKey indiceFila = cachedRowSetDataProvider1.appendRow();
                    cachedRowSetDataProvider1.setCursorRow(indiceFila);       
                    cachedRowSetDataProvider1.setValue("Servicio.nombre",txtNombre.getValue());
                    cachedRowSetDataProvider1.setValue("Servicio.descripcion",txtDescripcion.getValue());
                    cachedRowSetDataProvider1.commitChanges();
                    getSessionBean1().setNuevoServicioRow(indiceFila);                                                          
                   JOptionPane.showMessageDialog(null, "Sus datos han sido guardados correctamente", "alert", JOptionPane.INFORMATION_MESSAGE);
                    return "guardar";
                catch (Exception e) {
                    error("No se puede agregar el registro: " + e);
                    return null;
            } But the dialog is hidden behind all the open windows. Any idea in how to solve this? Other possibility could be showing a message in the same jsp page (in a group message or something) saying the same text, "Your data has been saved". But if I throw a FacesMessage, it stops executing because it is treated as an exception.
Any help would be apreciated. Thanks.

Use an Image Hyperlink component instead of a button. Add an action handler for the component, just like you did for the button. In addition, use Page Navigation to draw a link from the Image Hyperlink to the .jsp with the message.
In the Properties window for the Image Hyperlink, set the target property to New window.
Set the image for the component to an image of a button.

Similar Messages

  • How to cancelling email submission after user clicks "yes/no" button of message box?

    could some one tell me, how can i cancelling the submission event after one user clicks "yes/no" button of message box? The scenario is the following:
    After data input in a dynamic form clicks the user send mail button. Before the email submit, the user has to decide going back to the form and validate the input or continuing to submit email.
    In case of going back to validate input the submission event must not solve. So, how can i implemente it in java and/or form calc script?
    Thanks so much for your help in advance and i am very glad to hearing from you soon!
    Djinges

    Hello,
    The most easy way to solve your problem is to add two buttons, the first should be regular button and the second is submit by e-mail one. Set the
    'presence' property of the second to 'hidden' and add to it your email address. To the first button on 'click' event add the script like this
    form1.#subform[0].Button1::click - (JavaScript, client)
    var answer = xfa.host.messageBox("Send e-mail?","e-mail",2,1);
    if(answer==1){
    EmailSubmitButton1.execEvent('click');
    Hope this helps.

  • When message box looses focus, no way to get it back

    Hello!
    I have this very simple, yet annoying problem.
    When my program finishes reading a database, I inform the user of that fact by displaying a JOptionPane message box. But, if I switch to another program without clicking "OK" on that message box, it gets out of focus and hides behind the application.
    There is no way to get to that message box afterwards, and the user cannot use the program since he hasn't clicked "OK" yet.
    Any thoughts???
    Thanks,
    Vladimir
    Simple line:
    JOptionPane.showMessageDialog(null, "Data Ready" );

    The focus gets lost whenever you click on any other application. But when I click back on my application, I expect the message box to be visible (to pop-up along with the application). But that doesn't happen. The main window of the application is shown, but not the message box (it is hidden somewhere behind the application(s)). And if I don't click "OK" on the message box, the main window is not editable ( I can't do anything with the main window until I click "OK" on that message box).
    Basically, my question is how do I make that message box always appear first when my application gets the focus.
    Vladimir

  • Facing a very wierd situation - VBScript message box pop up

    Hello Guys,
    This is very weird scenario am facing. I have a program to run Launch.vbs which will prompt for Messagebox at end of the script. 
    I deployed the package to 3 machines (Windows 7) - To Device Collection
    Always in one machine only i get the Message Box and
    remaining 2 machines am not getting the Message box (the wscript.exe running in task manager hidden and no message)
    Tried so many times, but same issue with these 2 machines. (Am sure i have selected proper options in Program --> Properties because in one machine i always get the message box)
    Is that any machine policy preventing the message box to display ?? or anyother work around.
    or any client settings i need to change (though all machine have same client setting - Default Settings)
    Please assist, i need to deploy the package to production.
    Thanks,

    Sorry not getting you, //NOLOGO - prevents -banner/logo displaying at the execution time.
    But my requirement is to get the Messagebox during execution
    In my program i run only Launch.vbs earlier i tried with
    cscript.exe Launch.vbs
    But how same package i deployed to other machines, it not popping up a messagebox, it is running in taskbar no GUI.
    I with the command you suggested.
    My VBScript Content:
    strRoot = oFso.GetParentFolderName(Wscript.ScriptFullName)
    EXEcmd = Chr(34) & strRoot & "\setup.exe" & chr(34) & " " & "/configure" & " " & chr(34) & strRoot & "\install32ny.xml" & chr(34)
    WSHShell.Run EXEcmd, 0, True
    strSuccess_Msg = _
      "The installation of Office 365 Pro Plus was successful on your machine." & VbCrLf & VbCrLf & _
      "Please save your data, logoff and login to your machine and " & VbCrLf & VbCrLf & _
      "Launch Outlook 2013 to configure your profile" & VbCrLf & VbCrLf & _
      "Click OK to close"
    MsgBox strSuccess_Msg, 64, "Office 365 Pro Plus"

  • Remove all message boxes

    How about replacing all the message boxes with something like (and i can't believe i'm saying this) the information bar from internet explorer in the sense that you wouldn't need to click OK or whatnot to be able to continue your work.
    Here's an example:
    With the brush tool selected, you click by mistake in the image while a vector layer is selected. What happens? you get a message box telling you to rasterize the layer to continue. You click cancel because it's a mistake and then you get another message box telling you that you can't edit the layer (isn't it fun?).
    This would be replaced by showing you a bar at the top of the image when you click on the vector layer telling you that if you click again with it on the layer you will rasterize the layer. The thing is that if you select a different tool or layer, the bar would disappear(as well as the effect of rasterizing by clicking once more in the image) without the need to click in some specific area before you can continue with your work.
    The end result is that we'll be able to work faster and smoother. No more click ok for stuff like "no pixel is more than 50% selected", "could not complete because the area is empty", "cannot paint on hidden layer", "cannot continue because no layer is selected", etc

    Here's another example where this status bar would be useful:
    With a multi-layered document you go to Image->Mode->Lab and instead of asking you whether to flatten or not, it will automatically convert the image without flattening and show the bar saying something like "if the appearance doesn't match and you want to flatten the image then click here". And if you click on the bar it would redo the conversion but this time flattening the file before going to Lab. Also add an option in the bar to reverse the behavior of the conversion so that it automatically flattens the file and gives a bar saying the opposite to make sure that you won't get any angry users that always flatten when going to Lab or some other color space
    Something similar would be when running actions that include a stop. Instead of relying on the user to know that he has to click play to continue or the creator of the action to write that when making the action, the bar would appear and tell you to click on it to continue the action after having made the necessary adjustments 
    I for one prefer the bar to appear only when needed instead of it always being onscreen and taking up screen space but at the end of the day, as long as it's implemented i won't mind the exact method of the implementation.

  • ExecValidate, but silently? (no validation/empty message boxes!!)

    Hi All
    I want to check if all fields are valid and filled in.
    I use execValidate().
    However, executing execValidate means all the validation script messages and empty messages are also displayed.
    Is there any way of checking for validity, but without the annoying message boxes popping up?
    Thanks,
    Shiv

    Hi Niall,
    Thanks for your response, but I'm already using LC Designer ES2, and my form target is Adobe Reader 9.1.
    I have a hidden boolean inside my form that I use in the following way :
    On the preSave event, I put the execValidate() result in my boolean to know if the form is "valid" or not. The form is filled in a "disconnected" mode, so there is no submit button, etc.
    What I want is the "execValidate()" to be silent for the user, so that I can have the info without any popup.
    However, I need those pop-up because there is a button "validate form" which is for the user, and i need custom warnings for some fields.
    Regards,
    Thomas

  • Adobe Acrobat Pro text box not printing and is hidden under box highlight.

    Adobe Acrobat Pro 10.1.13.  I am completing a form with text box throughout the document. I can no get the text box to printing and the text is hidden under box highlight.  I have tried printing with the print feature 'Comments & Forms/ Document and Markups' with no luck.

    It's doing that because you have field highlighting enabled. YOu can either turn it off or make the field read-only (if it's only used for display and not entry).

  • I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    JackieMars71 I would recommend reviewing your installation log files to determine if there are any errors during the installation process.  You can find information on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors you discover to this discussion.

  • Missing Message Box after Skin Copy in IC Agent

    Hi,
    I copied the default skin in a customer z-skin (and added a logo).
    Everything works fine, even the company logo is visible.
    Now I have the problem that for the role "IC Agent" all the three message boxes have disappeared and that behind the SAP logo, the "Interaction Center" is smaller then before.
    Is this a problem in the process of the copy? Or is the mistake somewhere else?
    Thanks for your help
    Tim

    Hi Tim,
    We are facing exactly the same issue with our skin. we tried to copy 'NOVA' into a new custom skin and the three message boxes have disappeared.
    Also we get a warning on UI when we use this new custom skin saying "Communication management software system is not configured".
    Please can you extend help on this one. This is important for us.
    Many Thanks
    Priyanka

  • E mail. I can not send email to a contact from my list. When I hit their email address, the new message box comes up but the send icon is not highlighted and I can not send it. Why? How do I fix it. Happens on both I pad Air 2 and I Phone 5

    WWhen I press the email of a contact, the new message box appears with the address but the send icon is not highlighted. Even after typing a message, I can not send it. This is on both I Phone 5 and I Pad Air 2. this just started and not sure what I did. Help please?

    Read this thread, it's a bug that many are experiencing:
    Cannot send emails from contacts

  • I get this message box when I click on a link (in a document or email)"firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

    if Firefox is already running and click on any link in Word, Excel, Outlook, etc. A message box pops up and I have to hit OK to close it.
    "firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

    if Firefox is already running and click on any link in Word, Excel, Outlook, etc. A message box pops up and I have to hit OK to close it.
    "firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

  • I'm trying to share to Media Browser a 20 minute still slide show with music and text. I have tried several times to save at 1080 HD, but just before it's finished, a message box pops up saying "File already open with write permission."  What's this mean?

    I'm trying to finalize/share to Media Browser a 20 minute still slide show with music and text. I'd like to finalize it 1080 hd and have tried several times, but just before it's finished, a message box pops up saying it can't be done because "File already open with with write permission."  What does this mean?  All files are closed; this iMovie project is the only thing open.  Does it mean one of the song files from iTunes? And should I just settle for saving it as a "large" file, which is what I'm trying right now?
    Thanks,
    Jamie

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    See also this post
    https://discussions.apple.com/thread/4434104?tstart=0
    Yours Bengt W

  • How can i display a message box when error comes in jsp?

    Hi,
    i need to display a message box whenever an error comes in my jsp. Actually my appln is that i am creating a bar chart using one applet by taking data from the database. When a user does not select a number data for y axis, now in the centre of the web page one java error is coming. "not in number format". it is looking very odd.
    so i want to display the error in a message box whenever it comes as above. pls help me how can i do the same...
    Regds,
    Abhi...

    Hi,
    thanx for ur response. so u mean to say that i can
    display the errors in the web page itself instead of
    displaying as a message box?Either way. You can have the JSP send a message to the applet to display a message box. Or you can just have the JSP do it. or you can have the applet detremine if the JSP would produce an error and then display the message it would display.
    >
    actually i am using servlets. jsp pages are used only
    as the front end. all the background works are doing
    in servlet only.It should be the same in any case. Is the applet connecting to the JSP pages or are you having the browser do it?
    >
    pls get back...

  • My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: how to fix this?

    My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: Why is this happening and how do I fix it? (I'm losing battery power precipitously). Thanks in advance for any assistance with this question.

    Thanks Kilted Tim, you solved the problem. I'm mightily impressed at the simplicity of the solution!
    Jaded Kane

  • How to delete all messages in voice mail erased message box

    Is there a way to delete all the messages in my erased message box without going through them one at a time? Empty the trashcan.

    hullabaloo, we appreciate this device info! Should definitely be possible. If you go to your Voicemail Box, you can select Delete>on the bottom right hand corner, the option to choose Delete All should appear. This way you can delete them much quicker.
    NicandroN_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

Maybe you are looking for

  • Pages not loading properly?

    opening up www.trident-gaming.net when i open a thread i get half of my screen black ive tried re installing and installing different versions of firefox

  • Artwork is not embedded into song file

    Artwork downloaded are stored as a seperate file. I dont want that. I want the artwork to be INCLUDED in the song file. fix this. or at least why is this? there is a way around this but its tedious.

  • Program not responding when starting the second time.

    I am currently only using the DASYLab program to find the temperatures recorded by nine different thermocouple wires.  On the Worksheet window, I can run the program once with everything running perfectly.  If I stop the program and restart it again,

  • Select Table row.

    Hi. I need some help! I'm implementing a web dynpro application with a simple table. That table has a row popin to show some more complete information about the table row. I have also a button on that popin and I want to, when that button is pressed,

  • T410 and WiFi problems in Windows 8

    Hi, I have had Windows 8 installed on my T410 since the developer previews without any issues at all. For the last week though, I have been unable to use WiFi (it's turned off). I've found the page with the Windows 8 beta drivers for Lenovo Thinkpads