Hw to create dialogue box in jsf

hii guys...
i want ot create a dialogue box in jsf.. when a button is pressed a dialogue box is to be appeared.. it can be done with the java script but i have to do it in jsf... can any one help me?...
thanx...
jasar
Message was edited by:
jasar

hello BalusC..
thanx for ur reply... yea JS is not sufficiant b'coz i have to set the text from the backing bean...
Which is the "standard" JSF component which prints all the JS to the outputstream itself?
thax
jasar
Message was edited by:
jasar

Similar Messages

  • Create Dialogue box as windows

    Hello
    I want to create windows dialogue box from developer6i.would u please help me.
    Thanks
    harry

    set the window style property to 'dialog'.

  • Can anyone help me create a relink script to simply open up the relink dialogue box?

    Can anyone help me create a relink script to simply open up the relink dialogue box?

    the "Relink" command uses the same dialog as the "Place" command, with the exception of having the "Replace" option checked...so, use Ctrl+Shift+P to bring up the Place dialog, select your new image then check the "Replace" check box.
    if checking "Replace" with the mouse slows you down, after selecting your image, press "tab" key 3 times to switch focus to it, then press space bar to check it, then ok to place.

  • Creating Save As .pdf workflows to be used in the Print dialogue box

    Hi all,
    I am new to Automator, and am trying to work out how to set up workflows to print/save documents, especially emails, as .pdf in a range of different folders.
    For example, I am using Thunderbird for email and when I got to the Print dialogue box, I get the PDF drop-down menu at the bottom left. When I bring up this menu, one of the options is 'Save PDF to Web Receipts folder'.
    However, I would like to add a few more folders to speed up the process of saving emails to different places. I have tried the Edit option, and tried in Automator but cannot set up a similar workflow to create more 'Save PDF to...' options.
    Can anyone give me some tips on how to do this.
    Thanks,
    Daniel.

    Hi Dan!
    In Automator help we read:
    Print Workflow plug-in
    These workflows perform actions on files that have been saved as PDFs. They can be chosen from the PDF pop-up in the Print dialog. The file is first saved as a PDF formatted file, then the path to the PDF is passed to the first action of the workflow.
    So this means your workflow could consist of just one action: Move Finder Items. I set this up with the To: field set to my desktop, and then selected Save As Plug-in from the File menu, gave it a name, and selected Print Workflow from the drop-down box. That's it! When I went to go print something, the workflow showed up in the menu automatically. (:

  • Creating a print dialogue box with options

    Hi there,
    I'm struggling with an issue of usability.
    I have a complex form which increases in size when the user enters more text  - many pages where there are info boxes of text that are hidden when printing - this has a knock on effect that page numbers on screen don't match page numbers when printing.
    I got help from Radzmar (thank you!) who gave me the code for a print button that prints a section rather than a page number span; so when the user clicks the button:
    var vObj = xfa.resolveNode("form1.summary"),
      vPageStart = xfa.layout.absPage(vObj),
      vPageEnd = vPageStart + xfa.layout.absPageSpan(vObj) - 1;
    xfa.host.print(1, vPageStart.toString(), vPageEnd.toString(), 0, 0, 0, 0, 0);
    ...the form will print the contents from my section 'form1.summary'
    However, thinking about usability, it would make sense to have a button that opened a dialogue box which gave the user immediate options. At any one time there would be three options:
    1. To print just the page they are looking at
    2. To print the section they are on
    3. To print the entire document
    In plain english the dialogue box should say something like:
    Title: Printing Options
    Message: 'You have several options for printing'
    Button One text: 'Print this page only'
    Button two text: 'Print this section only (name of section goes here, such as 'Core Data', 'Assessment' etc.)
    Button three text: 'Print the entire document'
    Button four: Cancel
    I'm new to scripting and using the script editor doesn't give me enough options to edit a message box so I'm wondering if someone could help please.
    I should also mention that the end product here is a pdf form which needs to work through acrobat reader without necessarily being online.
    Many thanks,
    Sunil

    Firefox 3.0 and earlier versions had a preference '''print.use_native_print_dialog ; true''' which could be toggled to '''''false''''', but with Firefox 3.5 it was removed. When that pref was set to false the "print" command went directly to the printer, without the appearance of the dialog box.
    It is possible to show a "printer-ready" window, because I see them frequently at many websites, so your developer needs to study up on how to display a "printer-ready" page and not trigger the appearance of the "native print dialog" box. Unfortunately, Firefox users no longer have control over the appearance of that dialog from within Firefox.

  • Removing the "Security Warning" dialogue box on default when a PDF is opened

    Hey
    I have created a pdf document with a specific data written using iText Libraries. I have actually created a beacon that generates a notification sent to the owner's email when the pdf is opened.
    The code is under OpenAction. The problem I am facing is that as I open the document, a dialogue box is opened saying "Security Warning" The document is trying to connect to : URL. How do I get rid of this dialogue box. ? I don't want this dialogue box to appear and allow the connection by default. I have tried playing with the Trust Manager - but that doesn't seem to be the solution, as  am trying to execute my PDF document at a remote machine.

    There was a lot of media fuss years back when it was found out that PDF files could "phone home", i.e. do what you want to do. So Adobe put this warning in. It wouldn't be much good as a warning if the creator of a PDF could choose to turn it off!
    Document creators like to track people opening documents. Privacy advocates consider this a breach of privacy. The latter group shouts louder. http://en.wikipedia.org/wiki/Phoning_home

  • Custom Keyboard Shortcuts Not Working In Layer Style / Blending Options Dialogue Box (Mac OS 10.6.8)

    In the Layer Style / Blending Options dialogue box, my custom Keyboard Shortcuts to zoom in and out of the image is no longer working. Cmd+opt+shift+1 acts as cmd+1 (jumps to Drop Shadow), and cmd+opt+shift+0 acts as cmd+0 (jumps to Stroke). Outside of this box the commands seem to be working fine.
    Example 1: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+1.
    Result 1: The dialogue box shift focus to the Drop Shadow Options instead of the image zooming in to 100%.
    Expected Result 1: The image should zoom to 100%.
    Example 2: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+0.
    Result 2: The dialogue box shift focus to the Stroke Options instead of the image zooming to “Fit on Screen”.
    Expected Result 2: The image should zoom to “Fit on Screen”.
    This same thing happened in the CS5 Beta, and it was quickly fixed, so I hope this is not a complicated issue.
    Thanks, and keep up the wonderful work!
    Jacob
    Mac OS X 10.6.8 on a 3.33, 6-Core MacPro5,1 with 16GB RAM w/ separate Scratch Disks & ATI Radeon HD 5870

    Hi,
    If you are experiencing issues with Software Update you could try the Combo Update:
    http://support.apple.com/kb/DL1399
    Cheers,

  • Open and Save dialogue boxes are useless

    I have recently moved from Windows to Mac after being told I would never look back and I am already 'looking back' somewhat in terms of the OS. I work with photos and graphics and I'm on the move a lot so went for a Mac Book Pro Retina with SSD and I am not going to lie it is lightning quick and the display is beautiful. But when it comes to saving and opening workflow it does not work how I expected it would.
    It seems such a simple thing but you cannot rename files from within mac open and save dialogue boxes. I'm so used to right clicking on a PC to create a new folder, hit F2 or right click and hit rename to rename to what I want then save the file into that new folder. You can also directly edit the name of the files and folders from within the open save dialogue box. If you right click on a mac you can create a new folder but it defaults to the name 'untitled folder' and you then can't change it's name. It find it unbelievable that you can not do this on a MacOS! So unbelievable that I went into an Apple store and spoke with someone there. When I showed them the problem they weren't even aware of it and pointed out I should just use finder. But that is not convenient if if you want to rename a new folder to then have to come out of the open save relocate in finder and change from there.
    I know there is the new folder button down to the left hand side and you can rename the folder as soon as you create it using that but sometimes you may make a mistake and want to change it. Same with file names.
    Why can't you do this on a Mac? It's crazy. After searching about, I came across the Default Folder X app which appears to fix this issue which isn't really that cheap for something I consider should be 100% native in any OS.
    There are other issues that frustrate me from moving over from Windows to Mac (like the ability to snap windows to screen edges, Better Snap Tool fixed that for me at a much more reasonable price but still would have expected this to be native), which I know I will just have to get used to but this one really surprised me.
    Considering I was promised so much in terms of better efficiency with work flow and ease of use overall there is still a lot that's left to be desired.

    As Axeman1020 noted, the Mac OS is not Windows. Things are not going to be exactly the same. It's no different than if you went from Windows to Linux. So expect a month or so of getting used to a different OS. Once muscle memory gets used to the different keyboard commands, and just where things are in general and how they behave, it'll seem just as easy as Windows.
    To answer some of your statements or questions:
    It seems such a simple thing but you cannot rename files from within mac open and save dialogue boxes.
    Renaming items in the Open or Save dialogue boxes are not what those are for. I know Windows allows it, but why? That's a function for the desktop so you can't accidentally change a file or folder name in a dialogue box that has nothing to do with opening a file or saving one. If opening a file, that's all you're doing. If saving, only the name of the file you're saving can be modified. That's what those dialogue boxes are for - nothing else.
    Yes, you can give a file you're saving any name you like. You can even click on any name shown in the save dialogue box to give it that name if you want. You can also highlight the default name and change it.
    If you right click on a mac you can create a new folder but it defaults to the name 'untitled folder' and you then can't change it's name.
    Of course you can. Either highlight the folder and press Enter, or slowly click on the name twice. Either action will make the name editable.
    When I showed them the problem they weren't even aware of it and pointed out I should just use Finder. But that is not convenient if you want to rename a new folder to then have to come out of the open save relocate in finder and change from there.
    You're crossing over two different things. I believe you mean renaming a folder from the Save dialogue box. When you click the New Folder button, you have the opportunity to give the new folder any name you want before clicking Create.
    If you type the wrong name, then yes, you have to finish the save before you can rename the folder. So either be sure you type the name in correctly before clicking Create, or change the misspelling afterwards. You're not saving any time fixing a typo within the Open dialogue box. It will take the same amount of extra time to do it there as opposed to fixing it on the desktop after you complete the save.
    I know there is the new folder button down to the left hand side and you can rename the folder as soon as you create it using that but sometimes you may make a mistake and want to change it. Same with file names.
    You are again trying to force a Windows feature into an OS that is not Windows. The Mac does some things that I wish Windows could do, and visa versa. However, you can't force any OS to do something it simply isn't designed to do. Expecting it to change by sheer willpower is only going to drive you crazy. You need to let go of what you want the OS to do as opposed to what it will do.
    Considering I was promised so much in terms of better efficiency with work flow and ease of use overall there is still a lot that's left to be desired.
    I find the Mac OS to be incredibly efficient. This from a person who has used Windows for many more years overall than the Mac OS. Yes, it took time to get used to how the Mac OS behaved. But rather than fighting it (which is pointless), I simply took the time to learn how to use it as it's designed.

  • Avoid Printer selection Dialogue box when printing Crystal report in JAVA

    Hi i am calling crystal report in my servlet using Report Client Document SDK, now i want to print the report directly to the default printer set without selecting the printer from the select printer dialogue box. In other words want to avoid the select printer dialogue box from appearing . Can any body suggest me how do i do this .
    Any suggestions appreciated.

    In javascripting the code is
    function Print()
    if (document.all)
    WebBrowser1.ExecWB(6, -1) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
    WebBrowser1.outerHTML = "";
    <object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
    CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    But the above code does not work in windows XP SP2.... and i cannot restrict my clients OS.
    where as C#,ASP.NET  provides the functionality to print directly to printer as
    The ReportDocument class provides PrintToPrinter method that may be used to print a CR direct to the printer. If no printer is selected, the default printer will be used to send the printing pages to.
    The PrintToPrinter method takes four parameters.
    nCopies : Indicates the number of copies to print.
    collated : Indicates whether to collate the pages.
    startPageN : Indicates the first page to print.
    endPageN : Indicates the last page to print.
    The following steps will guide you to achieve the same:
    Add crystal report (.cr) file to your ASP.NET application.
    Add a report instance on the page level.
    Dim report As MyReport = New MyReport
    Populate reports data on Page_Init 
      ' Get data in a DataSet or DataTable
            Dim ds As DataSet = GetData()
            ' Fill report with the data
         report.SetDataSource(ds)
    Print Report
    report.PrintToPrinter(1, False, 0, 0)
    If you wish to print certain page range, change last two parameters From to To page number.
    If you want to set page margins, you need to create a PageMargin object and set PrintOptions of the ReportDocument.
    The following code sets page margins and printer name:
    Dim margins As PageMargins =  Report.PrintOptions.PageMargins
       margins.bottomMargin = 200
       margins.leftMargin = 200
       margins.rightMargin = 50
       margins.topMargin = 100
       Report.PrintOptions.ApplyPageMargins(margins)
       ' Select the printer name
       Report.PrintOptions.PrinterName = printerName
    Thn Why not a java SDK for Crystal report can provide such a functionality...
    Edited by: rtabassum on Mar 25, 2010 6:34 AM
    Edited by: rtabassum on Mar 25, 2010 6:36 AM
    Edited by: rtabassum on Mar 25, 2010 6:42 AM

  • Dynamically populate pdf File name in 'Save As' dialogue box

    We have  rendered a pdf using adobe webservice.
    Once the pdf is generated , and we click on saveAs menu dialogue box opens and default name is populated in fileName field.
    Can it be possible to populate that name dynamically ? We tried using response.addheader() but it didnt work.
    Note : We are using java to create xml which we are passing to adobe webservice.

    Hi Jaynet,
    In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
    The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
    html format (but with the .xls
    extension). 
    (I actually prefer the .xls
    extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
    for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
    To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
    In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
    I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
    However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
    Any help is greatly appreciated.
    Thanks

  • How to get Open/Save Dialogue box

    Hi,
    I need to get open/save dialogue box while downloading a file (from JSP).
    One way which I am currently using is on click of the button pass control to servlet and in servlet using the following code:
    /**.....Some Code */
    response.setContentType("application/csv");
    response.setHeader("Content-Disposition", "attachment; filename=" + filename);
    /**.....Some Code */But I am wondering is there any way I can do the same without passing the control to Servlet? On clicking the button in JSP, is there is any possibilty to get the Open/Save dialogue box directly.
    Thanks
    Arun

    without passing the control to Servlet?Why?
    In HTTP you can send the response only once.The application where i have this requirement is an old one. In the application, I have there are some screens, whose control never goes to Servlet.
    TO be more precise, 2 pages one HTML and another JSP. And the file to be downloaded is created when JSP is called from HTML page. And there is no interaction with Servlet. The JSP inturn calls a method in Java file (which is not a Servlet) and gets all the details including the file to be downloaded.
    I have used window.open() to download the file(in JSP) in order to have Open/Save dialogue box.
    But the approach is working fine in Windows XP systems but not in Windows2000. In Win00 machines it is directly opening the file in popup without giving the user any option for Open/Save.
    Please let me know your suggestion on this.
    Thanks

  • Has anyone experienced text going missing after using Change All in the Find Font dialogue box?

    I manage an artwork production studio and two members of staff have separately reported that when using the Change All command to substitute fonts in InDesign's Find Font dialogue box, some text disappears from their documents. All affected text is originally set in the same font, and most of the conversion is fine but a few instances of text are actually removed (not reflowed). In the latest reported case, only four or five instances of text were 'deleted' across two pages of a 20pp document.
    I've found a link that refers to the same issue but it's unresolved (http://www.listsearch.com/InDesign/Thread/index.lasso?20041#last)
    I haven't been able to replicate this behaviour but would be interested to know if anyone else has experienced it and if so, under what circumstances it can occur, and what work-rounds or fixes are available.
    Applies to InDesign CS3 and CS4, have not tested with CS5 because we haven't upgraded yet.

    Joel, I am having the same problem you described. I have read of similar posts on PrintPlanet.com. Someone there thought it was a different text engine or something in CS4 which may be causing the problem.
    I don't know what causes this but I believe it can be traced to a previously created file in CS3 is saved as a CS4 document.
    The fonts associated with this problem for me are always Gill Sans, Palatino and some form of Helvetica. There may be others but these are the ones we notice the most.
    Today I worked on an InDesign CS4 file. When I opened it I was given a missing font warning. I went to Find Font and it was different typefaces of Gill Sans that was missing. When I changed the missing font to Gill Sans Regular entire lines of text disappeared. I closed the document without saving it and reopened it. I did the same thing in replacing fonts. This time no text disappeared. Not reflowed; not white; not hidden—gone.
    This is what I have been seeing for the past few months. The disappearing text is random and cannot be duplicated, though fonts may disappear in some other place. You never know where text will just disappear.
    The workaround I have found is to export your file to an INX document and reopen it in CS3. You have to replace all missing text before saving it as INX, though. To my knowledge CS3 has never had this happen.
    The workaround, though it works for me, is annoying. I'd like to know what to do to resolve this issue. What's the use in having CS4 if you can't trust it completely.
    I use a Mac running 10.6.3. I also have running Suitcase Fusion 2.

  • Is it possible to control/save where a dialogue box appears on screen?

    I'm using a Mac, OS 10.9, Acrobat 10.1.8, dual monitors (laptop screen and an external monitor)
    I have to do a lot of scanning to PDF and then separating and creating carefully named files. So I open the doc, select the pages, export them out and do a Save As - is there a way to position and lock this Save As dialogue box?
    It always appears in the center of the screen - which happens to be where the document has the info that I need to name this new file. So I have to move the Save As box and then type the file name. I want to skip needing to use the mouse and moving this.
    Seemed like on the PC when I was doing this same thing, I could "train" the dialogue box to appear on the opposite screen. Or it would appear in the same place that I'd closed it before (off to the side somewhere). 
    Opposite screen, stuck to the top of the same screen - some place other than where it's appearing right now. Anyone know if this is an option? Either within Acrobat or within the OS itself?
    Thanks much! 

    Ben,
    Yes, it is easily possible. I have personally used Matrix Orbital serial LCD displays and QSI serial LCD displays. QSI also offers touch screen modules (I experimented with one very briefly). For information on a QSI Display with touchpad, see the following link:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/afec7c774f0edb3d86256c1a006728de?OpenDocument
    QSI (www.qsicorp.com) also offers other types of displays that have been successfully used with FP-RT controllers. There should be other LabVIEW drivers available from their web site for some of their other displays.
    Regards,
    Aaron

  • How to an on screen dialogue box?

    How to an on screen dialogue box?

    without passing the control to Servlet?Why?
    In HTTP you can send the response only once.The application where i have this requirement is an old one. In the application, I have there are some screens, whose control never goes to Servlet.
    TO be more precise, 2 pages one HTML and another JSP. And the file to be downloaded is created when JSP is called from HTML page. And there is no interaction with Servlet. The JSP inturn calls a method in Java file (which is not a Servlet) and gets all the details including the file to be downloaded.
    I have used window.open() to download the file(in JSP) in order to have Open/Save dialogue box.
    But the approach is working fine in Windows XP systems but not in Windows2000. In Win00 machines it is directly opening the file in popup without giving the user any option for Open/Save.
    Please let me know your suggestion on this.
    Thanks

  • Open save dialogue box wehn run servlet program

    hi,
    i m having one servlet file(Write_File.java).. in this prog i retrive some data form one table and write into one file(c:\\write.be).. its automatically stored tat file in server machine.. now what my issue is when i run Write_File.java, it sholud have to shows save dialogue box..
    file name : Write_File.java
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class Write_File extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
              PrintWriter out = response.getWriter();
              //boolean header = true;
    FileOutputStream fos = new FileOutputStream("c:\\write.be");
              try
                   Class.forName("com.mysql.jdbc.Driver");
                   Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/cha_db","root","user");
                   Statement stat = con.createStatement();
                   ResultSet rs = stat.executeQuery("Select * from acc_ledger");
                   ResultSetMetaData rs_meta = rs.getMetaData();
                        out.println(rs_meta.getColumnName(1)+"\t"+rs_meta.getColumnName(2));
                        fos.write((rs_meta.getColumnName(1)+"\t\t"+rs_meta.getColumnName(2)+"\r\n").getBytes());
                        fos.write(("--------------\t\t--------------\r\n").getBytes());
                   while(rs.next())
                        fos.write((rs.getString(2)+"\t\t"+rs.getString(3)+"\r\n").getBytes());
                   fos.write(("========\t\t========\r\n").getBytes());               
              catch(Exception e)
                   out.println(e);
              fos.flush();
              fos.close();
    pls solve this problem
    by
    senthilkumar
    thnks in advance
    Edited by: vishruta on Nov 16, 2007 3:02 AM

    without passing the control to Servlet?Why?
    In HTTP you can send the response only once.The application where i have this requirement is an old one. In the application, I have there are some screens, whose control never goes to Servlet.
    TO be more precise, 2 pages one HTML and another JSP. And the file to be downloaded is created when JSP is called from HTML page. And there is no interaction with Servlet. The JSP inturn calls a method in Java file (which is not a Servlet) and gets all the details including the file to be downloaded.
    I have used window.open() to download the file(in JSP) in order to have Open/Save dialogue box.
    But the approach is working fine in Windows XP systems but not in Windows2000. In Win00 machines it is directly opening the file in popup without giving the user any option for Open/Save.
    Please let me know your suggestion on this.
    Thanks

Maybe you are looking for

  • How do I change export settings in Compressor 4?

    In the old compressor, I could export a movie and choose all my own settings pertaining to size, quality, streaming or not, keyframe rate, data rate, compression type, aspect ratio, etc..., same was true of the old Final Cut.  So in making FCP X, the

  • Should I continue using the old battery? Even though I got a new ONE?

    The apple guy have just delivered my new PB 12" battery; I am however thinking of keeping / or not using it for the meantine since I am not using my PB on mobile. I mean, there is no need to unplug it from the power source; The old battery still char

  • Location of Oracle 11g R1 kits?

    Hi My team needs to do some testing with Oracle Database 11g R1 (we can't go to R2 just yet).  I can't seem to find the kits.  Where should I be looking? Thanks tl

  • Process Flow Execution via PL-SQL

    Hi Experts, I am trying to execute the Process Flow, however i am unable to execute it via pl-sql method. I followed the method as described in the below link: http://docs.oracle.com/cd/B31080_01/doc/owb.102/b28225/api_4sqlforjobs.htm#BABBHEHI Exampl

  • Customizing/recreating the Accordion widget in Muse

    I want to use the accordion widget, but I can't figure out how to flip it to work horizontally. Is there a way to flip or rotate in Muse? If not is there way to recreate an accordion menu that opens horizontally? Thanks.