Can't get selectOneChoice to pick up default value

I have this selectOneChoice below and the enum also shown below, but no matter what I do, it won't leave the drop down intact. It just replaces it with a text field that says "Regular" which is the proper value for the first enum value but what I want is for that value to just be the selected one in the dropdown. Any thoughts?
<af:selectOneChoice value="#{oclcAdmin.selectedVendorType}" id="vendorTypeChoice">
<f:selectItems value="#{oclcAdmin.vendorTypes}"/>
</af:selectOneChoice>
and here is the backing code:
public List<SelectItem> getVendorTypes() {
List<SelectItem> options = new ArrayList<SelectItem>();
VendorTypeEnum[] vte = VendorTypeEnum.values();
for (int x = 0; x < vte.length; x++) {
SelectItem item = new SelectItem(vte[x].getValue(), getMessageSource().getMessage(vte[x].toString(), null, getExternalContext().getRequestLocale()));
options.add(item);
return options;
public VendorTypeEnum getSelectedVendorType(){
int selectedType = myVendorDetail.getType();
return VendorTypeEnum.valueOf(selectedType);
and here is what the Enum looks like:
public enum VendorTypeEnum {
VENDOR_TYPE_REGULAR(0),
VENDOR_TYPE_NATIONAL(100),
VENDOR_TYPE_WORLDCAT(200),
VENDOR_TYPE_CUSTOM(1000);
private static Map<Integer, VendorTypeEnum> myIntMap = new HashMap<Integer, VendorTypeEnum>();
static {
for(VendorTypeEnum status: VendorTypeEnum.values()) {
myIntMap.put(status.getValue(), status);
private VendorTypeEnum(int value) {
this.value = value;
private final int value;
public int getValue() {
return this.value;
public static VendorTypeEnum valueOf(int value){
if(myIntMap.containsKey(value)){
return myIntMap.get(value);
else {
throw new IllegalArgumentException("No VendorTypeEnum value:" + value);
}

For anyone that cares, I figured it out. Apparently the component will default to read only unless it detects that a setter exists for the field. I had guessed that but had only put in a blank setter instead of one that actually took a value. Once I changed that, it worked.

Similar Messages

  • How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of

    how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • I have just come back from morocco where my phone worked ok using the morroco network, but since returning to the uk I can't get it to pick up a signal from the 'Three' network, have tried resetting etc but still wont work, any suggestions

    I have just come back from morocco where my phone worked ok using the morroco network, but since returning to the uk I can't get it to pick up a signal from the 'Three' network, have tried resetting etc but still wont work, any suggestions

    banannaphone,
    Welcome to Apple Discussions.
    Quit Safari, find the com.apple.Safari.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder, drag it to the Desktop, log out/in or restart and let us know what happens.
    ;~)

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • What type of modem do i need for time capsule. I can't get it to pick up the net

    what type of modem do i need for time capsule. I can't get it to pick up the net

    Simply bridge the TC..
    With DSL you need to either bridge the modem and use PPPoE client which can be difficult to setup.. especially as some modems do not bridge readily..
    Or bridge the TC which is simple.. go to the airport utility and select internet page, on v5 utility or network page on v6 utility and select off-bridged mode for the mode of connection.

  • Can't get Mail to stay as default e-mail program

    I can't get Mail to stay as default e-mail program. It keeps switching back to Eudora even though I change it in General Mail Preferences. How do I get it to stick? It keeps switching back to Eudora which I used for 15 years, but now am using Mail for the last month

    I continue to have the problem, so the only solution that I could think of was to delete the Eudora ap. Since all the Eudora mailboxes are text files (including the address book), I will open them as text files when I need to access some info.

  • Can't get Mail to stay as default e-mail reader

    I can't get Mail to stay as default e-mail program. It keeps switching back to Eudora even though I change it in General Mail Preferences. How do I get it to stick? It keeps switching back to Eudora which I used for 15 years, but now am using Mail for the last month

    I couldn't figure it out, so I just deleted the Eudora application from my hard disk. Then I used a great program called Eudora Mailbox Cleaner to transfer my Eudora mailboxes to Apple Mail. It's working out well.

  • How can I get the previous record's field value in a VO

    Hi I would like to know how can I get the previous record's field value in a VO
    For example : I have a VO porequisitionlinesvoimpl, and it contains 5 records (porequisitionlinesvoimpl.getRowCount() = 5). How can I search all records in the VO and get the field (attribute3) for all records?
    Many thanks anyone can help
    Lawrence

    Hi ,
    U can loop through the VO to get the value of attribute3,
    need to extend the controller ,use below code
    OAViewObject vo = (OAViewObject)oawebbean.getApplicationModule (VO1);
    OARow row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator Iter = vo.createRowSetIterator("Iter");
    if (fetchedRowCount > 0)
    Iter .setRangeStart(0);
    Iter .setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    row = (OARow)Iter .getRowAtRangeIndex(i);
    String value = (String)row.getAttribute("Atrribute3");
    Thanks
    Pratap

  • How can I get a static checkbox to default to ticked?

    I have a checkbox on a form that I want to default to TICKED. I then need to check the value of the checkbox before deciding upon whether or not to do some processing (not if the checkbox is UNTICKED).
    I have tried with the following values:
    Default Value Type: Static Text with Session State Substitutions
    Named LOV: - Select Named LOV -
    Display Null: No
    List of values definition: STATIC :;Y
    My checkbox is always defaulting to UNTICKED. How can I get it to default to TICKED?
    This is only my second week with APEX, so excuse me if I'm missing the obvious.
    Thanks
    Alistair

    Is this what your looking for?
    Try adding "CHECKED" to "HTML Form Element Attributes" in the element section of your item.

  • Can't get voicemail to pick up.

    Basic Voicemail on my Galaxy S5 will not pick up.  It is set up, because I can dial *86 and that works, but when I try calling my cell from my house phone, it rings and rings, and then says "your call cannot be completed at this time" and hangs up.  How do I get voicemail to pick up?

    Is call forwarding set up on your cell phone?  Press *73, wait for the tones, then hang up - this will cancel any call forwarding that may have been set up inadvertently, or purposely.  See if it connects to VM after that.
    If that doesn't work, I suggest calling Customer Service (option 4 for "Other", then say the word "agent" when prompted; see if the rep can reset your voicemail, or at least check it from their end to ensure it is properly activated and set up.

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • How can I set the date today as default value in a parameter?

    Hi,
    I have in my report a date parameter and I want to set as default value the date today.
    How can I do this?
    Thanks in advance

    If you are using a datatemplate , you can have a beforereport trigger that will have a package call.
    In the package spec, define a date variable and also define the function beforereporttrigger that retruns boolean.
    In the body, define the beforereporttrigger function with
    begin
    select sysdate into specvariable from dual
    return(true);
    end;
    You can then use the variable in the datatemplate as :variable.
    Hope this helps.
    - Vasu -

  • How can I change the numeric and enum default values in a Strict Type Def Cluster?

    I have a Strict Type Def cluster that contains 10 Numerical controls and a number of enums.  I have edited default values of the numerical controls in the Strict Type Def, in customize mode, performed a "Make Current Values Default"  and have done a "Apply Changes"  and saved.
    This cluster is used in various locations throughout the project and have not found a way to make the cluster default values change downstream.  The Strict Type Def (STD) Control appears to have the right values on the front panel.  But if I place an instance of this on a blank front panel, and run a wire from it in the block diagram with a probe and indicator, I still get the old default values being passed from the STD.  
    Solved!
    Go to Solution.

    There Are No Strict Type Definition Constants
    "Even though typedefs only update when types change, instances get cosmetic changes from the definition whenever they update. So one trick to "push" changes to typedef instances is to change the data type, apply changes, and then change the data type back. [edit, March 26 - Note that the typedef instances need to be in memory when you use this trick]."
    From Eyes on VIs, here.
    http://blog.eyesonvis.com/
    I love this article.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Picking up default value 140000 for Recon account in FD02

    Hello Experts,
    I am an Abaper posting this query because FICO consultant is facing an issue on FD02 with Recon account
    To the company code CAP1 there are 2 Recon account configured 1) 20000 2) 50000.
    Now when we change the customer on FD02 or XD02 it displays a default value on Recon account field ie 140000.
    The reason why i have posted this query is because the FICO consultant says that it an issue with Abap
    and I dont think so could you please give me some insight on the same.
    What I think is this could be because some customization problem.
    Regards,
    Ranjith N

    hi,
    I did as you said.
    Yes a badi was implemented in which the recon account was set default..
    i changed it..
    is ter any way to deactivate a badi as we do it for user exits.
    Regards,
    Ranjith N

  • Google used to be the search site, now I get MSN, and I want Google. Can I get it back as the default?

    When I would click on Firefox, I would reach Google to do a web search. Now I get a very crowded page with MSN, I think it is . I want Google as the default , how can I do that? and why does Firefox change things with no notice to users?

    Not sure I fully understand your question.
    Are you referring to the Home Page when you first power up Firefox? If so, refer to this help article on [https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page?s=home+page&r=0&as=s How to Set the Home Page].
    Are you referring to switching your Search Engine within Firefox? If so, refer to this help article on [https://support.mozilla.com/en-US/kb/Search%20bar?s=location+bar&r=4&as=s#w_switching-search-engines Switching and Managing Search Engines].
    If it's none of the above, please clarify your query.

Maybe you are looking for

  • Broken CD-ROM drive on Satellite M30x

    Hi, This is unusal I guess; I have bent the cd-rom tray on my Satellite m30x. When the tray was opened it got bent upwards slightly. Its not really broken but slight bent so that it no longers will close and if closed will unlikely open again. Is it

  • Not able to display the output of O_store_rec object

    Hi Can any resolved my question. while compiling this pl/sql block i am getting error ora-6531 :reference to uninitialised collection. Declare O_error_message RTK_ERRORS.RTK_TEXT%TYPE; O_store_rec STORE_SQL.STORE_REC; I_message RIB_XSTOREDESC_REC; I_

  • Error in DECODE statement

    Hi, I have written this decode clause but somehow its not working and giving expression error. SELECT ( DECODE select param_value from feed_parameter where upper(param_name) = 'SOURCEENV' and feed_id=5085 AND CLOSE_ACTION_ID IS NULL ),'NTSNGN','mput

  • I have lost my personal hotspot on my iPhone 5. How do I get it back?

    I seem to have lost my Personal Hotspot, not sure how this happened! How do I get it back? I have the iphone 5.

  • Can't get my I pod to work.

    after an update I have an following picture on my screen: usb narrow towards I tunes. I can't do anything. If I connec it ty my I tunes it doesn't show me my I pod. I tryed everything. This thing still doesn't work. what should I do