Checking the first radio box in a dataTable on initial load

Hi,
I have a datatable bound to a UIData object in a backing bean. The data table has a radio check box widget which I use to select a data row. I would like to have the first checkbox checked on an initial load, I tried using EL to no avail.....
Any suggestions or syntax advice is appreciated. Here is my JSF tag inside the data table.... note, friends is a reference to a session variable containing the UIData elements.
<h-bud:column id="budSelected">
                        <f-bud:facet name="header">
                            <f-bud:verbatim>�</f-bud:verbatim>
                        </f-bud:facet>
                        <h-bud:selectOneRadio id="budSelectedValue" value="#{ (friends.data.rowIndex eq 0) ? 1 : 0 }" valueChangeListener="#{friends.doOnSelectRadio}" onclick="selectOne(this.document, this);" immediate="true"><f-bud:selectItem itemValue="#{friendsList.friend.id}" /></h-bud:selectOneRadio>
                        <f-bud:facet name="footer">
                            <h-bud:column id="budEmpty">
                                <f-bud:verbatim>�</f-bud:verbatim>
                            </h-bud:column>
                        </f-bud:facet>
                    </h-bud:column>Cheers
Colm

Hi Meghasyam
Thanks for the reply, I am setting the value of <f-bud:selectItem itemValue="#{friendsList.friend.id}" /> to the value of my "Friends" primary key ID, so I know which user was selected when the form is submitted?
If im correct in understanding you, you are saying that this value must alway be 1. If this is the case, where can I tag a value to the radio box associating it with an ID?
I need to use a radio button UI widget as a checkbox is associated with multiple selections which is not allowed on my form, I need to only allow one selection of the table row per display.
Cheers
COlm

