Dropdown box and insert mask with list page

Hi,
I m trying to make a CRUD example with JSF. I have the list and the insert mask in the same page. Everything was working fine when i had "NO" select box in my insert mask. But, when i add a select box to the insert mask. I am getting the following error.
java.util.NoSuchElementException
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:98)
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:124)
     javax.faces.component.UISelectOne.matchValue(UISelectOne.java:141)
     javax.faces.component.UISelectOne.validateValue(UISelectOne.java:114)
     javax.faces.component.UIInput.validate(UIInput.java:645)
     javax.faces.component.UIInput.executeValidate(UIInput.java:849)
     javax.faces.component.UIInput.processValidators(UIInput.java:412)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
     javax.faces.component.UIForm.processValidators(UIForm.java:170)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
     javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
     com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
Do i need to set the selected item value in the bean programmatically? OR am i missing something.
Please advice.
regards
fargo

hIi,
I solved the problem by keeping the managed bean in session scope. But, this is not neat.
Can someone help??
Regards
fargo

Similar Messages

  • By using Inspector, i found the way to create and insert a scrolldown list ; however the list has to be created from  inserting each line at a time; what i am looking for is a way of creating a scrolldown  large(30 to 100 lines) list.

    By using inspector, i found a way to create and insert a scrolldown list (*) in a cell ; however it can only be done one line at a time .what i am looking for is to create a bigger scrolldown list ( from 30 to 100 lines ) and in excel we can do it by copy and paste from an other doc...there must be a way with Numbers !!! any ideas ?
    (*)...go to inspector/4th icon to he left/format/local menu/and then input the list one by one...and it creates a scrolldown list where you cursor was located in numbers.
    please help....

    If you need to use this kind of objects, my guess is that it would be better to use an other application like libreOffice.
    At an user request, I wrote an AppleScript grabbing the list from a table embedded in the Numbers document.
    Here is an enhanced version.
    --{code}
    --[SCRIPT fake-scrolldown-list]
    Enregistrer le script en tant que Script : fake-scrolldown-list.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.
    Sélectionner une cellule dans une table d'un document Numbers.
    Aller au menu Scripts , choisir Numbers puis choisir “fake-scrolldown-list”
    Le script extrait la liste d'articles de la table « la_liste » de la feuille contenant la table ci-dessus.
    Il demande de choisir un article puis dépose celui-ci dans la cellule sélectionnée.
    ATTENTION : À la demande d'un utilisateur, Le script utilise un nom de table localisé.
    Je n'aime pas cela parce que de ce fait, lorsque le script est utilisé sur un système Français,
    il requiert une table nommée "la_liste" mais lorsqu'il est utilisé sur un système Anglais il requiert la table "the_list".
    --=====
    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: fake-scrolldown-list.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 in a table of a Numbers document.
    Go to the Scripts Menu, choose Numbers, then choose “fake-scrolldown-list”
    The script extract the list of allowed items from the table “the_list” which must sit in the same sheet that the table embedding the selected cell.
    It urge to choose an item then insert it in the selected cell.
    CAUTION : I use different names for the required table according to the language in use on user request.
    I dislike this feature because a document built by a French user sent to an English one will fail.
    On the French system the script ask for the table "la_liste" but it ask for the table "the_list" on an English system.
    --=====
    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/31
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2, myListe, maybe
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName
    Extract the list of allowed values from the dedicated table *)
                        if my parleAnglais() then
                                  "the_list"
                        else
                                  "la_liste"
                        end if
                        tell table result
                                  set myListe to value of every cell of column 1
                        end tell
                        set maybe to choose from list myListe
    If we select the Cancel button, exit silently *)
                        if maybe is false then error number -128
    Fill the selected cell with the choosed value *)
                        tell table tName
                                  set value of cell rowNum1 of column colNum1 to (item 1 of maybe as text)
                        end tell
              end tell -- Numbers…
    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
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) samedi 31 décembre 2011
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Trying to install Adobe Photodeluxe (elements 13)   I have box and cd sleeve with serial number,   But registration won't let me type letters only numbers allowed.  Help please.

    Trying to install Adobe Photodeluxe (elements 13)   I have box and cd sleeve with serial number,   But registration won't let me type letters only numbers allowed.  Help please.

    You possibly have a redemption code which has to be converted into a serial number.
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge

    HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge.
    Please help,
    I'm trying to use the Java Access Bridge (JAB) 2.1 to get the text in Java Applet controls. I've been able to use the sample code in AccessInfo.cpp sample that comes with JAB to get text from "text" controls in a Java Applet. To clarify, I am referring to the "role" in the AccessibleContextInfo struct being set to "text" or "combo box" or "label".
    The problem is, when I use the AccessInfo.cpp sample to get text from a "combo box", the accessibleText data member comes back as FALSE, and thus any of the JAB text functions like GetAccessibleTextInfo fail to get any text information from "combo box" or "label" controls.
    I've also tried GetCurrentAccessibleValueFromContext on the "combo box" and "label" controls, but the text returned is empty.
    Can anyone help?

    I have new information in regards to this issue. A contact from Sun did get to me in email and relayed that that "label" objects store their text in the "name" data member of the AccessibleContext structure. This was a big help.
    But I'm still stuck trying to get information from "combo box" and other controls, like "push button". The contact said, the Java Access Bridge does not provide all the information because it is already implemented by other interfaces like AccessibleComponent, AccessibleAction, or AccessibleSelection. The contact did not allude to whether these opther interfaces can be used along side the Java Access Bridge or not. So, I'm left a step closer to the goal, but still stuck without the full solution.
    Can one take the Java Access Bridge functions, like say those used in the Ferret sample, and close the gap to get text back from "combo box", "push button", and other controls by using some other API in conjunction?

  • I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    Up the top where the three buttons are (red yellow green) are three images. Click on the third image that looks like a notepad (not the first which is a library book), and that should get rid of 'Notes'. To read using two pages make the window bigger.

  • Add JavaScript file to ALL existing Task List pages and to newly created list pages

    We have several OOTB task lists that are in use on several subsites.  We want to add JavaScript to the NewForm.aspx and EditForm.aspx for these task lists. These lists have not been customized, they are based on the standard Task Content Type.
    Since there are several lists already created and in use, it would be far too much work to manually add a Content Editor web part to each page.
    We put the JavaScript file in the top-level site style library.
    Is there a way to programmatically attach a script reference to each existing page in all the subsites AND have the script reference placed on any NEW list pages created from the OOTB Task content type? Or, add a CEWP to all existing list pages using a feature?
    I could not find any examples of this.

    Hi,
    A solution would be like this: Add your script into a Content Editor Web Part in a page, then add this Content Editor Web Part into the NewForm page of these Task lists using
    SharePoint Object Model.
    More information:
    Use
    SPList.Forms property to retrieve the URLs of the specific form of these Task lists:
    http://sharepointcore.blogspot.com/2011/08/sharepoint-listitem-new-edit-and.html
    With
    SPLimitedWebPartManager object, we can retrieve the web parts of a page, choose one and add into another
    page:
    SPLimitedWebPartManager.WebParts
    property
    SPLimitedWebPartManager.AddWebPart
    Another two links about this for your reference:
    http://www.stefangordon.com/add-web-part-to-page-programmatically/
    http://sharepoint.stackexchange.com/questions/9442/how-to-programmatically-add-a-webpart-to-a-page
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Manipulating ip address and subnet mask with plsql

    Hi,
    I'm looking for a plsql package in order to perform basic operations with ip adresses and subnet masks like:
    - validating an ip address (dot format)
    - converting masks (16 -->> 255.255.0.0)
    - splitting an ip range with a higher subnet mask (10.3.0.0/16 -->> 10.3.0.0/17, 10.3.128.0/17)
    It's very difficult to find any information about this on google so if you know or had written such a package or function....

    As using BITAND function
    with two arguments IP_ADDRESS (transfer 32bits-integer) and
    POWER(2,32)-POWER(2,32-MASKS),
    you must be able to get ip range (32-bits-integer)
    and a higher subnet mask by IP_RANGE+TRUNC(POWER(2,31-MASKS)).
    And then you can transfer it to dot format (decimal,octal etc.) easily.

  • Dropdown Box Effecting Multiple Queries with Different Technical ID InfoObj

    Hi,
    I'm using BW 3.5 Web Application Designer.  I have a dropdown box for region (0REGION) based on DataProvider1 and it effects DataProvider1, DataProvider2, and DataProvider3.  In DataProvider2, the query that is used has region as a navigational attribute of Plant, ie 0PLANT__0REGION.  And in DataProvider3, the query is based on an InfoSet.  So the region field is named like ZABC_I01__F02.
    My issue is that DataProvider2 and DataProvider3 don't get updated when I select a region from the dropdown.  Essentially, all three (0REGION, 0PLANT__0REGION, and ZABC_I01__F02) are region except that the technical names are different.  Has anyone also experienced this?  And is there a solution>
    Thanks!

    You will have to use Custom JavaScript + BW Web API commands to generate the filter URL for all the different data providers.
    There is a how to document available for generating URLs based on dropdown selection under the BI How to guides.

  • When i start ff my home page and (getting started with ff page comes up i just want my home page to start?

    I don't want(getting started with ff page to come up every time i start ff.

    See https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_set-a-single-web-site-as-your-home-page

  • How can I have a button that will show/hide a text box and images on the same page?

    I have a page like below:
    I want to make so that those 3 buttons show different text under them when they are each pressed. How can I achieve this?
    Thanks.

    Hello,
    Please try using Tooltip Composition Widget to achieve that..
    You need to customize  the trigger as the button  and you can use the target to insert desired text box or images.
    you can find this in Widgets library panel > composition
    Please let me know in case you need any other clarification on that.
    Regards
    Vivek

  • Love Firefox, butt my browser window that saves my site in dropdown box, and my back errors are all gone?

    my browser window that saves all the sites I go to daily is GONE, and the back errors are gone that let me suf back to my last page, I didnt do anything they were just gone one morning

    Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
    * Press F11 to toggle full screen mode (Firefox/File > Full Screen)
    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Change IP-number and Subnet-mask with LabView?

    To upgrade the software on a CRio-System, the user needs to change some settings in the TCP/IP-configuration.
    To simplify this task I think on a possiblity to do (and at the end redo) the changes in the TCP/IP-Configuration of the Windows PC.
    What I need is:
    - Change the IP-Adress (from "Obtain IP adress automatic" to IP xyz...)
    - Change subnet-mask
    - Redo this settings by saving an existing config or set to "Obtain IP adress automatic"
    Who knows if and how it's possible to do that in LabVIEW?
    Perhaps I have to call a script  /.bat-file?
    LabVIEW 6,7 and 8 available :-)

    Sreedhar T wrote:
    Hi, its a really interesting stuff to read. Did anyone try doing it ?
    One thing that I wanted to know was: How long does it take to do this ? Since Im using a time critical application, can this entire operation happen in 100 milli seconds ?
    Will be glad to hear from you.
    Regards
    Sreedhar
    I have used this for a program that needs to have a host IP address for High sped cameras. I have it change the IP address to the required address and change it back when I am done. Here is a very simple Labview version of this code with out the switch back.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    TCPIP Config Programically.vi ‏10 KB

  • How to Create and adjust masks with SDI output or Dual monitor output activated?

    Hi all Speedgrade community.
    For me one of the biggest problems I constantly encounter is managing masks within speed grade.
    The tools are great, but if your using and external reference monitor for grading there is no way you can manage
    masks and see what your doing on that "external" screen. Is there a way of activating dual screen or ddi output and keeping
    the viewer active in the GUI?
    When I know I'm going to be managing a lot of fine tuning grading, I usually always switch to Scratch or Resolve, and that breaks my Adobe CC round tripping workflow
    AE<-->PP<-->SG
    Thanks for any help.
    KR
    Leigh
    iMac 27"
    Aja IO 4K
    DreamColor Z27X
    HDLink 3D DisplayPort
    Wacom Intuos

    Hi Fran
    Thanks for your response.
    Is it just me, or does the pointer, when sent over to the SDI output, not respond as well
    as when it's on the GUI?
    Anyway, I'm quit confident we'll see an update to the way video is routed within Speedgrade
    in a near future.
    Leigh

  • I'm new and need help with lists.

    I'm writing an app in java (duh, thats why im here), and using NetBeans. I need to know how to add items to an awt list at run time. Thanks for your help in advance. ;)

    Try the APIs. I am assuming that you are not using the GUI editing part of NetBeans to make your app, but if you are, again.... make the action and then look at the APIs .
    Good Luck,
    Edward S. Rice

Maybe you are looking for

  • Setting default text to dropdown listbox

    I have a field on my Webdynpro defined as DropDownByKey. The field's list for the dropdown list is coming from a domain with a list of all the values. I want to default the field to one of the values in the list from the domain, but I want the descri

  • Cannot resolve symbol - class FileInputStream

    I am getting the above error when I compile this following method; I get it in the first line of code. Anyone know why? private String readAndProcessData(FileInputStream stream)       InputStreamReader iStrReader = new InputStreamReader(stream);     

  • Corrupted Database Problem

    Greetings, I'm getting the following error running the base system installer: root@archiso ~ # pacstrap -i /mnt base ==> Creating install root at /mnt ==> Installing packages to /mnt error: GPGME error: No data :: Synchronizing package databases.. co

  • Blank File Icons in Small List View

    Hi, I got an annoying problem with my Mac. In Finder, it's not going to show the right icons while I'm in the small list view. If I switch to the bigger list view or the symbol view, everything appears correct. I just reinstalled Yosemite but it's st

  • Reg: warehouse Management

    hello Gurus, can u anybody send me the good material for WMS. like siemens etc. Pls, it will be great helpful for me,.. Findmy mail id: [email protected] thanks in adv. Regards, Muralidharan