How can I pre-define the default selection in a SelectOneChoice?

How can I pre-define the default selection in a SelectOneChoice?
(1) Here's my JSF-code:
<af:selectOneChoice label="#{res['usercreate.input.sex']}"
value="#{bindings.Sex.inputValue}"
binding="#{SelectListBean.sexlist}"
readOnly="false" autoSubmit="false">
<af:selectItem label="#{res['data.sex.women']}" value="1"/>
<af:selectItem label="#{res['data.sex.man']}" value="2"/>
</af:selectOneChoice>
(2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
public class MBSListBean {
private CoreSelectOneChoice sexlist;
public MBSListBean() {
public void setSexlist(CoreSelectOneChoice sexlist) {
this.sexlist = sexlist;
this.sexlist.setValue(1);
public CoreSelectOneChoice getSexlist() {
return sexlist;
(3) when i launch the page, it often gives me such warnings:
WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
how to solve the problem ?
Thanks,
wzzdx

You could also set the default on your entity or viewobject, in the properties of your attribute.

Similar Messages

  • I just upgraded from Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    I just upgraded from Logic Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express. I now want projects to open in Pro.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    Well, when I've done things like that it always sems like a good idea to keep an application that you know the file will definitely open in...

  • I'v just installed creative cloud 64 bit windows. How can I make bridge the default program to upload pictures rather than lightroom?

    I've just installed creative cloud 64 bit windows.  How can I make bridge the default program to upload pictures rather than lightroom?

    Usually the default program associated with an image file extension is an image developing Program like Lightroom or an image editing program like Photoshop. If you want to change the default associated program to Adobe Bridge you would use Window's Controls Panel file association applet.

  • How can I bring back the default setting in photshop elements 4.0

    HP Pavilion desktop M7240UK
    Monitor HP vs19 LCD
    Windows XP
    Explorer 8
    Service Pack 3
    Photoshop Elements 4.0
    Hi
    How can I bring back the default setting in Photoshop elements 4.0
    Thank You
    York44

    In the editor? Quit the editor , then restart it while holding down Ctrl+Alt+Shift. Keep holding the keys till you see a window asking if you want to delete the settings file. You do.

  • How can i make RealPlayer the default video player?

    I use safari 3.0.4
    When it accesses sites containing video, it plays it in Flash (eg YouTube)
    How do I get safari to use realplayer instead? (Even my Firefox 2.0 uses flash) (I have RP 10)
    I am teaching a course in media literacy and show some of the uploaded old tv commercials to my students. i want to show next year's class some of the same commercials, so i want to save the ones I find this year while they're available.
    At school, I work on a pc, and it plays video back in RealPlayer which gives me a 'download' option, so i can save these commercials.
    But when i find good clips at home, on my mac, all I can do is note the urls, then do it all again at school to get to them to download. it would be much easier if i could download them as I find them, then take them to school on my portable drive.
    any solution?
    Thank you
    Elizabeth

    At school, I work on a pc, and it plays video back in RealPlayer which gives me a 'download' option, so i can save these commercials
    RealPlayer v. 11.0.0 (may still be in beta) now includes that Downloader - a very useful item!
    It is a free download but they will ask for money in July. Must be why they call it RealPlayer Plus!
    You can get it here:
    http://uk.real.com/player/mac/
    I have had it for a couple of weeks and have had no problems.
    As for making RealPlayer the default video player, IMO that is not a good idea. There is a lot of stuff out there that RealPlayer would not be able to handle.
    These are the downloads and the settings you need in order to view/hear pretty much everything that the net can throw at you: The setup described below has proved repeatedly successful on both PPC and Intel macs, but nothing in life carries a guarantee!
    It is known to work in the great majority of cases with Safari 3.0.4, QT 7.3 or 7.4 and OS 10.4.11. (If you are running Leopard, ensure that all plug-ins have been updated for OS 10.5.2, but please see my footnote).
    Assuming you already run Tiger versions OS 10.4.9 or above (this has not yet been verified with Leopard) and have Quicktime 7.2 or above, and are using Safari 2 or 3, download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac, of:
    RealPlayer 10 for Mac from http://forms.real.com/real/player/blackjack.html?platform2=Mac%20OS%20X&product= RealPlayer%2010&proc=g3&lang=&show_list=0&src=macjack
    The new RealPlayer Plus (v.11) is still in beta and therefore free, but works well on Tiger. It includes a download function, and you can get that here:
    http://uk.real.com/player/mac/
    Flip4Mac WMV Player from http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    Adobe FlashPlayer should first be uninstalled using the appropriate uninstaller available here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2 and then the latest version obtained from here: http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash and installed.
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS, but please see my footnote if you are running Leopard.)
    In earlier versions than QT 7.1.3 in Quicktime Preferences, under advanced, UNcheck Enable Flash, and under Mime settings/Miscellananeous only check Quicktime HTML (QHTM).
    You should also ensure, if you are running Tiger 10.4.11 or Leopard, that you have downloaded and installed the correct version for your Mac of Security Update 2007-009.1.1, which also deals with the Quicktime/Flash issues you may have experienced, such as the '?'. What happened was that both Quicktime as well as Adobe FlashPlayer tried to play the Flash video at the same time. This no longer happens. (N.B. Security Update 2007-009 1.1 requires both a restart and a permission repair.)
    If you get problems with viewing video on a website try moving this file to your Desktop:
    Hard drive/Library/Internet Plug-Ins/QuickTime Plugin.webplugin
    and then restarting Safari. If all now works, you can trash that file.
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/
    Now go to Safari Preferences/Security, and tick the boxes under Web Content (all 4 of them) to enable Java.
    Lastly open Audio Midi Setup (which you will find in the Utilities Folder of your Applications Folder) and click on Audio Devices. Make sure that both Audio Input and Audio Output, under Format, are set to 44100 Hz, and that you have selected 'Built in Audio'.
    Important: Now repair permissions and restart.
    You should also consider having the free VLC Player from http://www.videolan.org/ in your armory, as this plays almost anything that DVD Player might not.
    FOOTNOTE
    If you are running Leopard:
    Some users have mentioned that the latest Flash Player (v.9.0.115.0) conflicts with Leopard, and that they have needed to revert to v. 9.0.47. This can be downloaded from here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=1

  • How can I get back the default system files icons to my fles?

    Hello,
    After installing an application like FontExplorer, all my fonts got it's icon.
    I went to a font, selected and did get info, I tried to delete the icon but could not.
    I know the default icons for OTF fonts and an italic O, half green, half black.
    How can I get those Icons back,
    Or in general,
    When files gets an application icons, how can I restore the default icons for files?
    Thank you
    Shlomit

    Icons in the Get Info pane can be changed back to the original icon by clicking on the icon once, to highlight it, and then pressing Control X (for cut).
    But in your case the font icon is probably more due to the association with the application selected to open it with, ie FontExplorer. So with the Get Info pane open for a selected font type you need to change which application you use to open it with. For example, if you select one of the OTF fonts and do a Get Info, in the Open With pane it will show FontExplorer. Change this to Font Book and it should change its default icon.

  • How can I permanently enlarge the default size for pop-ups?

    I use several sites that employ pop-ups. The default size is too small, so I have to manually enlarge each pop-up. How can I set the default size for pop-ups to a larger size. I don't want them maximized, just larger than the default.

    A pop-up should fit normally unless you are zooming images or text or increasing elements otherwise.
    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting "none" as a (too) high value can cause issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *https://support.mozilla.org/kb/Changing+fonts+and+colors
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with overlapping text.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • The new Firefox opens all the old tabs it closed with, when it starts. I'd rather just start a new session. How can I make that the default setting?

    The new Firefox re-opens all the tabs it closed with; and, I'd rather just start a new session, as the default setting. How can I do this? It would make it easier on me, the machine, and the Internet feed, not to reload automatically a bunch of tabs that were just closed. There must be someway to fix this. This happens on my brother's Windows computer, as well; and, it's running Firefox 4. Thanks for your help.

    Make that "Firefox ->Preferences -> General -> When Firefox starts: "Show my windows and tabs from last time" is not selected as this is not the default.
    Basically this setting will make Firefox start with whatever windows and tabs that were last open when a user closes Firefox by way of File ->Quit/Exit as if Firefox was never closed.

  • How can I synch ONLY the default 'contacts' folder in Outlook 2003?

    I am using Outlook 2003 SP3. In my 'contacts' menu I have 3 folders: 'Contacts', 'iPhone' and 'Old.' I created 'iPhone' and 'Old' folders and 'Contacts' was the default folder. When I synch my 3G iPhone with Outlook I want to synch ONLY the default 'contacts' folder. But I can't seem to do this. My options are to synch all folders or a selection of non-default folders (i.e., anything but 'Contacts.')
    Does this make sense? I don't want to synch anything in the 'old' folder to my iphone. But I also don't want to move all of my current contacts to a special folder just so I can synch only these items.
    So when I synch my iPhone I want it to limit the synching to only the default 'contacts' folder.
    Is there a way to do this?

    Open one of the folders that keeps changing. Set it to the view mode you prefer. Press Command-J (Show View Options in View menu).
    At the top of the View Options screen is an item which allows one to set "Always open in xxx view". Chekmark that.
    Repeat for each folder you want.
    This is a per-folder setting. Note that the View Options screen is 'live" - you can leave it open, and as you open successive folders it will display the settings for each in turn.

  • How can I make CS4 the default for opening?

    Help! I have most versions of PS but I prefer CS4. I am a photographer. Forever CS4 was the default when opening photos. Something happened yesterday and now when I double click on a photo to open it it opens but not in CS4. Not sure what version it's opening in. But I want it to open in 4. I can right click each and every time to open in 4 but I open tons of photos all day long and that takes too long. How can I again make it so that CS4 is the default?
    Thank you.

    Thanks. I couldn't figure out what you meant.
    What does CMD I stand for?
    If I right click on a file I can open in CS4 but there's no 'change all' there, just option of opening in CS4 or something else.
    I open RAW files. Then later I open jpg files. I think they are opening in CS4 as RAW (not sure) but the jpgs are not. If I right click it says CS6 is the default -- first one listed and has (default) next to it.

  • How can you PERMANENTLY change the default Ken Burns effect?

    I don't like the Ken Burns effect and want to PERMANENTLY remove it from the default setting for slideshows. I know how to deselect it every time I create a new slideshow, but isn't there a way to change the default setting so the Ken Burns effect is not selected unless I want it?

    Terence Devlin wrote:
    You may have a problem with your keyboard as you seem to be unable to type the word 'permanently" in lower case.
    SImilarly, you cannot permanently disable the Ken Burns effect and remove it from the default settings.
    iPhoto menu -> Provide iPhoto Feedback
    Regards
    TD
    I don't know if anyone will ever read this, but I feel compelled to say that:
    a) This reply is great, probably one of the best I've ever seen.
    b) I'm a fan, TD, I'm a fan.

  • Apple Mail app: how can I revert to the default layout after I changed it to the classic layout?

    It's Mac OS X Mavericks. I've changed my Apple Mail app viewing style to "classic layout" in viewing/mail preference, and now I want to return back to the default layout. How can I do this?

    Sorry,  you didn't mention that you had. In any case, I don't have any further suggestions as it worked as it should when I tested it.

  • How can I permanently delete the default bookmark toolbar items (getting started, most recent, etc.)?

    I can't seem to permanently delete the default bookmark toolbar items. They show up frequently on start-up, even after manually deleting them in a previous session. I use 3.6 x_32 on Linux (for Flash) and 4.0 RC 1 x_64 (for non-flash) sharing the same profile.
    I use the X-marks extension and I thought that was the cause the problem, but the problem keeps happening even after deleting all of the the default items in each version and then overwriting my x-marks server data with a forced upload both times.
    I'm guessing that x-marks will be most people's prime suspect. I just want to make sure that firefox isn't recreating the items as a default behavior.
    I know it's a minor annoyance, but I keep my bookmarks toolbar pretty full. Thanks.

    Does it still happen if you temporarily disable Xmarks?
    Doesn't it work if you hide the Bookmarks Toolbar?
    You can check:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How can I make "big" the default setting for printing in iCal?

    When I print a calendar from iCal, there is an option to set the test size as small, medium or big?  Each time I launch iCal it resets this to "small."  If there a way to change this such that the preference is for "big?"

    Make that "Firefox ->Preferences -> General -> When Firefox starts: "Show my windows and tabs from last time" is not selected as this is not the default.
    Basically this setting will make Firefox start with whatever windows and tabs that were last open when a user closes Firefox by way of File ->Quit/Exit as if Firefox was never closed.

  • How can I make QT7 the default player?

    I don't want to right click every file and tell it to open with QT7. I only use those files once anyways. Is their a way to make QT7 the default player instead of QT10?
    Thanks.

    No. Not really as the default for the .mov extension will always be QuickTime X.
    You can set the default for an individual file using the "Open Using" (Get Info window) but can't use the "Change All" button for that file extension.

Maybe you are looking for

  • Implementing a template from BW

    Hi, Can someone please tell me how to implement a Template used for BW reports in my BSP application ? Importing the template is not helping as error message 'Object Expected' is thrown. Thanks

  • External HD access probs

    Hello all, When I connect my external HD (Iomega 1TB) to my macbook, I can only READ and not WRITE (copy stuff to it). How can I solve this prob? Thanks in advance! Kr Fey

  • Iphoto is frozen on importing photos and will not let me close down

    help! my iphone is no longer hooked up, iphoto attempted to import photos all night long and is still attmepting even though i unplugged iphone. how do i interrupt program and quit , control quit will not work.

  • Returing clause with select and insert

    Hi, I am trying to use the following query but its not working.I want to know whether this syntax is valid. Insert into t_name( , , ,) Select , , , from t_name2 Returing into , , , . There is only one row I am dealing with. Thanks a Lot !!! Edited by

  • Photoshop CC for Photographers option

    Good morning, I noticed that the Photoshop CC for Photographers option ($9.99 / month) has been opended to everyone until 12/2.  The original offer was valid for current users until 12/31.  Is that still an option or has that been changed to now end