How to set the default item showed in a h:selectonemenu

I need to show the second, or the third, and on so.
i tried some ways to set the default item showed in it, but failed.
i had tried the attribute value, but it stiil showed the first item.
Can u help me?
in the JSP
<h:selectOneMenu id = "companyName" rendered="true" binding="#{j03CMSyainAddBean.selectCompany}" style="width:150">
       <f:selectItems value="#{j03CMSyainAddBean.companyList2}"/>
</h:selectOneMenu>in the back BEAN
private UISelectOne selectCompany;
private ArrayList companyList2;In the ArrayList companyList2, there are several selectItems.
Thanks
George

Sanjeev K Sharma wrote:
and without messing with /boot/grub/grub.cfg  ?
I need this so that new kernels show up but do not change the default boot kernel
Is there a way to do it by file name instead of position within the menuentry / submenu list?
I found some ubuntu and fedora sugestions but all by position, none by name
AND how to set the kdump kernel as the default?
Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
In /etc/default/grub you can use the name of your entry you wish to use as default
GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
You can tell grub to stop using submenus by doing:
GRUB_DISABLE_SUBMENU=y
Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
menuentry "Other Linux" {
linux <KERNEL IMAGE HERE>
initrd <INITRD IMAGE HERE>
EDIT: /etc/grub/default -> /etc/default/grub
Last edited by Slabity (2015-04-07 11:16:22)

Similar Messages

  • How to set the default value of an item type DATE PICKER to the day of yest

    Hi
    How to set the default value of an item type DATE PICKER to the day of yesterday ?
    Thank you very much !
    Christian.

    Hi Christian,
    Have a look at this thread Re: Default the Date Picker to Today
    It covers this issue in detail.
    Regards
    Paul

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • How to set the default text in an input box or a label to be a predefine, multiline text

    how to set the default text in an input box or a label to be a predefine, multiline text. In other words how to break the line in the code of a text box.
    thank you

    There are a couple of ways of doing this:
    If you're editing on the canvas, press Shift + Enter.
    If you're working in Express View (see lower right hand corner of Project Siena), you'll need to copy a hard return from another app such as Notepad.
    I believe a better implementation of hard returns are in the list of requested functionality that you can find here:
    https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
    Thor

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • How to set the Default values for Info Objects in Data Selection of InfoPac

    Hi All,
    Flat file Extracion:
    How to set the Default values for Info Objects in Data Selection Tab  for Info Package
    ex: Fiscal Year Variant  Info Object having values 'K4' 'Y2' etc  in Flat file
    Initially  default value(not constant)  for this info Object value should be 'K4'  in Info Package
    If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
    Rgds,
    CV

    Hi,
    suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
    haritha

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • How to set the default value in dashboard prompt?

    Hi there,
    In my Dashboard prompt I'm getting values like:
    Mar 2010
    Apr 2010
    May 2010
    Jun 2010
    How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
    Appreciate your help

    hi,
    you can create a Repository variable current_month with the expression as
    select to_char(trunc(sysdate),'Mon')from dual
    and use this in the prompt "Default to" Server variable and use this repository variable.
    hope this helps.
    cheers,
    vineeth

  • How to set the default settment rule for the same kind project.

    hi experts:
       the project of the same kind of the project profile have the same settment rule to one account (G/L).
    how to set the default settment rule for the project of  this kind of the project profile.
    regards

    Hi,
      You need to define the settlement profile and allocation structure.
    next you need to define the  Strategy for settlement rule.
    navigation-PS> costs> automatic and periodic allocations> settlement> Settlement rule for WBS
    --> Define strategy for settlement rule.
    Select the strategy and click on settings. in that new entries, check the Acc Assg element, enter Settlement profile and mention accass category as reposnsible cost center.
    Save this transaction.
    Now create a project assgin responsible costcenter for the WBS element in the project buider and save the transaction.
    Now run CJB2 transaction for the project, settlement rule will generated automatically.
    even you can configure the same for profitability segment.
    Rgds
    Sudhir Reddy

  • How to set the default NetworkInterface for the default socket factory?

    Hi,
    I would like to know how to set the default network interface used by the JVM. I saw that you can specify the network interface when creating a socket. But my problem is that I dont want to change every socket creation in the application and even worse some partner's libraries wich I dont have access to code also create sockets. So is there a way to specify to the JVM wich interface to use by default? I didn't saw any System.properties to set this and my googling fishing didn't return anything usefull.
    Thanks

    By default it will use whichever one the routing tables tell it will give the shortest path to the destination. For globabl changes, adjust your routing tables. You can't do this from Java, you have to use whatever OS tools are to hand.

  • How to set the default value of selectOneChoice

    Hi All,
    I have two selectOneChoice(soc1 and soc2) in two respective pages with the same datacontrol.Now i need to set the default value of soc2 as per the value selected in soc1.
    For eg:-
    if user has selected a value in soc1 say "Bag" in the list then it should set the default value in soc2 as "Bag" when the second page loads.As both the selectOneChoice has been created using same data contol.
    How can i achieve this?
    Please suggest.

    Hi PR/Suresh,
    Thanks for your reply.
    My soc1 shows the employeeId like 100,101,102,103 but it holds the value as employeeName like Navn,Joy,Steve,Mark. I have used valuechangeevent to get the current selected value from soc1 but when i set the value in soc2 in its set property then the log says :-
    *<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "Navn" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc2]*
    My jspx page code of soc2 is :-
    <af:selectOneChoice binding="#{backingBeanScope.backing_temp2.soc2}"
    id="soc2"
    label="#{bindings.FirstName.label}">
    <f:selectItems value="#{bindings.FirstName.items}"
    binding="#{backingBeanScope.backing_temp2.si2}"
    id="si2"/>
    </af:selectOneChoice>
    and in my bean where i am accessing the value from valuechangeevent from soc1:-
    public void getValue(ValueChangeEvent valueChangeEvent) {
    BindingContext bindingContext = BindingContext.getCurrent();
    oracle.binding.BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
    //for iterator name click binding tab in the jsf page
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get("Employees1View1Iterator");
    int curIndex = (Integer)valueChangeEvent.getNewValue();
    Row datRow = iter.getRowAtRangeIndex(curIndex);
    String name = (String)datRow.getAttribute("FirstName");
    System.out.println("the new value is"+name);
    RequestContext requestContext = RequestContext.getCurrentInstance();
    requestContext.getPageFlowScope().put("value", name);
    and then i am setting it to the soc2 in backing bean :-
    public void setSoc2(RichSelectOneChoice soc2) {
    this.soc2 = soc2;
    RequestContext requestContext = RequestContext.getCurrentInstance();
    String val = requestContext.getPageFlowScope().get("value").toString();
    this.soc2.setValue(val);
    In this error i can predict that it is not able to find the 'Navn' in the list of soc2 because in the list it has employeeId which has corresponding value as name of that employee but how do i set the value in soc2 then.
    *<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "Navn" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc2]*
    Any ideas??
    Thanks

  • How to set the default value of a LOV that is found in a view criteria

    HI,
    I need to set the default value of an LOV that is found in a view criteria. I tried to set a groovy expression but unfortunately it wasn't read. i also tried to bind the LOV to a bind variable and set the value of the bind variable in the constructor of my backing bean but unfortunately the default value appeared the second time i entered the screen and not on page load.
    Can anyone advise where can i set the default value,
    Thanks

    if you want some default value in LOV. you go to edit list of value wizard-> UI hint->include no selection Item checkbox -checked.use labeled item first of list- and beside that put the label. but when you try to get value, it will show null.but you can manipulate in ur java , if it default value

  • How to set the default language in preferences- dictionary- language

    Hi guys,
    i like to set the default dictionary language as well as the lookup path of the dictionary via script. I've found the property dictionary path as well as some settings for qoutation under languages with vendors:
    app.languagesWithVendors[INDEX OF LANGUAGE].name
    app.languagesWithVendors[INDEX OF LANGUAGE].dictionaryPaths
    Thats fine, but how can it set a certain language with vendor as the default language for the application itself? Under the Preferences->Dictionary dialog, I can find a dropdown showing the default language. But how can I access this default or set it?
    The application object has a property object called dictionaryPreferences, but this object only contains some flags like the merge behaviour but not the default language itself. So where is it?
    app.dictionaryPreferences.mergeUserDictionary
    Menue
    Dialog
    API

    Ok guys,
    in the meantime I think I got it. I can setup  several dictionaries for several languages. Depending on the language I use in my paragraph styles the according dictionary will be used. Fine for the desktop.
    But what about the InDesign Server! I use the server via scripting and SOAP ports, webservice calls. I've launched several webservice ports, like 10001,10002,10003,10004. In this case, I can set up a vendor dictionary by providing a path via script send to one port 10001 for example. But here are two problems:
    1. The other InDesign Server instances aka webservice ports and engines won't get informed about the change. I have to run the script on all instances.
    2. The change only lives as long as the instance is running but doesn't get saved. After restart the instance, the setup got lost.
    So can I save the dictionary-setup with an pref-xml file, all InDesign Server instances would use and read per default?

  • How to set the default values of the field of the context.

    Hi Experts ,
    I want to set the default value of the field of the context.
    Where and how this declaration should be done.
    Thanks in Advance.

    In the context tab of the view. Select the attribute for which you want to set the default value.it will show the properties at the bottom. set the Default value property to the value which you want to set as the default value.
    Regards
    Naresh

Maybe you are looking for

  • How do I remove my credit card from an apple id account that I'm locked out of?

    I had set up two step verification and through every fault of my own, i lost, misplaced, hid, and or burned the recovery key while at the same time forgetting which of the 10,000 passwords i commonly use.  No i can not guess the Pass word and no ther

  • Connection to CQ5 via CMIS

    Hello, we are trying to connect a SOLR Search Server via CMIS to CQ5. We followed the instructions on the page http://dev.day.com/docs/en/crx/current/deploying/cmis.html with no success. We tried on a standalone CRX installation and that worked. But

  • How to make a pdf report in reports 6i

    I want to generate pdf report in reports 6i directly. I dont want to use option generate to file after opening it into previewer. can anyone help plz?

  • Need to cancel my Adobe PDF Pack subscription

    I just need to cancel my Adobe PDF Pack subscription, as I already bought Adobe Acrobat Pro IX. I have been on chat and on the phone with Customer Support for a couple of times, hours at a time. No response.  I am ready to call my credit card to disp

  • XCode SVN not comparing some file types on commit

    Hello, I'm new to XCode development. I've been looking around for SVN clients and there are a few options, but I know that XCode has a SVN client so I wanted to give it a try. The thing is that, when commiting, the file diff embedded on the SVN clien