How can I make the popup with empty fileds and create new record?

I would like to use a popup to create new record.
I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
How can I make the popup with empty fileds and create new record by saving the popup?
Thanks

You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
resetBindingValue("#{bindings.<componentid>.inputValue}", null);
    public static void resetBindingValue(String expression, Object newValue) {
        FacesContext ctx = FacesContext.getCurrentInstance();
        Application app = ctx.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = ctx.getELContext();
        ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
        Class bindClass = valueExp.getType(elContext);
        valueExp.setValue(elContext,newValue);
    }

Similar Messages

  • How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny?

    How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny in Firefox? I tried some suggestions that dealt with entering "about:config" in a fresh browser, but to no avail. I also downloaded an add-on called "Theme Font & Size Changer", but that didn't work either. So, I am reaching out here as that was a suggestion that another user here offered.

    Ah, yes- that is an ultra high DPI (dots per inch) display. This is a known issue in Flash Player, which Adobe is working on fixing.
    In the mean time, you can get some videos to have normal-sized controls by switching Youtube to the HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click the "Request the HTML5 player" button.

  • We had to change the feed adress and the epsiode adresses. Now all the episodes of my podcast are downloaded (although i have downloaded them already). How can I make the changes in my feed and avoid that all the episodes are reloaded?

    Hello,
    We had to change the feed adress (<itunes:new-feed-url>)and the epsiode adresses in the feed because the feed and the episode-files are on a new server. Now when i open my iTunes subscription of our podcast all the episodes of my podcast are downloaded again (although i have downloaded them already).
    My Question therefore is: How can I make the changes in my feed and avoid that all the episodes are reloaded?
    Maybe have an answer?
    Thank you very much.

    Thank you very much for your answer
    As I see now, our 'guid' tags contain the episode URLs
    To avoid this problem in the future i would like to change guid tags. Can you please tell me how a guid tag should look like if it is not the URL?
    Thank you for helping us!
    ps now it looks like this eg:
    <guid isPermaLink="false">http://www.castyourart.com/podcasts/213_thinkglobal_en.mp4</guid>

  • How can i make the popup window have scroll bar when the content is long?

    Hi,
    My page have a button, when click it, it will show a popup window, and invoke a taskflow.
    <af:commandToolbarButton text="edit"
                                             icon="#{sdk_EmImageMap.toolbar.editCommand.icon[true]}"
                                             disabledIcon="#{sdk_EmImageMap.toolbar.editCommand.icon[false]}"
                                             id="edit"
                                             binding="#{pageFlowScope.procBean.editBtn}"
                                             action="dialog:edit" immediate="true"
                                             partialSubmit="true" useWindow="true"
                                             windowEmbedStyle="inlineDocument"
                                             windowHeight="400" windowWidth="750">
    And the page in the taskflow is :
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
       <jsp:directive.page contentType="text/html;charset=UTF-8"/>
       <f:view>
          <af:document title="#{pageFlowScope.procStepEditor.pageTitle}"
                       id="document">
             <af:form id="f1">
                <af:panelStretchLayout id="pgl1" topHeight="10%">
                   <f:facet name="top"/>
                   <f:facet name="center">
                      <af:panelStretchLayout id="psl1">
                         <f:facet name="center">
                            <af:panelGridLayout id="pgl3">
                               <af:gridRow marginTop="5px" height="auto" id="gr1">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc1">
                                     <af:panelBox text="panel 1"
                                                  id="pb1"
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr3">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc4">
                                     <af:panelBox text="panel 3"
                                                  id="pb3">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                            </af:panelGridLayout>
                         </f:facet>
                         <f:facet name="bottom">
                         </f:facet>
                      </af:panelStretchLayout>
                   </f:facet>
                </af:panelStretchLayout>
             </af:form>
          </af:document>
       </f:view>
    </jsp:root>
    And in panel 2, the content is added dynamically, so it cannot control the width. Once it is very long, then the UI will not show all the data in panel2, and panel 3 also cannot display.
    So i want to the window have a scroll bar. How can i do this?
    Thanks.

    Hi Timo.
    Thanks for your replies.
    I change the panel 2 like this:
    <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
    <af:panelGroupLayout id="pgl4" layout="scroll>
    </af:panelGroupLayout>
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
    But it still cannot display a scroll bar for the panel 2.
    Thanks.

  • How can I make the email text (both sending and receiving) larger and lock it in to stay?

    I have an IBM laptop running Windows XP

    Firefox doesn't do email, it's strictly a web browser.
    If your problem is with Mozilla Thunderbird, let us know so that a Moderator can move this thread to the Thunderbird questions queue.
    If you are using Firefox to access your mail, you are using "web-mail".
    '''Page Zoom''' will work to make the page contents larger, and the setting will hold for future visits to each page visited and zoomed in.
    https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages
    Plus the NoSquint is available - https://addons.mozilla.org/en-US/firefox/addon/nosquint/ - for global and per site settings, rather than page-by-page zoom. ''[probably the best choice for what you described]''

  • How can I make the wallpaper without big size and without losing quality?

    When I make the wallpaper I don't want that pictures be extended.

    What's your model of iPad? Look at the specs for your  model then use a program like photoshop to make a wallpaper that is how big your screen is....for example my iPad 2 is 10024 x 768 pixels. So if I open up photoshop (or other photo editing program) I can make a template that's that pixel dimension then get other images to fit it. Export them to iTUnes and get them on my iPad and then set them as wallpaper.
    If you go in through the photos app and send your images to be wallpaper from there you'll have a bit more control than if you go in through the settings panel. But how much control will depend on the size of your original image. A nice large high res image will come out better than a tiny little low resolution image.

  • How can i remove the symbol with a lock and circular error in status bar? thanks

    i have turned on a symbol and cant figure out how to turn it off. its a lock with a circular arrow around it.
    thanks

    That's the portrait orientation lock.  Double-tap the home button to bring up the recently used apps bar.  Scroll right until reaching the left-most position on the bar.  Tap the orientation lock symbol to remove the padlock.

  • How can I make a slideshow with pictures and burn it to a dvd? what program to use?

    how can i make a slideshow with my pictures and then burn it to a dvd?

    Apple's builtin "iPhoto" application can do that easily.  Open iPhoto and click on "Help" at the top of the screen for assistance in creating it.
    Hope this helps

  • With the new iOS7 how can I make the picture on my lock screen smaller or is this a glitch with the new iOS7?

    With the new iOS7 how can I make the picture on my lock screen smaller or is this a glitch with the new iOS7?
    I got the 5s and everytime I try and change the picture on my lock screen the picture is 10x way to big. I try and resize it and make it smaller but it will nto get smaller.
    How can I fix this?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I am frustrated with how my cursor jumps around while typing.  How can I make the arrow follow the cursor so this doesn't happen?

    Macbook Pro with OSX Yosemite:  I am frustrated that when using Word for Mac, the cursor keeps jumping around all over the page.  How can I make the pointer follow the cursor so this stops?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How can I make the voice very loud when navigating with my google gps app?

    How can I make the navigation voice on my google gps app VERY loud?

    I did a search for the Citibank virtual credit card and other similar words and could find nothing.

  • How can i make the text go vertically in numbers

    How can I make the text vertical in numbers?  I have merged the cells and cannot find an option for making it go vertical as opposed to horizontal.

    I already gave two tools to fit this kind of needs.
    tip #1 :
    --{code}
    --[SCRIPT write_vertically]
    Enregistrer le script en tant que Script : write_vertically.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Saisir dans une cellule le mot à écrire verticalement puis le sélectionner.
    ATTENTION, il ne faut pas sélectionner la cellule mais le mot qui doit apparaitre surligné.
    Aller au menu Scripts , choisir Numbers puis choisir “write_vertically”
    Le script colle dans la cellule le mot apès avoir inséré un return entre tous les caractères.
    Pour mon usage personnel j'associe un raccourci à ce script grace à FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: write_vertically.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a cell, type a word to write vertically then select it.
    CAUTION, don’t select the cell but the word which must be highlighted.
    Go to the Scripts Menu, choose Numbers, then choose “write_vertically”
    The script insert in the cell the word after inserting a return between every characters.
    For my own use, I link a shortcut to the script thank to FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/17
    2012/01/01 no longer use a local variable, use result
    --=====
    on run
    Clear the clipboard *)
      set the clipboard to ""
    Copy the selection in the clipboard *)
              my raccourci("Numbers", "c", "c")
    Loop waiting that the clipboard is really filled *)
              repeat
                        try
                                  if (the clipboard as text) is not "" then exit repeat
                        on error
                        end try
              end repeat
    Extract the clipboard's content *)
      the clipboard as text
    Insert return between every characters *)
              my recolle(every character of result, return)
    Fill the clipboard with the edited string *)
      set the clipboard to result
    Paste in the cell *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    on recolle(l, d)
              local oTIDs, t
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end recolle
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
              tell application a to activate
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    tip #2 :
    --{code}
    --[SCRIPT rotate_cell_contents]
    Enregistrer le script en tant que Script : rotate_cell_contents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une cellule dont le texte doit être tourné de 90 degrés.
    Aller au menu Scripts , choisir Numbers puis choisir “rotate_cell_contents”
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: rotate_cell_contents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell whose contents must be rotated for 90 degrees.
    Go to the Scripts Menu, choose Numbers, then choose “rotate_cell_contents”
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/06/23
    2011/06/26 -- No longer use an auxiliary text box. Now keep the text attributes.
    2012/01/31 -- edited for Lion
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2
              local le_texte, la_largeur, la_hauteur, myNewDoc
              my activateGUIscripting()
    Extract properties of the source/target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of column colNum1 & name of row rowNum1)
              end tell
    Cut*)
              my raccourci("Numbers", "x", "c")
    Trigger Preview *)
              tell application "System Events"
                        if "Preview" is not in (name of every application process) then launch application "Preview"
              end tell
      delay 0.2 -- required
    New document from the clipboard *)
              my raccourci("Preview", "n", "c")
    Rotate to left *)
              my raccourci("Preview", "l", "c")
    Copy *)
              my raccourci("Preview", "c", "c")
    Quit *)
              my raccourci("Preview", "q", "c")
              (system attribute "sys2") < 7
              if result then
    Click the [Don't Save] button in the warning sheet *)
                        tell application "Preview" to activate
                        tell application "System Events" to tell application process "Preview" to tell window 1
                                  name of buttons
                                  repeat 50 times
                                            delay 0.1
                                            if exists sheet 1 then exit repeat
                                  end repeat
                                  tell sheet 1 to click button 2
                        end tell
              end if
    Back to Numbers *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
      -- just reset the focus on the table
              end tell
    Paste in the cell *)
              my raccourci("Numbers", "v", "c")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if

  • Pop Up - how can I make the window in the backround visible?

    Hi,
    when I create a popup, the window in the background becomes unvisible as long as the popup is not closed. how can I make the background window become visible when the popup is open?  I can hardly believe, that such a basic feature is not supported. But on the other hand, I also have some problemes with the sizing of the pop up...
    Help is highly appreciated.
    Kind Regards
    Felix

    ...just found this thread. And I am not very happy about what I read. Is your system 701 or higher?
    Re: Confirm Popup in Web Dynpro, window size
    Cheers
    Felxi

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • Help - I have an apple id account, where is my iPod and iPad registered, but also the iPod of my daughter. How can I make an account for my daughter and keep all the apps she has on her iPod?

    Help - I have an apple id account, where is my iPod and iPad registered, but also the iPod of my daughter. How can I make an account for my daughter and keep all the apps she has on her iPod and in her own iTunes?

    Sorry, content bought with one Apple ID cannot be merged or transferred to another Apple ID.

Maybe you are looking for