Jsf with popup window jsf and .xhtml?

hi,
HI,
I am using example at http://www.jsftutorials.net/interface/jsf-popup.html
for popup with jsf using javascript.
In main form when click on button or link, i am opening popup window , and getting values
from popup window to parent window.
Here I need to pass some parameter or value to popup window without refresh the parent.
I know with how to do jsp. but i am looking sample
how to send parameters when we use parent and popup jsf forms with .xhtml.
Thanks
siva

Hi Mainak,
have a look to Thread:
Popup Sizing
As you can see there is not yet a way to set the Popup size.
You have to find the good combination of fields and length in order to get a nice UI.
The WDA engine try to set the best size, help it...
Sergio

Similar Messages

  • Error loading JSF page popup window - Cannot find FacesContext

    Hello,
    I am trying to load a popup window from my Visual Web JSF page. The popup window itself will be a Visual Web JSF page also.
    As an example, i have 2 buttons on my original page with jsp tags as follows::
    <webuijsf:button binding="#{Page1.button1}" id="button1" onClick="window.showModelessDialog('./PopupPage.jsp'); return false;"
    style="left: 19px; top: 16px; position: absolute" text="Button"/>
    <webuijsf:button actionExpression="#{Page1.button2_action}" binding="#{Page1.button2}" id="button2"
    onClick="window.showModelessDialog('./PopupPage.jsp');" style="position: absolute; left: 20px; top: 44px" text="Button"/>
    When i click Button1, the popup window appears but will not load the page within the window. I get the following report in the server log:
    StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.lang.RuntimeException: Cannot find FacesContext
    at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1811)
    at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1628)
    at org.apache.jsp.PopupPage_jsp._jspx_meth_f_view_0(PopupPage_jsp.java from :102)
    at org.apache.jsp.PopupPage_jsp._jspService(PopupPage_jsp.java from :77)
    ETC ETC
    If i click Button2 (which does NOT return false in the onclick Script and thus submits the first page) the first attempt fails with the same error, but if i try a second time the popup window displays and loads the page correctly.
    Any solutions would be greatly appreciated as this is driving me crazy :-s
    Edited by: coxy69 on Jan 9, 2008 10:29 PM

    Cannot find FacesContextThis generally indicates that you invoked a request which points to a JSP page which contains JSF tags, but that the request itself isn't passed through the FacesServlet. Make sure that the request URL is covered by the url-pattern setting of the FacesServlet in the web.xml.

  • I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook.

    I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook. When I attempt to sync in itunes I get a popup message asking if I want to delete, Merge or cancel. Not wanting to delete of cancel the only option left is Merge.
                When selecting Merge all of the entries in outlook are added to the idevice. The next time I merge all of the same entries plus any new ones are added, resulting in older entries being repeated i.e an entry like “John’s Birthday” will appear 5 or 6 times on the same date.
                How do I resolve this issue? How do I get the the sync process to add only new entries?

    This is a great question. First, facetime will not work because it has to establish a Call connection first. iMessage should work, but how to get it going I am not sure. Two great Apps to try are, Viber and Skype. Viber is excellent, it works over WiFi, you can make free calls and free text messages all over the world with other users who have Viber installed. It does not even have to be open on screen to work. Viber does have to recieve one text message with activation code, to activate it, this will be your only hurdle, but maybe Verizon can help you get that one text message. Skype does have to be open on screen however, but this can function like Facetime with WiFi connection. Definitely get Viber free in App Store, and put it on all your iDevices so the old Verizon iPhone can function as a telephone when on WiFi.

  • Whats the current deal with popup windows in flash?

    Hi There,
    whats the current deal with popup windows in flash? I'm
    trying to include popup windows in a site, and with IE7 (or
    whatever the newest version of IE is ..the firefox lookalike) the
    popups are not working at all, I have gone out a gotten other
    sample popup scripts and I encountering the same problem, which is
    the popups aren't working at all?
    Is this a problem with just IE7 or am i completely missing
    out on something here?
    any ideas would be really appreciated! or if anyone has any
    scripts for sizeable popup windows that work on IE7 i would really
    appreciate it. thanks
    :}

    well i have used a couple of different attempts. I have used
    code generated by this:
    http://www.flash-db.com/PopUp/
    on (release) {
    getURL
    ("javascript:NewWindow=window.open('pants.html','newWin','width=200,height=50,left=0,top= 0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
    void(0);");
    I have also tried a couple of other tutorials from
    http://www.kirupa.com
    link;
    http://www.kirupa.com/kirupa.htm'
    and I used the javascript supplied and had no luck (I
    embedded the html etc) ... i have tried about 5 other tutorials and
    I've got to the point where I'm wondering is the problem based
    around by browser, I only using IE7 and have no ther browser. I'm
    using FlashMX 2004. all the example files .fla and swfs i have
    downloaded aren't working either so I'm totaly scartching my head
    at this point...
    any ideas where i'm going wrong here? any help very much
    appreciated
    :}

  • ITunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    iTunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    I'm assuming you followed a forum like Gizmodo to load the latest version of iOS 7 Beta on your device
    Alot of those forums forget to mention, iTunes 11.0.5 will allow you to update to the iOS 7 Beta but your device will no longer work unless you have the developer version of iTunes as well....
    I'd suggest you to research how to downgrade back to 6.1.3/4 and wait a few days for the iOS to be released,

  • Is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

  • ALV Grid with Popup Window

    Hey @all,
    I want to make a ALV Grid with a Popup Window. The idea is that there is a field for notes and when you click on this field a popup window should be opened where you can insert more text or if text already exists only the first column of the text is shown in field until you click on the field.
    Is there any possibility to do it this way? Do I have to make a second Grid for this Popup Window? Do anybody have an example how to solve this problem?
    Thank you in advance for your answers!
    Greetings,
    Alexander

    *& Report  Z_VISHVAS_ALV1
    report  z_vishvas_alv1.
    type-pools: slis.
    data: begin of i_outtab occurs 0.
            include structure sflight.
    data:   w_chk type c.                  "For multiple selection
    data: end of i_outtab.
          I_OUTTAB TYPE SFLIGHT OCCURS 0,
    data: i_private type slis_data_caller_exit,
          i_selfield type slis_selfield,
          w_exit(1) type c.
    parameters: p_title type sy-title.
    start-of-selection.
      select * from sflight into table i_outtab.
      call function 'REUSE_ALV_POPUP_TO_SELECT'
           exporting
                i_title                 = p_title
                i_selection             = 'X'
                i_zebra                 = 'X'
              I_SCREEN_START_COLUMN   = 0
              I_SCREEN_START_LINE     = 0
              I_SCREEN_END_COLUMN     = 0
              I_SCREEN_END_LINE       = 0
                i_checkbox_fieldname    = 'W_CHK'
              I_LINEMARK_FIELDNAME    =
              I_SCROLL_TO_SEL_LINE    = 'X'
                i_tabname               = 'I_OUTTAB'
                i_structure_name        = 'SFLIGHT'
              IT_FIELDCAT             =
              IT_EXCLUDING            =
              I_CALLBACK_PROGRAM      =
              I_CALLBACK_USER_COMMAND =
               IS_PRIVATE             = I_PRIVATE
         importing
                es_selfield             = i_selfield
                e_exit                  = w_exit
           tables
                t_outtab                = i_outtab
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
       MESSAGE i000(0k) WITH sy-subrc.
      endif.
    *****the internal table is modified with a cross sign for marking the
    ***rows selected
      loop at i_outtab where w_chk = 'X'.
        write: /  i_outtab-carrid, i_outtab-price.
      endloop.

  • Problem with Popup window in BDC

    Hi Gurus,
    I have an SHDB record for transaction VA01 that is called by an ABAP code via "CALL TRANSACTION 'VA01' USING bdc_tab mode 'N' update 'S'".
    It does work when I use the 'A' mode, but when I use 'N' mode it shows an error that can't find a window. But this window is a modal popup asking for copy the taxes for all entries in ITEM TAB.
    We have many BDC here that works in 'N' mode, but none of them have modal popup windows.
    I've already searched for this problem in SDN but I couldn't find any answer.
    May anyone help me please?
    Thanks very much.
    Fabio Purcino

    I am trying to do this with ME15.
       1                                               T ME15 BS AA X   F
       2 SAPMM06I 0100 X                                                                                                                                                                                                                                                                         
       3                                                 BDC_CURSOR EINA-INFNR
       4                                                 BDC_OKCODE /00
       5                                                 EINA-LIFNR 0001100619
       6                                                 EINA-MATNR 93-0450C
       7                                                 EINE-EKORG 2000
       8                                                 EINE-WERKS 2000
       9                                                 EINA-INFNR 5300032946
      10                                                 RM06I-NORMB X
      11 SAPMM06I 0104 X                                                                                                                                                                                                                                                                         
      12                                                 BDC_CURSOR EINE-LOEKZ
      13                                                 BDC_OKCODE /00
      14                                                 EINA-LOEKZ X
      15                                                 EINE-LOEKZ X
      16 SAPLSPO1 0100 X                                                                                                                                                                                                                                                                         
      17                                                 BDC_OKCODE =YES
    it then keeps the last popup and I cannot stop that...
        PERFORM BDC_DYNPRO      USING 'SAPLSP01' '0100'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'SPOP-OPTION1'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                       '/00'.              "1432 7/22/2014
    *                                   '=ENTR'.              "1357 7/22/2014
    *                                  '=YES'.               "1356 7/22/2014

  • Need help with popup windows

    Hi,
    (I don't know if this is where I should post this, so if somewhere else is more appropriate, please let me know)
    I'm building a window (might say a popup window). What I need it to do is this. I'm working in the gui. When the user clicks the button "load", it launches this window. In this window, the user selects what they want to load. They can select their option and click load, they can double-click on their option, or they can click "cancel". When any of these three happen (and only then), I want this window to return a value of "long" in accordance with what they selected. (What it returns doesn't really matter). So, basically, it will work almost the same a JOptionPane. (However, I don't want to use JOptionPane).
    However, I can't figure out how to do this. In JOptionPane, the window pops up and doesn't return anything until the user clicks one of the buttons. How can I make it so it won't return anything until the user does one of the three choices I listed above.
    I tried to use wait() and notify() but that didn't work either. (I don't know how to use them). Anyway, I don't know that that's the best way.
    I looked at the source code for JOptionPane and tried to track down how it does it, but I couldn't narrow it down.
    Could anyone please help me?
    (If I need to explain better, let me know).
    Thanks,
    Daniel Lorimer

    Yeah, I converted mine from using JFrame to JDialog and it does what it's supposed to. I didn't realize that JDialog has basically all the same features as JFrame. So, I guess I'll use JDialog for this one.
    However, I was hoping that the solution that I got would work for everything -- Which I don't think it will. JDialog is more like a popup window (which is fine), and JFrame is more like a main window. I want to figure out how to do in JFrame what JDialog does with setModal(). (I think I tracked it down to Dialog.show() -- however, it didn't work when I tried to implement it on my own.)
    Do you know, is there already something like this (for JFrame), or would I have do it on my own?
    Thanks,
    Daniel Lorimer

  • I recently tried to upgrade my itunes on my dell laptop with 64bit Windows 7 and it stopped working completely. So I tried deleting and installing all over again and haven't been able to reinstall it since. I've tried numerous things i've read in forums

    I recently tried to upgrade my itunes on my dell laptop with 64 bit windows 7. It stopped working so I deleted all files and tried to reinstall and haven't been able to since. I've tried numerous things i've read in forums and nothing seems to work. The installation will not move past the "publishing product information" point. After being stuck there for a while this error message appears:
    An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.4053",type="win32",publicKeyToken="1fc8b 3b9a1e18e3b",process or Architecture="x86"', Please refer to Help and Support for more information. HRESULT: 0x800736FD
    I hope someone is able to help me with this.

    Did you already try what bnoir suggested in this post about error 0x800736FD:
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 800736FD, or some other number? (If they're another number, what number are you getting?
    This thread might help as well, suggestion provided by bnoir:
    In general, these ones tend to be caused by underlying problems on the PC that can prevent Windows Updates from installing. So my main strategy with them is to try to fix the Windows Update issues. If we can get Windows Updates flowing again, that generally clears up the iTunes install errors +en passant.+
    Head into your Windows Update, and check for any new updates. Do any fail? If so, open your Update History and doubleclick on the failure entries to bring up a small box with alphanumeric error message codes. Are you getting 8000FFFFs? (They often seem to be associated with an iTunes-install 0x800736FD.)
    If you're getting 8000FFFFs, try the following Microsoft document:
    [Windows Update Error 8000FFFF|http://windows.microsoft.com/en-US/windows-vista/Windows-Update-Error- 8000FFFF]
    Head back to Windows Update, and stock up on any updates you're behind on. Once you're completely up to date in that regard, try another iTunes install. Does it go through properly this time?
    Message was edited by: Ingo2711

  • Popup window height and width is not as expected

    Hi I am using this peace of code to create a popup. But this popup is not created with
    the specified height and width. It is created with a default size. Please tell me how to
    rectify the problem?
    data:
        l_api_main            type ref to if_wd_view_controller,
        l_cmp_api             type ref to if_wd_component,
        l_window_manager      type ref to if_wd_window_manager,
        l_popup               type ref to if_wd_window.
      l_api_main = wd_this->wd_get_api( ).
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      data: l_i_question type STRING_TABLE,
            l_wa_question type string.
      l_wa_question =  'Issue no. xxxxxxxxxxx created succcessfully. '.
      append l_wa_question to l_i_question.
      l_window_manager = l_cmp_api->get_window_manager( ).
      l_popup = l_window_manager->create_popup_to_confirm(
                  text                   = l_i_question
                  button_kind            = '1'
                  message_type           = '1'
                 close_button           =
                  window_title           = 'Information'
                  window_width           = '500'
                  window_height          =  '500'
    l_popup->open( ).

    Hi Mainak,
    have a look to Thread:
    Popup Sizing
    As you can see there is not yet a way to set the Popup size.
    You have to find the good combination of fields and length in order to get a nice UI.
    The WDA engine try to set the best size, help it...
    Sergio

  • How can I triple boot with OSX, Windows XP, and Windows 7 RC?

    Here's the short story:
    I have OS X 10.5 and Windows XP on an internal drive.
    My goal is to install the Windows 7 RC on a bootable external drive connected through eSATA
    Currently:
    I used Winclone to copy my XP partition (with a different-looking desktop) onto the external drive to test if I could boot from it. Seems the EFI boot sequence recognizes the external copy in any case. Picture here: [http://img171.imageshack.us/i/library5991.jpg> (ignore the backup hard drive)
    When I select the Windows icon on the left, it boots the internal drive partition. However, when I select the icon on the right, it also boots the internal partition.
    Is there any way I can manipulate the BIOS emulation to chose between the two drives? Would clearing the internal Windows partition let it default to the external one? Would just installing Windows 7 RC resolve the issue?

    Hi KWarp,
    here a guide on how-to triple boot OSX, XP and Vista http://guides.macrumors.com/Triple_Boot
    Replacing Vista with Windows 7 should be no difference.
    To my knowledge Windows can not be booted from an external harddisk and I don't think that Microsoft has changed that with Windows 7 (although I like to be wrong on that ).
    Intel-Macs don't have a BIOS but use its successor EFI.
    Tools for 'fumbling' with EFI are restricted to Apple Technicians.
    Regards
    Stefan

  • Help with calling windows executable and hiding it using java

    Hi,
    I have a small utility which calls sqlplus from java , which basically executes a sql file .
    Process sqlProcess = runtime.exec(command);
    Where command is string and has all the required parameters.
    (sqlplus_exe , username_password_sid , sql-file_to_execute_path)
    This works fine but it pops up a sql plus window on screen which kindof the user has control .
    Like the user can close that sqlplus window before the script gets executed completely.
    I want that window to be hidden so that user doesn't have any control on the window and can't interfere with the sql execution.
    So thoght about windows api , ShellExecute where you can provide a parameter to hide the window.
    Details are in below
    [http://support.microsoft.com/kb/224816]
    Now the options I have considered to call ShellExecute are JNI / JNA / Smooth
    I am using eclipse hellios on winxp
    JNI
    I Got the code from some website which has all the required files from here [http://www.heimetli.ch/shellexec.html]
    But I am not able to run the code .
    It says Exception in thread "main" java.lang.UnsatisfiedLinkError: no HSWShellExec in java.library.path
    which I am not able to resolve .
    Even I had put the dll and .h file in the JAVA Build Path> Library section.
    JNA
    looks very simple .But I don't know which library to load and call which funtion :(
    JSMOOTH
    It always gives jsmooth.Native.isAvailable() as false.
    And I dont know how to make it true
    And also thinks that it works the other way around i.e. Jsmooth loads the JVM .Don't know if it can be called from within jvm
    So there I am stuck .
    Any suggestions guys.
    Any example code would be great.
    Thanks in advance.
    Edited by: Rajinder_Sandhu on Jul 14, 2010 7:58 AM

    I got it working with JNI and the sample code from the website
    The whole matter was get the path correctly setup in eclipse.
    The solution is posted here.
    [http://www.eclipsezone.com/eclipse/forums/t49342.html]

  • Same CAS Array Exchange 2010 (HLB), with OS Windows 2008R2 and Windows 2012.

    Hello,
    We have a 10 node DAG (Exchange 2010 SP3, Windows 2008 R2), with 2 CasArray.
    We are planning to add news (multirole) servers and create a new DAG (Exchange 2010 SP3, Windows 2012) in this infra, in the same AD site, to migrate all mailbox from the other DAG (Migration from virtual servers to physical servers).
    So we use the same CasArray (HLB, with F5) with différent OS version, during the migration time (1 month or more). I haven't found anything that say it's not supported or can be problematic.
    Have you feedback or advice?
    Thanks,
    Sébastien

    Hi,
    Based on my knowledge, there is no need to deploy a CAS array with CAS servers running on the same Window version. The version can be different.
    After a Client Access server array is defined within an Active Directory site, all Client Access servers within that Active Directory site are automatically part of the Client Access server array.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Customizing Popup Windows - 'close' and 'minimize' buttons

    I am using RoboHelp 7, and while using 'Insert Image Map', I have successfully created and linked pop up windows. The code shows something as: javascript:BSSCPopup('add_order.htm',300,250). At present, it opens up on mouse click (I used <a href...></a> and it disappears on mouse click outside it, with of course drag or resize as required.
    However, how I can customize the pop up window such as adding the toolbar, or ability to 'minimize' or 'close' it, when required (the default _ and x hat we have in UI screens?  I want the control to close or minimize the pop up to remain with the user,
    Thanks
    Niti

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also try a different Windows theme to see if there is one that works better.

Maybe you are looking for