ValueChangeListener on a Radio button doesnot populate the list

Hi all,
First thing, thanks everybody for helping me out with this project.I have been struggling with populating the drop down list for quite some time now.
On my page...I have 2 radio buttons New and Existing.
Clicking on New should do nothing.
Clicking on Existing RB should display the "hidden div" which is a drop down list with values from the DB.
New works fine.
When I click on Existing RB for the first time, the "hidden div" is displayed and the drop down list looks empty .
On the server console though, it appears that the list size is 14 and has the values from the DB.
Only when I toggle back and forth between New and Existing that the List is populated with values.
select.jsf
<h:form id="form1" styleClass="form">
<h:selectOneRadio id="radio1" styleClass="selectOneRadio" value="#{selectBean.newOrExisting}"  onclick="return syncRadio();"
immediate="true"  valueChangeListener="#{selectBean.doSave}" onchange="submit()">
<f:selectItem itemValue="new" itemLabel="New" id="one" />
<f:selectItem itemValue="exist" itemLabel="Existing" id="two" />
</h:selectOneRadio>
<tr>
<td align="right"><div id="wait"  style="visibility:hidden;">Select an existing Application</div></td>
<td align="left"><div id="wait1"  style="visibility:hidden;" >
<h:selectOneMenu id="exist" styleClass="selectOneMenu" value="#{selectBean.selected}">
<f:selectItems value="#{selectBean.list1}"></f:selectItems>
</h:selectOneMenu>
</div>
</td>
</tr>
function syncRadio() {
/* retrieve the form object */
var f = document.getElementById("form1");
/* retrieve the collection of options for the radio button in the form */
var r = f.elements["form1:radio1"];
if (r && r.length > 0) {
if (r[0].checked == true || r[1].checked == false){
document.getElementById("wait").style.visibility="hidden";
document.getElementById("wait1").style.visibility="hidden";
else if (r[1].checked == true || r[0].checked == false){
document.getElementById("wait").style.visibility="visible";
document.getElementById("wait1").style.visibility="visible";
return true;
//f.submit();
selectBean.java
public void doSave(ValueChangeEvent event) {
logger.debug("value event method");
String value = (String) event.getNewValue();
if (value != null) {
this.fullName = value;
logger.debug("fullname" +this.fullName);
if (this.fullName.equalsIgnoreCase("exist")){
try{
       logger.debug("hello there");
       this.list1 = new ArrayList<SelectItem>();
        this.list1.clear();
List test = this.getOwners();
SelectItem[] myitem = new SelectItem[test.size()];
      for(int i=0;i<test.size();i++)  {
         Object[] arrayOne  = (Object[])test.get(i);
                    try{
                         SelectItem tmp = new SelectItem();
                         tmp.setLabel(arrayOne[0].toString()+(String)arrayOne[1]);
                         tmp.setValue((Integer)arrayOne[0]);
                         myitem[i] = tmp;
                                this.list1.add(myitem);
}catch(Exception e){
          logger.debug("$$$$$$$$$");
          logger.debug(e.getCause());
          e.printStackTrace();
logger.debug("List" +this.list1.size());
catch(Exception e){
logger.debug("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
     logger.debug(e.getCause());
     e.printStackTrace();
//FacesContext context = FacesContext.getCurrentInstance();
//context.renderResponse();
}It would be of really great help if you could help me solve this.
This has been a show stopper on my page for quite some time.
Thanks Again                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

I found the problem.
The real culprit was my Javascript which I used to show and hide the list.
Now, the valueChangeListener on my drop down list also works fine.
But, I have to find a way to hide/display the list dynamically based on the radiobutton selected.
Iam planning on using the rendered attribute.
Please let me know if anything else is more suitable.
Please.
Thanks.

Similar Messages

  • Using radio buttons to populate a text field

    Hi
    This is my first time creating Adobe Forms and my first time using JavaScript as well. One of the questions on my form asks about Ethnicity and I have about 15 choices for which I created radio buttons. I want the user's choice to populate a textfield, but am not sure how to write the code that will do this. Any help would be greatly appreciated. Thanks

    If you set the export value (aka Button Value, Radio Button Choice) of each radio button to the text you want to show up in the text box, the custom calculate script for the text box, which you should set to read-only, can be simply:
    (function () {
        // Get the value of the radio button group, as a string
        var s = getField("Ethnicity").valueAsString;
        // Set this field's value to the text associated with the selected radio button
        event.value = s === "Off" ? "" : s;
    If none of the radio buttons is selected, the text field will be blank. Change "Ethnicity" above to the actial name of the radio button group.

  • Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

    In the new iOS7, Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

    In the new iOS7, Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

  • Set a default value for a radio button populated with a List of value

    Hi,
    I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
    <af:selectOneRadio value="#{bindings.Code.inputValue}"
    label="#{bindings.Code.label}"
    required="#{bindings.Code.hints.mandatory}"
    shortDesc="#{bindings.Code.hints.tooltip}"
    id="sor1" autoSubmit="true"
    valuePassThru="true" layout="horizontal">
    <f:selectItems value="#{bindings.Code.items}" id="si1"/>
    </af:selectOneRadio>
    I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
    Thanks

    Hi,
    this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
    Frank

  • URGENT,FRM-41337: Cannot populat the list from record group

    Hi all:
    Can anyone help me in that problem?
    I have a database item in the block as a list item with combo box style and I use this code in WHEN-NEW-RECORD-INSTANCE at the form module level to populate that combo box list:
    DECLARE
         group_id RECORDGROUP := FIND_GROUP('group');
         list_id ITEM := FIND_ITEM('employees.job_id');
         x number;
    BEGIN
    IF NOT ID_NULL (group_id) THEN
              DELETE_GROUP (group_id);
         END IF;
              group_id := CREATE_GROUP_FROM_QUERY ('group','select name,TO_CHAR(id) job from cmn_jobs where job_type_id = 4720 ');
         x := POPULATE_GROUP (group_id);
         POPULATE_LIST (list_id, group_id);
         EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
         END;
    That code worked very well and without any problem, but when I change the list item from combo box style to poplist style then the forms give that error:
    FRM-41337: Cannot populat the list from record group
    And an additional null/blanke element appears in the poplist with original element that come from RECORDGROUP.
    So can anyone help me to solve that problem please?

    First, how I can assign a default or initial value DYNAMICALLY to my poplist.Set the default-value to a parameter like :PARAMETER.MYPARAMETER then you can assign the desired default-value to the parameter.
    second, if I have popliste say X for example depend on another poplist say Y ,so when I put the code to populate popliste X on WHEN-LIST-CHANGED on popliste Y and make query then the >forms return FRM-40301 Query caused no records to be retrieved ,but when I have a copy for that code in WHEN-LIST-CHANGED and put it in WHEN-NEW-FORM-INSTANCE at the form >module the form work and returns records, so is it any error or exception in what I did.Can't answer that, you should check :SYSTEM.LAST_QUERY to see why the query does not returnany records.
    At the last, which better to put the code for popliste in PRE-FORM trigger at the form module or in WHEN-NEW-FORM-INSTANCE at the form module.I would use the PRE-FORM-trigger

  • FRM-41337: Cannot populate the list from record group.

    My task is to populate the list after a list changed is triggered in another list item. I have 2 list items, report_type ans subgroup_type. When report type is changed, I have to get the value from it and create a select statement for subgroup_type. Here's what I did in the pre form:
    PROCEDURE INITIALIZE_LIST IS
    BEGIN
    for Preparation status
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_REPORT_TYPE';
    ret_code number;
    -- the following holds select query from which the lst element are d
    -- derived
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''RTV_REPORT_TYPE'' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_report_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and in the s_report_type list change event, here's what I do:
    BEGIN
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_SUBGROUP_TYPE';
    ret_code number;
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''' || :start.s_report_type || ''' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_subgroup_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and the FRM-41337 error is triggered. Please point me out where I missed. Thanks a lot.

    try to change query with this
        'SELECT description, to_char(lookup_code)........and dont delete the group after
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Frm - 41337 - can not populate the list from record group

    Hi
    I have created a form with 4 combo boxes. And i am trying to populate the 4 combo boxes dynamically.
    Here is my table structure.
    BUS_FUNCTION VARCHAR2(500),
    SEQ NUMBER,
    STEP1 VARCHAR2(500),
    STEP2 VARCHAR2(500),
    STEP3 VARCHAR2(500),
    STEP4 VARCHAR2(500),
    KEYSTEP VARCHAR2(4000),
    OBJ_NAME VARCHAR2(500),
    SME VARCHAR2(50)
    In the fist combo box i am retriving bus_function and second seq and third step1.
    i wrote a trigger when_new_form_instance and i am calling a procedure from the trigger.
    here is my procedure code.
    PROCEDURE fp_get_list IS
    l_sql_text VARCHAR2(2000);
    BEGIN
    l_sql_text := 'SELECT bus_function,bus_function FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list22','rgcat2',l_sql_text);
    l_sql_text := 'SELECT TO_CHAR(SEQ),TO_CHAR(SEQ) FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.BUS_FUNC','rgcat',l_sql_text);
    l_sql_text := 'SELECT step1,step1 FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list20','rgcat1',l_sql_text);
    END;
    Now the problem is i can able to get the values fro the first two colums. but the third column values are not populating.
    i am getting an error frm - 41337 - can not populate the list from record group.
    PLease help me in this.
    Thanks in advance,
    Raju

    I got answer
    i write a code in when-new-form-instance
    declare
    v_rg_id RECORDGROUP;
    v_return number;
    v_query varchar2(2000);
    outcome number ;
    begin
    v_rg_id := CREATE_GROUP_FROM_QUERY('RG_LIST','select Dname,To_char(Deptno) deptno from dept');
    v_return := POPULATE_GROUP(v_rg_id);
    POPULATE_LIST('emp.deptno', 'RG_LIST');
    end;
    but remember property of list item must be mapping of others value null and initial value null
    if ur problem not solve then tel me email, i ll send u fmb file

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • Using a radio button to populate another group of radio buttons?

    I am new to Adobe forms and new to Javascript. I have a question on my form with a radio button group (PHQ) with four choices 1, 2, 3 or 4. If the user chooses "1", I want a check to appear in the "No" box for another radio button group (Screen). If, on the other hand, the user chooses 2, 3, or 4, from the PHQ group, I want a check to appear in the "Yes" box of the Screen group. Is this possible? Not sure how to go about doing this.

    I suspect that you have a problem in some portion of your code that you have not posted. To help debugging I suggest you create a simple test using two pages: input.cfm and action.cfm.  Get the most simple case working then add the javascript, css, and CF code to make your application work.
    <!--- contents of input.cfm --->
    <html>
    <head>
         <title>Input</title>
    </head>
    <body>
         <form action="action.cfm" method="POST">
              Choose type: <br />
              <input name="type" type="radio" value="male" />     Male<br />
              <input name="type" type="radio" value="female" /> Female<br />
              <input type="submit" />
         </form>
    </body>
    </html>
    <!--- content of action.cfm --->
    <html>
    <head>
         <title>Action</title>
    </head>
    <body>
         <cfif form.type eq "male">
              Type is male.
         <cfelseif form.type eq "female">
              Type is female.
         </cfif>
         Here is a cfdump of the form variables:<br />
         <cfdump var="#form#" />
    </body>
    </html>
    Message was edited by: JR "Bob" Dobbs
    Added sample for action.cfm

  • Is there a way to automatically align and make same size of check boxes/ radio-buttons like in the image below?

    I create PDF forms on daily basis for multiple people around but still, I create a table in Word and then manually convert it to PDF. I'm using Acrobat X and then I manually create radio buttons or check boxes in each cell of the table so aligning those buttons or check-boxes in the same line is a problem. I know there would be some solution to this but can anyone guide me to that? Also, making the same size of the radio-buttons of check boxes likewise ? ? ?
    Please see the image above and advise how to align them in the same line and how to make them same size using Acrobat X?
    Your help appreciated.

    You should create these fields using the Place Multiple Fields command, so that they are aligned properly and all the same size. Read about it here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS8C2DDC1C-C174-4ad1-893F-B14A1C0289B4.htm l
    Read how to align and distribute fields here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS6D2D2BFC-6F69-4a8b-BDE6-8043D7EE240D.htm l

  • How do I make each Radio button appear in the tab order?

    When users tab through the form, the tab only highlights the first radio button of a group before moving to the next field or group of fields.
    Example: the user is asked for the following information:  LastName, Gender (M/F radio buttons), and BirthDate.
    When tabbing through the form, users are taken from from the LastName field to the Male radio button, to the Birthdate Field. Never does the tab allow them to select Female unless they click it with the mouse.
    It seems like this should be a simple fix, but I can't find it anywhere!
    Thanks for your help.

    That's the way they work. Think of a radio button group as a dropdown or list box. When any of these types of fields receives the focus, you can use the arrow keys to move through the options and the tab key moves to the next field.
    If you set up the group using check boxes instead, giving each in the group the same name but different export value, they will behave as you want. A group of checkboxes will behave a bit different than a group of radio buttons, but it's close.

  • Why not autoskip for radio buttons? and the  update_allowed FALSE issue

    I would so dearly love there to be autoskip for radio buttons. (forms 11.1.1.4 jre 6...24) There is no autoskip property for the radio group nor for the individual buttons.
    I don't find an easy way to emulate it either. Or am I missing something?
    Anyone else solve this problem already? When the user selects a radio choice I want the focus to move
    to the next enabled item on the form. You can do this with text items but not with radio groups. (In some cases the radio group has a when-radio-changed trigger
    that enables/disables following items). This would all be a lot easier if radio groups just had autoskip. I wonder why they don't?
    BTW the following has cost me a huge amount of time. In 6i it was the case in my experience that if you
    disabled an item like this:
    PROCEDURE disable_item (myitem in varchar2) IS
    BEGIN
         copy(null,myitem);
            set_item_property(myitem,enabled,property_false);
         set_item_property(myitem,visual_attribute,'DISABLED');
    END;Then that could be reversed as so (the weird thing was you had to set navigable also despite not
    having changed it yourself.
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
    END;But in 11.1.1.4 I had lots of trouble with Lov's not rising after the item had been disabled and then
    re-enabled. No error message. Just didn't do it. Eventually I figured out that what happens is that
    after disabling an item the item as also non-updateable. This was not the case in 6i. So then
    the enable item code has to be something like this: [Note despite that not update_allowed it did not
    automatically grey out the item firefox 3.6.17 and it still has to be done programmatically.]
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
      set_item_property(myitem,update_allowed,property_true);
    END;

    Well right now 11.1.1.4 for autoskip for radio buttons this seems to be working ok. Crossing my fingers!
    a block level when-radio-changed trigger with after scope (where item level when-radio-changed triggers
    have before scope) with a simple next_item in there.
    Where I was having problems before was next_item-ing onto disabled items. There was some kind of issue
    with lov's. I'm having less trouble raising the lov programmatically. but also I had the problem that
    items were getting set non-update_allowed without my realization.
    when new item instance:
    declare
         currfield varchar2(70) := null;
    begin     
         currfield := :system.trigger_field;
    if (get_item_property(currfield,UPDATE_ALLOWED) = 'TRUE')
         and (get_item_property(currfield,UPDATE_PERMISSION) = 'TRUE') then
           list_values;
    else
         mess(currfield || ' UPDATE not allowed');
    end if;
    end;(mess is my program to display alerts.)

  • Radio button column in the tabular report

    Hi everyone,
    I have a tabular report. I wanted to have radio button and check box some of the field. Please take a look at my sample application.
    http://apex.oracle.com/pls/otn/
    Workspace ==> SHYIN
    username ==> SHY
    password ==> shy
    Application ID : 29879 - TabularForm
    On page 2, of the detail form, I want to have radio button in Primary Contact column and check box in status column. I would appreciate any suggession. Thanks.
    SHY

    Hi Andy,
    I surely come back with new question!
    Now, I am trying to change the status column to check box. I can see the correct status the check box in the form. But when I tried to add new rows or update anything, I am getting "No data found" error.
    here is my query
    SELECT
    APEX_ITEM.HIDDEN(1, SEQ_ID) || APEX_ITEM.HIDDEN(2, C001) || APEX_ITEM.RADIOGROUP(3, C001, NULL, NULL, 'onclick="javascript:$x(''P2_SELECTED_ID'').value=' || C001 || '"') PRIMARY_CONTACT,
    apex_item.text(4,C002) name,
    apex_item.text(5,C004) phone,
    APEX_ITEM.HIDDEN(6, C006) || apex_item.checkbox(7,C001, null, C005) INACTIVE
    from apex_collections
    where collection_name = 'C_CONTACT_INFO'
    this is the updated Contact_Collection
    begin
    IF NOT APEX_COLLECTION.COLLECTION_EXISTS('C_CONTACT_INFO') THEN
    apex_collection.create_or_truncate_collection(p_collection_name => 'C_CONTACT_INFO');
    for y in (select ID,
    NAME,
    PRIMARY_CONTACT,
    PHONE,
    decode(STATUS, 'I', ID, null) status,
    CUSTOMER_ID
    from CONTACTS
    where CUSTOMER_ID = :P2_CUSTOMER_ID)
    LOOP
    apex_collection.add_member(
    p_collection_name => 'C_CONTACT_INFO',
    p_c001 => y.ID,
    p_c002 => y.NAME,
    p_c003 => y.PRIMARY_CONTACT,
    p_c004 => y.PHONE,
    p_c005 => y.STATUS,
    p_c006 => y.CUSTOMER_ID);
    end loop;
    END IF;
    end;
    here is my updated Update_Collection process
    DECLARE
    V_C003 CHAR(1);
    V_C001 NUMBER;
    V_C005 CHAR(1);
    BEGIN
    FOR X IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
    V_C001 := APEX_APPLICATION.G_F02(X);
    IF V_C001 = :P2_SELECTED_ID THEN
    --HTP.P('YES');
    V_C003 := 'Y';
    ELSE
    --HTP.P('NO');
    V_C003 := 'N';
    END IF;
    if APEX_APPLICATION.G_F07(X) = APEX_APPLICATION.G_F02(X) THEN
    V_C005 := 'I';
    ELSE
    V_C005 := 'A';
    END IF;
    APEX_COLLECTION.UPDATE_MEMBER (
    P_COLLECTION_NAME => 'C_CONTACT_INFO',
    P_SEQ => APEX_APPLICATION.G_F01(X),
    P_C001 => APEX_APPLICATION.G_F02(X),
    P_C002 => APEX_APPLICATION.G_F04(X),
    P_C003 => V_C003,
    P_C004 => APEX_APPLICATION.G_F05(X),
    P_C005 => V_C005,
    P_C006 => APEX_APPLICATION.G_F06(X));
    END LOOP;
    END;
    I did not make any changes to Save_Contacts process.
    Thanks
    SHY

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • Radio Button Selection gives "The page cannot be found" Error

    I have a Radio Button that has 4 chooses, one of the choices has Javascript to ask a Prompt and uncheck it depending on the user response.
    When I select the one that has the prompt, it works as expected with the question, however when I click the Submit button on the page to fire my database trigger it fails with "The page cannot be found".
    All the other choices, once picked update the datasbase ok.
    Any idea's from anyone why I'm getting this error?
    script type="text/javascript">
    function yesno(msg,item)
    if ($x(item).name = 'PF' && $x(item).checked)
    confDel= confirm(msg);
    if (confDel != true)
    {$x(item).checked = false;}
    </script>

    Preethi,
    When I click on submit button ,iam getting " The page cannot be found" error.
    When you run the page and click on its submit button, you get the error. Being careful to distinguish problems you get at design time vs. those you get at runtime is extremely important when you ask others for help here.
    I looked at the application. In your problem description, you gave absolutely no information that explains what you are doing on this page. Whatever it is, the problem is that you are creating HTML items on the page with names like
    name="f60"
    Then when you POST the page, you get an error. That's because those "fxx" items are limited to the range "f01" .. "f50".
    Scott

Maybe you are looking for

  • A/P invoice and stock posting

    Hi I have some issues with understanding the following: I have received some item without having issued a PO for them. For these items, master data exists . As common practice with a lot of suppliers, there is no Invoice attached to the shipping, onl

  • How to use a constant rather than a "getter"?

    I'd like to refer to a constant rather than a property using a "getter" (accessor), but I'm not sure how. For example: <f:selectItem itemLabel="Option1" itemValue="#{Constants.MINIMUM}"/> But of course this results in trying to call getMINIMUM(), whi

  • ME54N :How to block/disable/remove the "PO" indicator

    Hi, In the PR release screen (T code: ME54N) we want to block / disable the  "PO"  indicator in other purchase requisition icon (Shift + F5) How this can be done? Regards, Sumit

  • Missing Episode Entourage Season 6 Episode 4

    Any chance of putting this on having sat through from Season 1 Episode 1? Thanks

  • New tab setting keeps resetting to Google, how to make it stay empty?

    I have searched for a way to make my new tabs, which currently open to Google, open as empty instead. I found the way described on this site, which is to go in about:config and change the URL of browser.newtab.url to about:blank. Then, I closed Firef