Similar Messages

  • I am trying to install windows 7 to my Macbook pro with bootcamp but every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7", any solutions ?

    Hi, I am trying to install Windows on my MacBook Pro with bootcamp. Every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7". I did this before using the same computer and the same hard drive so I am not sure why this is happening now but did´t happen then. Any solutions ?

    Was your Bootcamp info.plist manipulated to change any options?

  • When I open my Email I get lover lat on the first to boxes where you check to delete

    Only on firefox and just as of two days there seems to be a over lat on the first two boxes of my emails also can not check more then one box at a time to delete. I must look at each email to get rid of them

    You can try basic steps like these in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and only cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Fire fox will not save any passwords even after checking the save passwords box

    I don't know how else to say it, the save password does not work even after checking the save password box if I can't get it fixed I'll use some one else

    Go to Tools | Options and choose the Security tab from the Options dialog. Check the "Remember passwords for sites" checkbox. Click the Exceptions button to make sure the site you want to remember is not listed.
    From that point on, Firefox will record the username and password combination you enter for a site provided it can recognized those fields in the website form. If the username and password are not already recorded for that site, a bar will expand down at the top of the webpage below the page tabs asking you if you want to remember or ignore that new information. Clicking the Remember button will record that information for that site. When you visit that same form again, either the single recorded username and password should automatically appear in the form fields, or a drop-down list of choices will appear when you set the focus to that field. The choices can be filtered by typing the first letters.
    If the "Save password" checkbox you mentioned is displayed on the webpage, it is not a part of Firefox and is a function of the webpage of that site, so it does not affect the ability of Firefox to remember usernames and passwords for a particular site.

  • Why can I not check the 'shuffle images' box in a slide show settings in iPhoto 9.6?

    Why can I not check the 'Shuffle images' box in settings of a slide show in iPhoto 9.6? All other settings I can check but this one.

    Hey Brad,
    If you are unable to select the shuffle images checkbox, follow the steps in this article -
    iPhoto '11: Change slideshow settings
    Specifically -
    To display slides in random order, select “Shuffle slide order.” If you don’t see this option, play the slideshow, move the pointer to make the slideshow controls appear, and then click the Settings button.
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • I am having problems logging into mail and getting mail from MobilMe.  Each day I start Mail I am asked for my MobileMe password.  If I type it in and do not check the remember me box, it is fine.  If I check the box, I can't log in.

    I am having trouble using Mail.  Each time I start the program I am asked for my MobileMe password to retrieve mail.  If I give the password, without the remember me box checked, it works fine.  If I check the "remember me" box, the same same message appears asking me to input the password for MobileMe.  This is only happening for my MobileMe account.

    It sounds to me like your keyboard has been damaged and needs to be repaired or replaced.  Can you try an external keyboard?

  • Firefox goes to my mail immediately after I enter user name and password. I dont have time to check the save password box even tho it does flash by.

    When I enter my username and password for my mail, firefox does not give me time to check the save password box even tho I see it flash by. All other sites work fine and passwords are saved. How can I slow it down so I can enter the check to save password?

    this is the address bitbroadband.com and then I have to enter my username and password then hit submit. that is when it flashes by but does not stop and no icon in left corner of address bar. This is google mail provided by my internet procider

  • 3 cfgrids on one page.  Columns from grid 1,2 and 3 are swapping the first select box from each grid.

    ColdFusion 11, hot fix 3 installed but did not help. There are no binds.
    This one has been driving me crazy and I have finally figured out that it is the first column in each grid where there is a select box via "valuesdisplay" that is the issue. Select box results are switching grids!
    Example of how it is coded to display:
    Grid 1 - gridcolumn should have a dropdown with 1,2,3
    Grid 2 - gridcolumn should have a dropdown with a,b,c
    Grid 3 - gridcolumn should have a dropdown with x,y,z
    However, the results in the dropdowns in the grids are:
    Grid 1 - x,y,z (should be 1,2,3)
    Grid 2 - 1,2,3 (should be a,b,c)
    Grid 3 - a,b,c (should be x,y,z)
    This only happens with the first dropdown for each grid. Any other columns with dropdowns do not have any issues and do not swap out to the wrong grid.
    Sample of my code from the grids:
    Grid 1:
    <cfgrid name = "evalgrid"
      height="200"
      autowidth="no"
      font="arial" fontsize="12"
      query = "getevalfinal"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#">
      <CFGRIDCOLUMN NAME="numberofschools" HEADER="numberofschools"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="Yes" HEADERITALIC="No"
      VALUES = " ,NA,1,2,D"
      VALUESdisplay = "Blank,NA,1,2,D" valuesDelimiter=","
      width=50>
    </cfgrid>
    Second Grid:'
    <cfgrid name = "SecondGrid"
      height="100" width="700"
      font="arial" fontsize="12"
      query = "getsecurity"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#"
      autowidth="yes"
      >
      <CFGRIDCOLUMN NAME="userrole" HEADER="userrole"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="YES" HEADERITALIC="No"
      VALUES = "#olduserrole#"
      VALUESdisplay = "#olduserrole#" valuesDelimiter=","
      WIDTH=300
      font="arial" fontsize="12">
    </cfgrid>
    In the above code, userrole values end up being in the wrong grid where numberofschools values should be and vice versa.
    Appreciate any help!
    B.

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • How can you view multi day events in month view without having to check the "all-day" box?

    I have multi-day events that I would like to be able to view in the month view.  The only way that I have found to do this is to make the event a "all-day" event.  Is there another way to view these events in month view, or am I stuck? 

    It shows multi-day events that are "all-day" events.
    But for a non "all-day" event that happens to span multiple days, it only shows the first day

  • Is there a keyboard shortcut to go to the first text box on a page when the focus is on the Location Bar?

    I can use Alt+D to get to the Location Bar to type in a URL, but is there a way I can then go to the default text box, to enter data, once the search engine page has been opened, by using a short-cut key? I didn't recognize any of the commands in the Shortcut Keys page as being what I want.

    This was helpful, but didn't really answer the question. Pressing Tab when I"m on the google Location Bar takes me to the search text box, which is what my motivation for writing the question was, but I notice that on many pages, it doesn't work. This page, for instance.
    I went to the about:config page and changed the <b>accessibility:tabfocus</b> from 1 (tab through every element) to 5 (only tab to the text boxes and links) but it seems to still tab through every element.

  • Batch processing from Bridge: checking the "include "Subfolders" box

    My request is simply to make this function work.
    This would help my workflow enormously. If the processing simply reproduced the folder structure on the destination drive, as selected in the "Destination: Choose" dialogue, that would be completely adequate. TIA.

    Thanks, Omke; ignore that Q. I posted on the "Features" thread.
    I just ran a quick test on Dr Brown's 1-2-3, but selecting it via "Scripts"; amazingly, the "Include subfolders" check box appears.
    The only part that does not seem to work is that the results of the processing seem to be in one folder only (rather than the processing following the folder structure of the folders, or, in the case of using 1-2-3 from Bridge, TIFFs appearing in one folder marked "TIFFs" and JPEGS in their own folder).
    Not a big problem, but if there is a way to reproduce the folder structure of the *Source* files and subsolders, I will be 100% happy!
    Cheers, kl

  • Media cache files do I check the save media box

    I am trying to optimize my system and under the preferences under media it is set to the default on the C: drive.  Here is my setup I have a 1TB C:\ for OS and programs and four 1TB drives setup Raid 5 which is my D:\ drive and 24GB of Ram.  If I understand correctly I should set my Media cache files and Media cache Database to the D:\ drive?  If I check Save media files next to originals dose this do the same thing?  Also with 24GB of ram what and where should I set my pagefile to?

    Your raid is nearly three times faster than your boot disk, so I would put the media cache files next to your projects on the raid. With 24 GB memory, the location of the pagefile is not really important, since it will hardly be used, due to the good memory management of PR. If you use on-board IHCR, you may put the pagefile on C because the IHCR is pretty slow in comparison to a dedicated controller.

  • FF 20.0 now opens with tabs that I closed in previous sessions even when I close without checking the open tabs box. How to fix?

    OS 10.7.5; FF 20.0

    Firefox will automatically resume your previous session if it detects that it crashed. I'm not sure how to troubleshoot that on Mac, but you could check out the "Firefox hangs when you quit it" part of this article: [[Firefox hangs or is not responding - How to fix]].
    You might also want to review your home page setting as some tabs might appear there that weren't intended to open every time you start Firefox:
    Firefox > Preferences > General

  • I checked the always save box for downloads and now don't have the option of "open"

    I tried looking at the the firefox application thing and it said "always ask" next to things, but it isn't asking. Not sure how to get my open or save box back!

    You can rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Director: Show Folder (Linux: Open Director; Mac: Show in Finder)

  • I have iTunes 11.1.4 and I can't find iTunes radio. I have the internet radio box selected in preferences. Any help?

    Help me find iTunes Radio

    Hi there waterr92,
    You may find the information in the article below helpful. Note: Currently, iTunes Radio is U.S. only.
    iTunes 11 for Mac: Listen to iTunes Radio
    http://support.apple.com/kb/PH13697
    -Griff W.

Maybe you are looking for