How to select the default value for a choice of selection when page.jsff load

Hello everyone, I am newbie have little problem

I have problem with soc (selectOneChoice)
in this case I ' to select the default value of af: SelectOneChoice (select first selectItem) when the page is finished loading

< af:selectOneChoice label = "" Jenny Bahan: "id = 'soc1'"
autoSubmit = 'true '.
valueChangeListener = "#{WHStockSetReleaseBean.cekJenisBahan} '"
Binding = "#{WHStockSetReleaseBean.v_jenisBahan}" >
* < af:selectItem label = "GBB" value = "GBB" id = "si2" / > * = > i'want to select this value for the default (select first selectItem)
< af:selectItem label = "GBP" value = "GBP" id = "si1" / >
< / af:selectOneChoice >

If someone help me to solve this problem

THX
agungdmt

Hello

try to set the attribute value to af:selectOneChoice like that.


Kind regards
Sicard.

Tags: Java

Similar Questions

  • Web site created by Muse. The greats until tweek of today. Web site insists now for open index.html in the tablet. Don't know how product, nor how to change the default value for pc of office/index.html. Would advise. Bob

    Web site created by Muse. The greats until tweek of today. Web site insists now for open index.html in the tablet. Don't know how product, nor how to change the default value for pc of office/index.html. Would advise. Bob

    Hi Bob

    I think that you have found the solution but if still you are facing the question, please give me the url of the site that opens another provision in the tablet.

    Please make sure desktop redirection is checked in the site properties page layout.

    Thank you

    Sanjit

  • How to set the default value for the digital control on front panel?

    How to set a default value for a numeric control of LabVIEW 2009 Front Panel? I have several input values that are actually configuration settings I want to settle with the default values of zero. I want them to be the values displayed when the façade first appears until the code is executed.

    I really want to use the Minimum and Maximum limits by default for this because I still want to be able to define acceptable limits for values.

    I would not be able to specify a default value of zero for these entries?

    Enter the desired value, then "right click...... of default data of value to operations. Save the VI.

  • How to reset the default values for the import of images

    With the help of Windows 8. file import settings have been changed for a tag, which was a mistake.  I can't change the import settings because the import happens too fast for me to get click on that link the import settings.  Is there a way to reset the default values to their original settings, so I can get things organized again?

    If it isn't a recent phenomenon then try to fix things via the system restore.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (7 or 8).
    http://support.Microsoft.com/kb/936212/#appliesTo

    See, control Panel\All Control Panel Items\Recovery\ Open System Restore

    Change the settings for importing pictures and videos
    http://Windows.Microsoft.com/en-AU/Windows7/change-settings-for-importing-pictures-and-videos

    See control Panel\All Control Panel Items\AutoPlay, maybe you can click on 'Reset all default settings'?

  • How to give the default value for an attribute in the OPA

    Hello

    I need a default attribute boolean to true at the beginning of the session of the OPA. I need to use it to control the visibility on some pages.

    Can someone please throw light on how to best implement this?

    Thank you.

    You have a few options (as always with the OPA!)

    If you use determinations of Web and that you have defined your own screens, then the easiest way is to define a default in the screen - you can either do a default static or dynamic based on an attribute is proved by a default rule.

    If you want a value by default when you debug without using screens, so you're better off just writing a rule to set the default value. It's kinda interesting with a Boolean value as you do not need to tell the value of the attribute OPA - it is inherent in the name of the attribute. For example, if you had a conclusion "control is visible" (with no = "true" or whatever it is) it would be set to 'control is visible' to 'true '. Set it to false, you simply need to type "control is not visible" - which actually (thanks to OPA assuming a 'subsidiary conclusion') defines "control is visible" to "false".

    You can then replace it in the debugger of via a screen issue (if you force the question).

    I don't know how it would work with server of determinations if you had a default value proved by a rule, but has also provided a value in the data - maybe someone else can clarify if the rule takes precedence over the input data? My usual approach is to try locally in OPM and see (using something like SOAPUI to integrate with the determinations OPA server web service). If that's the best way to implement this course (or indeed if using a default value of visibility control screen is best practice) is difficult for me to say - I am a relative beginner!

    Hope that helps a little...

  • How to add the default value for the "Full - Text Search" box

    Hi all

    I am looking for the ability to add a default value for the "Full text search" box in the search form.

    Example:

    When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as

    xField1 = txt1 and xFiel2 = txt2.

    and Furthermore we need full-text = Hello world.

    Is this possible?

    Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:

    http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2

    It is possible to add full-text criteria here? Somethig like: & text = Hello World

    Thank you

    Leon

    It is not possible in a very obvious way, not to mention that it is a rather strange request.  I can't really imagine a realistic use for this case.

    Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =Hello World" "")

    To do this in a profile in the secondary effects of the profile section, add the following:

    <$dpPromote("QueryText",>Hello everyone") $>.

  • How to set the default value for a selector to display based on another analysis

    Hello

    I have a requirement where I have to choose a different opinion to an analysis based on the data from the analysis. More specifically, I have a bar graph that must adapt to the view that is appropriate for the data that the user seeks to (according to the instructions of the dashboard).  A few times, the user can focus on two weeks of data and it's OK to see 14 bars in the bar chart (one for each day), but when the user is looking at a value a year of data, the data should be grouped by month.   I've seen for each that look good and the view selector works.  My problem is that I need reviews to be selected without the user to search through the view selector drop-down.  I also have the logical case (in a separate analysis of the same dashboard) who says what the best view of the user.

    How can I programmatically change what view of the picker view is presented to the user?

    Justin W. Steigerwalt

    ADT Security

    (404) 759-1971

    [email protected]

    My solution for this is to count the number of "," in the prompt value.

    The calls to set a variable of presentation and I just have to count the number of commas in the value of the variable of presentation. When you select several entries of the presentation variable is a simple comma-separated list.

    How to count commas? The shortest path was provided by Christian Berg (I was doing it less "optimally"): length - LENGTH (REPLACE (string, ',' ")) + 1

    If your guest set a presentation named "pv_week" the formula variable is: LENGTH('@{pv_week}{-}') - LENGTH (REPLACE (' @{pv_week} {{}}', ',' ")) + 1

    Then just use it in the CASE WHEN (attention to the always return the same type of data, so if the granularity of weeks and months is VARCHAR, the granularity of the day must be also a VARCHAR and not a DATE, you must CAST to avoid problems).

  • How to set the default value for the Group of radio buttons

    Hello
    Here's my situation.
    I have a form of HTML text. In the form, I have an element called "* drinks * ' and its options in the radio button group or coffee, tea. Now, I want to put a default value("NA") to the radio of drinks group. Is it feasible. If so, how. Advice would be useful. Thank you

    Hello!

    You can also set a default value in the radio unit of page article under the default setings. Here, you must put the result value (if you have static: Café;) One, the; B, NA; C you write C if you want NA default choice) of your radio.

    concerning

  • How to restore the default values for the appearance of my computer settings?

    I was screwing my Windows 7 (64 - bit) advanced appearance settings Toshiba laptop and I can't understand how it get back all default settings.  Can anyone help?

    Right-click on your desktop and choose personalize, then click on the "Windows 7" theme in the Aero section.  It is the default theme and resets all other parameters related appearance - including colors, fonts, and styles.

  • How to change the default value for the Windows Explorer window resizing

    I recently reinstalled XP and now when I open Windows Explorer, the window opens it up to a size of about 1/8 of the size of the screen.  I keep the resizing to how I like it, but every time that I re - open, he is reduced to the size of 1/8th.  How can I make my default size size that Windows Explorer opens up to.

    I have already tried:

    Open a window and make it the size you want

    Open a 2nd window and are the same size.

    The 1st window to the front, hold CTRL and click the red X in the upper right corner.

    Close the window of the 2nd in the same way using CTRL.

    Display settings files from the tools-> Folder Options-> view tab-> advanced settings, managing pairs of Web pages and folders, check the DISPLAY SETTINGS of don't forget NOT EVERY FOLDER

    None of those who work.
    Help please!
    Any window that you want to resize all the time must be the last closed window. This includes now does no other windows minimized in the taskbar.
     
    Take the corners of the window and drag it to the format full screen. Do not use to expand. Close all other windows all first via the taskbar and this one last. Windows will remember the size of the last closed window the next time that you open the program.
     
     

     
  • How to change the default value for [Black] RGB to CMYK Indesign CC2015

    I inherited a file which is defined by default black in RGB. In the preparation of the document, its intention is set up to print. How can I change the mode from RGB to CMYK color? I already tried to convert profiles and assigning profiles. I use InDesign CC2015.

    Thank you!

    Create a new print document with the same basic grid settings and the same size of document with page 2.

    Drag all the pages from one to the other document.

    Remove the first 2 pages.

  • How to set the default value for the search results per page?

    RH8 RoboHelp HTML. TOC published is published with a search option and search results per page default is 10. Where can I reset it to something like 20 or 30 (the table of contents has a lot of room so that a large number of returns).

    Look at the whform.js file in the folder of release of Webhelp for var gnMaxRslt = 10; and change the number here.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Display the default value for POPUP LOV

    Hello

    How to display the default value for the element whose type is LOV POPUP?

    Version 4.2 of the apex

    Thank you.

    Hi Sunil,

    Sunil Bhatia wrote:

    Change the default value to "SQL query"

    And set the default value:

    SELECT PERSON_ID PEOPLE WHERE USER_NAME = lower(:APP_USER);

    -Sunil Bhatia

    There is no default Type-> "SQL query".

    BO123 :

    Change the default value--> "Body of the PL/SQL function" Type and value by default to:

    DECLARE
    
      L_PERSON_ID PEOPLE.PERSON_ID%TYPE;
    
    BEGIN
    
      SELECT PERSON_ID
        INTO L_PERSON_ID
        FROM PEOPLE
       WHERE USER_NAME = lower(:APP_USER);
    
      RETURN L_PERSON_ID;
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
      RETURN NULL;
    
    END;
    

    Better make a packaged function and just call that work instead of writing all the code by default the value of the item.

    Kind regards

    Kiran

  • How can you specify the default value for the undefined array elements

    According to aid LV, the tables have two default values, the normal default value and the default value for the undefined array elements.

    I assume that there must be a way to specify the default value for later, but I can't find it anywhere.  Any ideas?

    I know that you can drag the item out of the table container.  Change the default value on this scalar element.  Then drag the item in table tank.

  • BlackBerry Z10 well defined, I can't get the phone to ring and vibrate as the default value for all calls. I can put individual contacts, but I want to ring and vibrate for all.

    Although the value, I can not phone ring and vibrate as the default value for all calls. I can put individual to vibrate and ring contacts and it works but I want as the default for all incoming calls. Any help would be appreciated, thanks

    Sorry, I found the answer in the manual

    "Change your ringtone, sounds or alerts.

    GoTo settings\notifications to the bottom of the screen select application\phone

    You can activate vibrate out there, put the ringer default etc.

Maybe you are looking for