SelectOneRadio - IE vs FF

I've seen some hints on this issue, but nothing definitive. Any suggestions?
It's got to be something I'm not grasping, but I did have a similar issue with
selectOneMenu using 1.1 that went away using 1.2.
Using IE6
When selecting one of three radio buttons, the valueChangeListener
does not fire. Selecting a second radio button, it does and performs what
is expected from selecting the first radio button.
Using FF2
All is well.
No message results, no exceptions. All conceivable variations; immediate,
renderResponse, etc. have no effect.
<h:selectOneRadio value="#{ecb.chartTypeSelected}"
valueChangeListener="#{ecb.onChartTypeChange}"
onchange="submit()">
  <f:selectItem itemLabel="c1" itemValue="c1" />
  <f:selectItem itemLabel="c2" itemValue="c2" />
  <f:selectItem itemLabel="c3" itemValue="c3" />
</h:selectOneRadio>
public void onChartTypeChange(ValueChangeEvent e) {
  resetTabButtons((String) e.getNewValue());
private String chartTypeSelected;
public String getChartTypeSelected() {
  return chartTypeSelected;
public void setChartTypeSelected(String chartTypeSelected) {
  this.chartTypeSelected = chartTypeSelected;
}

and the answer is...use onclick, not onchange.
guess my first time use of a radio button and the different browser results got me twisted up.

Similar Messages

  • How to get selected value from selectOneRadio ???

    Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
    Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
    Plzzzzzzzz i need help

    You have a datatable in which each row is a question, correct?
    Also in each row you have 5 possible answers that are in a radio, correct?
    So,
    You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
    So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
    ex:
    <h:selectOneRadio value="#{notas.selectedString}" id="rb">
    <f:selectItem itemValue="#{notas.valuesList}"/>
    </h:selectOneRadio>
    Search the web for examples like yours.

  • Can af:selectOneRadio initial selection be set to values from view object?

    Using JDeveloper 11.1.1.4
    Hi all. I have a selectOneRadio on a data entry page which works well. Now I want to (if possible) use the selectOneRadio on an edit page--setting the choice initially to the values that were stored in a database table's record (from the data entry page). I am able to retrieve the data selected in the data entry page, but I can't find anything referencing what I want to do on the edit page. Note that my selectOneRadio objects are actually on jsff's in a region on a page. I've supplied how I designed selectOneRadio on the data entry page in hopes that someone can gleen from it and tell me how to set one up on the edit page and set its initial value to the value combination stored.
    There are two columns in the data displayed (example):
    Short Format / Text
    Short Format / Comma Delimited
    Long Format / Text
            <af:selectOneRadio value="#{bindings.Pay_File_Data_FmtVO1.inputValue}"
                               shortDesc="#{bindings.Pay_File_Data_FmtVO1.hints.tooltip}" id="sor1"
                               inlineStyle="text-align:left; font-size:2.0em;"
                               autoSubmit="true" showRequired="false" label="File Format">
              <f:selectItems value="#{bindings.Pay_File_Data_FmtVO1.items}" id="si111"/>
            </af:selectOneRadio>
    public class FileTypesBean {
        String fileFormat = null;
        String dataFormat = null;
        public BindingContainer getBindings() {
            return BindingContext.getCurrent().getCurrentBindingsEntry();
        public void getFileTypesSelection(ActionEvent actionEvent) {
            fileFormat =
                    (String)resolveExpression("#{bindings.Pay_File_Data_FmtVO1.attributeValue}");
            dataFormat =
                    (String)resolveExpression("#{bindings.Pay_File_Data_FmtVO1.attributeValues[1]}");
            //System.out.println("dataFormat = " + dataFormat);
            // now put in ParamsBean for use
            AdfFacesContext afci = AdfFacesContext.getCurrentInstance();
            ParamsBean params =(ParamsBean)afci.getPageFlowScope().get("paramsBean") ;
            params.setFileTypeParam(fileFormat);
            params.setFileDataTypeParam(dataFormat);
        public Object resolveExpression(String el) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ELContext elContext = facesContext.getELContext();
            ExpressionFactory expressionFactory =
                facesContext.getApplication().getExpressionFactory();
            ValueExpression valueExp =
                expressionFactory.createValueExpression(elContext, el,
                                                        Object.class);
            return valueExp.getValue(elContext);
    }Thanks in advance,
    Troy
    Edited by: Hoopestr on Apr 18, 2012 10:54 AM

    in the amimpl have an edit method, get the value you want to set and set that value for your af:selectOneRadio, row.setAttribute(PayFileDataFmtVO1, value);

  • Af:selectOneRadio immediate attribute does not work

    Hi,
    I am using ADF 10g faces components. I have af:selectOneRadio component on my page. I have few required fields on my page. I have set autoSubmit=true and immediate="true" to this component but still the validation fires and show validation errors.
    Anyone with solution would be appreciated.
    --Chintan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    immediat = true does suppress client side validation but not server side validation. For this, in a Value Change Listener, you need to call facesContext.renderResponse()
    Frank

  • H:selectOneRadio required true does not work

    Hi,
    I have a selectOneRadio and it was a required="true" attribute. Some how, it never works. All the other validations in the page work except this one. Any clues??
    <h:panelGrid columns="1">
         <h:outputText value="Handbook Type " styleClass="outputText"></h:outputText>
         <h:selectOneRadio id="selectOneRadioID" layout="pageDirection"
              required="true" styleClass="selectOneRadio"
              value="#{pc_SelectCriteriaForFilingTypeNotesBody.currentHBT}">
              <f:selectItems
                   value="#{pc_SelectCriteriaForFilingTypeNotesBody.handBookTypeList}" />
         </h:selectOneRadio>
         <h:message for="selectOneRadioID" errorClass="errorMessage"></h:message>
    </h:panelGrid>I don't have immediate on my button. I am using Sun's RI 1.0
    Thanks,
    Dushy

    Hi Dushy,
    Try putting an inline message or message list component in the page. This would show any error messages and it would be easier to understand what is happening if there is an error.
    Cheers :-)
    Creator Team

  • ADF - use of selectOneRadio to programmatically display or hide other comps

    Hi guys, I am totally new to ADF and will appreciate any help that you can give me. This has to do with the selectOneRadio component and then some.
    I currently have an ADF jsp form with values that are bound to the underlying entity. The page also has a backing bean. I tried to change one of the components to the selectOneRadio component by deleting the text component on the form, then selecting the text component from the data control palette and dropping it on the form as a selectOneRadio component that's automatically bound to the underlying database column in an attempt to create a static list. However, when I try to run the form, it is not rendered and I get the following error message:
    500 Internal Server Error
    javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
         at com.sun.faces.el.PropertyResolverImpl.isReadOnly(PropertyResolverImpl.java:274)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.isReadOnly(FacesPropertyResolver.java:124)
         at com.sun.faces.el.impl.ArraySuffix.isReadOnly(ArraySuffix.java:236)
         at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:209)
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
    I am using JDeveloper 10.1.3. Could you please help out.
    Additionaly, how do you default the selection in a radio button group? There are 3 radio buttons in this radio button group and I would like the first
    one to be automatically selected when the user enters the form. And based on the selected radio button, I would like to hide and display certain fields
    on the form as well. For example, if radio button A is selected, display field A (hide fields B and C). If radio button B is selected, display field B
    (hide fields A and C) and if radio button C is selected, display field C (hide fields A and B).
    I would really appreciate your help on this
    Thanks a lot

    Thanks for your response Shay. I already came across that tutorial and I followed all of the steps to create the radio group but it still will not render. However, I noticed that if I create a new project and just drop the collection from the data control on to the form, delete the text item, create a selectOneRadio from the collection that is bound to that database column, the form is rendered when I run it. I wondering if trying to create the select one radio after adding a backing bean for the page is the problem.
    To by pass this, I deleted the selectOneRadio that is bound and causing the problem, created an unbound selectOneRadio from the components palette. Now the form is rendered when I run it. However, my next hurdle would be to pass the value selected in the selectOneRadio back to the model layer so that the targeted column is updated accordingly. Can somebody help me out here please??
    The second link seems to do what I have in mind except that it disables the items instead of not displaying them. I still have no idea how he does that. Has somebody come across any tutorial that explains step by step how to create a selectOneRadio and conditionally display other components based on the radio button selected? I would really appreciate some pointers here. Or is somebody kind enough to explain step by step how to accomplish this?
    Any help is really appreciated.
    Thanks guys!

  • Not able to use selectOneRadio from LOV in TreeTable

    I am on Jdev ADF 11.1.1.3.0 version.
    I have QuestionVO which has attribute called selectYesNo. This attribute has LOV of type Radio Group.
    This VO has master detail relationship with master VO called CategoryVO.
    In my JSF page, I want to drop this as TreeTable from the datacontrol However, when I try to show selectYesNo as selectOneRadio it does not work. When I drop other attributes in the VO as outputText, their values are bound to #{node.questionNum}, #{node.questionDescr} and so on. But when I drop the seletYesNo attribute as selectOneRadio it shows the value binds to #{bindings.selectYesNo}
    Simply changing the binding to #{node.selectYesNo} does not work and gives this exception:
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    javax.el.PropertyNotFoundException: Target Unreachable, 'selectYesNo' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:126)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:481)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:411)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:116)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1213)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:103)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.encodeChild(TreeTableRenderer.java:747)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1932)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:1601)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1003)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:504)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.encodeAll(TreeTableRenderer.java:600)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:529)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1515)
    How do I display selectOneRadio based on LOV inside of TreeTable component?
    Please help.
    Edited by: Shah23 on Aug 3, 2011 6:51 PM
    Edited by: Shah23 on Aug 3, 2011 6:51 PM

    Doing so did not work.
    Convert to.. and selecting Select Boolean Radio simply converts the outputText to selectOneRadio without changing the value binding.
    Value binding still shows "#{node.selectYesNo}.
    Running the page with this does not show any data. The tree node expands with blank rows.
    Another observation I had is:
    Under expression builder I see,
    JSP Objects
      >node
          >SelectYesNo
          >bindings
             >SelectYesNo
    What is the difference between node and node.bindings attributes?
    I could not find any documentation related to this topic.
    Please suggest.
    Edited by: Shah23 on Aug 4, 2011 10:39 AM

  • Missing focus indicator for selectOneRadio

    Hello,
    I am using JDeveloper 11.1.1.6.0.
    I am working on a project that is required to meet accessibility standards and have run across an issue with the selectOneRadio. When there is no selection made in the radio (either by default or manual selection) and I tab to the radio button(s), there is no focused indicator (i.e. the dotted outline that tells users that the element is in focus).
    The strange thing is that when one of the radio buttons are selected, tabbing over it DOES show the focused indicator.
    I do not see any CSS that is disabling the outline when the radio button is focused.
    I have tried adding some skinning selectors (see below) to no avail.
    I use this page for reference when skinning ADF: Oracle ADF Faces - Selectors for Skinning ADF Faces Components
    Things I have tried:
    af|selectOneRadio::native-input:focus { // This one seemed the most obvious to me, but it does not have any effect.
        border: 1px dashed #000000;
    // This one was in desperation. Doesn't work either.
    af|selectOneRadio:focus,
    af|selectOneRadio::content:focus,
    af|selectOneRadio::content-input:focus {
        border: 1px dashed #000000;
    Any ideas what would be causing this or how I could get it working?

    Not really sure what happened, after about 45 minutes the app indicator appeared. I can't recall any actions during that time period that would cause it to be fixed.

  • Unable to handle af:selectOneRadio in Oracle ADF to integrate with OIM

    Hi,
    We are trying to integrate ADF form into OIM
    Scenario
    We have 2 radio buttons on the page of type <af:selectOneRadio> 1.Roles,2. Locations which are mutually exclusive
    and there are 2 facetsin a panel
    1. one is "roles listbox" of type <af:selectOneChoice>
    2. second is "locations" of type <af:SelectManyShuttle>
    when i select "roles" radio button following should be enabled
    1. roles listbox of type <af:selectOneChoice>
    when i select "locations" radio button following should be enabled
    2. locations of type <af:SelectManyShuttle>
    we want this page as tabbed one in OIM
    we are getting the below exception when we select the "locations" radio button.Infact, we are unable to achieve the above functionality
    java.lang.NullPointerException: ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1
    pls let us know how to handle this scenario. pls see the code below which we have done in managed bean and jspx page
    The code is given below:
    Managed Bean:
    public void customUserProfileChangeEvent(ValueChangeEvent valueChangeEvent) {
    RichSelectOneRadio radio1 = (RichSelectOneRadio)valueChangeEvent.getSource();
    if (radio1.getValue().equals("1")) {
    RichSelectOneChoice selectOneChoice = (RichSelectOneChoice) FacesContext.getCurrentInstance().getViewRoot().findComponent("soc1");
    RichSelectManyShuttle richSelectManyShuttle=(RichSelectManyShuttle) FacesContext.getCurrentInstance().getViewRoot().findComponent("sms1");
    selectOneChoice.setDisabled(false);
    richSelectManyShuttle.setDisabled(true);
    else
    RichSelectOneChoice selectOneChoice = (RichSelectOneChoice) FacesContext.getCurrentInstance().getViewRoot().findComponent("soc1");
    RichSelectManyShuttle richSelectManyShuttle=(RichSelectManyShuttle) FacesContext.getCurrentInstance().getViewRoot().findComponent("sms1");
    selectOneChoice.setDisabled(true);
    richSelectManyShuttle.setDisabled(false);
    MyProfile.jspx
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="customtabsBundle"
    value="#{adfBundle['oracle.iam.examples.customtabs.CustomTabsBundle']}"/>
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <af:componentDef>
    <af:panelStretchLayout id="psl1a">
    <f:facet name="center">
    <af:panelGroupLayout id="pgl1" layout="scroll"
    styleClass="AFStretchWidth">
    <af:popup id="popupDialog" contentDelivery="lazyUncached">
    <af:dialog id="message"
    title="#{customtabsBundle.MESSAGE_POPUP_TITLE}"
    titleIconSource="/images/info.png" type="none">
    <af:panelGroupLayout layout="vertical" id="pgl3">
    <af:outputText value="#{profile.popupStatusMessage}" id="ot3"/>
    </af:panelGroupLayout>
    <f:facet name="buttonBar">
    <af:panelGroupLayout layout="horizontal" id="pgl4">
    <af:commandButton text="Ok" id="okButton"
    actionListener="#{profile.hideStatusMessage}"
    partialSubmit="true"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:dialog>
    </af:popup>
    <af:panelTabbed id="dc_pt1" styleClass="AFStretchWidth"
    inlineStyle="height:435px; width:1200px;">
    <af:showDetailItem text="#{customtabsBundle.ATTRIBUTES}"
    id="dc_sdi2" immediate="true">
    <af:panelFormLayout id="dc_pfl1" inlineStyle="height:47px;">
    <af:selectOneRadio label="Request Access By" id="sor1"
    valueChangeListener="#{profile.customUserProfileChangeEvent}"
    autoSubmit="true" value="1">
    <af:selectItem label="Access Role" value="1" id="si1"/>
    <af:selectItem label="Location" value="2" id="si2"/>
    </af:selectOneRadio>
    </af:panelFormLayout>
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="dc_pgl1"
    inlineStyle="width:1172px; height:196px;">
    <af:panelSplitter id="ps1" splitterPosition="206"
    inlineStyle="width:1151px; height:194px;">
    <f:facet name="first">
    <af:selectOneChoice label="Access Role" id="soc1" disabled="false"
    partialTriggers="sor1">
    <af:selectItem label="Role1"
    value="Role1" id="si3"/>
    <af:selectItem label="Role2"
    value="Role1" id="si4"/>
    </af:selectOneChoice>
    </f:facet>
    <f:facet name="second">
    <af:selectManyShuttle label="Location" id="sms1" disabled="true"
    partialTriggers="sor1">
    <af:selectItem label="Location1"
    value="Location1" id="si5"/>
    <af:selectItem label="Location2"
    value="Location2" id="si6"/>
    </af:selectManyShuttle>
    </f:facet>
    </af:panelSplitter>
    </af:panelGroupLayout>
    <af:commandButton text="#{customtabsBundle.APPLY}"
    actionListener="#{profile.updateUserAction}"
    id="dc_cb2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:componentDef>
    </jsp:root>
    Thanks in advance..
    Edited by: Madhavi Panuganti on Jun 20, 2012 4:24 AM

    are u using an RTF template?
    u need to use
    <?html2fo: COLUMN_NAME?>
    instead of <?COLUMN_NAME?> in the RTF template
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
    Edited by: anupma.s on Feb 21, 2013 11:12 AM

  • Radiobuttons not visible in firefox using h:selectoneradio

    Hi ,
    We are facing certain issues regarding rendering radio buttons in firefox.
    It works fine in IE but doesnot work in Firefox
    Please find the below block of code.
    In the code shown below,there are two panels for displaying radio buttons.
    Last piece of code which displays commandlink is visible ,but the radiobuttons which needs to be shown on pageload is not visible.
    When we click on commandlink , the flag showMoreValues turns true and only on click of this link the radiobuttons in second part of the code is visible.
    Can you please help me out regarding this issue?
    <a4j:form id="subscriptionForm"
                                       ajaxSubmit="true">
                             <f:loadBundle basename="dk.tdc.resources.Messages" var="msgs" />
                                       <h:panelGrid columns="1">
                                            <h:panelGroup rendered="#{subscriptionCard.showValues}"
                                                 id="ValuesList">
                                                 <h:panelGrid columns="4"
                                                      columnClasses="address_col1,address_col1,address_col1,address_col1">                                                       
                                                           <c:forEach var="privateProducts" items="#{subscriptionCard.Values}">
                                                                <h:selectOneRadio id="#{privateProducts.description}"
                                                                     valueChangeListener="#{subscriptionCard.productChanged}"
                                                                     value="#{subscriptionCard.selectedProductCode}">                                                                 
                                                                     <a4j:support event="onclick"
                                                                          reRender="convertingForm,privateParamCard,businessParamCard,errorDetailsSubs,facilitiesCard,numberSelectCard,npPanel,paymentFormCard" />
                                                                          <f:selectItem itemLabel="#{privateProducts.label}"     itemValue="#{privateProducts.value}" />
                                                                </h:selectOneRadio>
                                                           </c:forEach>
                                                 </h:panelGrid>
                                            </h:panelGroup>
                                            <h:panelGroup rendered="#{subscriptionCard.showMoreValues}"
                                                 id="moreValues">
                                                 <h:panelGrid columns="4"
                                                      columnClasses="address_col1,address_col1,address_col1,address_col1">
                                                           <c:forEach var="privateAllProducts"
                                                                items="#{subscriptionCard.showMoreValues}">
                                                                <h:panelGroup>
                                                                     <h:selectOneRadio id="#{privateAllProducts.description}"
                                                                          valueChangeListener="#{subscriptionCard.productChanged}" value="#{subscriptionCard.selectedProductCode}">
                                                                          <a4j:support event="onclick"
                                                                               reRender="convertingForm,privateParamCard,businessParamCard,errorDetailsSubs,facilitiesCard,numberSelectCard,npPanel,paymentFormCard" />
                                                                          <f:selectItem itemLabel="#{privateAllProducts.label}"
                                                                               itemValue="#{privateAllProducts.value}" />
                                                                     </h:selectOneRadio>
                                                                </h:panelGroup>
                                                           </c:forEach>
                                                 </h:panelGrid>
                                            </h:panelGroup>
    <h:panelGroup style="float:right;"
                                                 rendered="#{subscriptionCard.showValues}">
                                                 <h:panelGroup style="float:right;"
                                                      rendered="#{subscriptionCard.ValuesLinkVisible}">
                                                      <a4j:commandLink id="index"
                                                           action="#{subscriptionCard.retrieveMoreValuess}"
                                                           reRender="moreValues"
                                                           value="#{msgs.subscriptioncard_link_more_Values}"></a4j:commandLink>
                                                 </h:panelGroup>
                                            </h:panelGroup>

    You should probably install Firebug into your Firefox browser. That might help isolate the problem. Also, there's been a recent update to Firefox. Have you installed it? If not, I'd recommend doing that next.
    If that doesn't solve it, try removing the components form the page, then adding them back one at a time. You might have a small syntax error on the page that's difficult to see when it's filled with code. Some browsers cope with syntax problems better than others, so what works fine in one browser might not work at all in another.

  • How to get the selectOneRadio value in javascript

    Hi,
    I want the selectOneRadio value in javascript. Can anyone give us a solution how to get the selectOneRadio value to javascript from jspx page.
    Thanks,
    Eswari

    Hi,
    I assume you are talking about JDeveloper 10.1.3 in where there is no JavaScript API ADF Faces.Here you will have to use document.getElementById() to access the radio button component (which is a list component). You can look at the generated HTML for how the component and its ID look like.
    However, what is the usecase that you cannot handle in native JSF ?
    Frank

  • How to get the value fron the JSF selectoneRadio component  in Javascript ?

    <h:selectOneRadio id="InOrOut" value="#{currentRow.oaInOut}" onclick="setValue(this.id)" >
    <f:selectItem itemLabel="IN" itemValue="I" />
    <f:selectItem itemLabel="OUT" itemValue="O"/>     
    </h:selectOneRadio>
    function setValue(objId)
    alert(document.getElementById(objId).value);
    when i retrive the value, i cud get only "undefined" though i have a value
    Kindly help me out
    Edited by: SOWMIYA on Feb 7, 2009 10:46 PM
    Edited by: SOWMIYA on Feb 7, 2009 10:56 PM

    JSF runs at server side and produces HTML.
    JS runs at client side and intercepts on HTML only.
    With other words, when writing JS you should look at generated HTML output of JSF instead of the raw JSF code.

  • Problem with h:selectOneRadio

    i would like to use selectOneRadio to change my log level in my application
    there are two problem:
    my operation modifierLevel is never called
    how to set a default value to my selectOneRadio (for example i would like to set a dfault value of my selectOneRadio to info)
    <h:selectOneRadio id="myRadio" valueChangeListener="#{servicesOperations.modifierLevel}"
                       value="#{servicesOperations.choixLogLevel}" >
                              <f:selectItem itemValue="debug" itemLabel="debug"/>
                            <f:selectItem itemValue="info" itemLabel="info"/>
                            <f:selectItem itemValue="warn" itemLabel="warn"/>
                            <f:selectItem itemValue="error" itemLabel="error"/>
                            <f:selectItem itemValue="fatal" itemLabel="fatal"/>
                      </h:selectOneRadio>
    public class ServicesOperations {
         private String choixLogLevel="info";
         public String getChoixLogLevel() {
              return choixLogLevel;
         public void setChoixLogLevel(String choixLogLevel) {
              this.choixLogLevel = choixLogLevel;
         public ServicesOperations() {
         public void modifierLevel(ValueChangeEvent evt)
              System.out.println("radio appelé");
         }

    Hi,
    To set a defalt value to your selecOne Radio you can set a default value to servicesOperations.choixLogLevel*
    if do you want that modifierLevel* get called once you click on the selectOneRadio yo can do as shown bellow :
    <h:selectOneRadio id="myRadio"  valueChangeListener="#{servicesOperations.modifierLevel}"
               onClick="submit()"  <!-- This is the attribute that will submit the form and then fire the change event -->
               value="#{servicesOperations.choixLogLevel}" >
                              <f:selectItem itemValue="debug" itemLabel="debug"/>
                            <f:selectItem itemValue="info" itemLabel="info"/>
                            <f:selectItem itemValue="warn" itemLabel="warn"/>
                            <f:selectItem itemValue="error" itemLabel="error"/>
                            <f:selectItem itemValue="fatal" itemLabel="fatal"/>
                      </h:selectOneRadio>

  • JSF 2.0 - insert additional content into h:selectOneRadio

    Hello,
    I am trying to convert current pages into JSF and I have difficulties with the following code:
    <div id=set>
      <label>
          <input type="radio" name="inputData" value="default" />
          Default
      </label>
      (<a href="sample.xml">Download 13 kB</a>)
      <br />
      <label>
          <input type="radio" name="inputData" value="custom" checked/>
          Custom
      </label>
        <input id="file" type="file" name="file" size="32"/>
    </div>If I use this JSF 2.0 'alternative'
    <div id=set>
      <h:selectOneRadio id="dataSource" value="#{paramsBean.dataSource}" >
          <f:selectItem itemValue="1" itemLabel="#{i18n.dataSourceDefault}"/>
          <h:outputLink target="sample.xml" title="#{i18n.inputDataDownload} 13 kB"/>
          <br />
          <f:selectItem itemValue="0" itemLabel="#{i18n.dataSourceCustom}"/>
            <input id="file" type="file" name="file" size="32"/>
      </h:selectOneRadio>
    </div>but outputLink is ignored at all while the input file control is placed before radio buttons...
    Is something like this possible or should I use any workaround? I have no idea how to solve this.
    Regards,
    Jan

    Thanks for your hint, but if I use the following code:
    <h:dataTable>
        <h:column>
            <h:selectOneRadio id="dataSource" value="#{paramsBean.dataSource}" >
                <f:selectItem itemValue="1" itemLabel="#{i18n.dataSourceDefault}"/>
                <f:selectItem itemValue="0" itemLabel="#{i18n.dataSourceCustom}"/>
            </h:selectOneRadio>
        </h:column>
        <h:column>
            <h:outputLink value="sample.xml">#{i18n.inputDataDownload} 13 kB</h:outputLink>
            <input id="file" type="file" name="file" size="32"/>
        </h:column>
    </h:dataTable>No output is generated:
    <table>
      <tbody>
        <tr><td></td></tr>
      </tbody>
    </table>I've tried panelGrid instead:
    <h:selectOneRadio id="dataSource" value="#{paramsBean.dataSource}" >
        <h:panelGrid columns="2">
            <f:selectItem itemValue="1" itemLabel="#{i18n.dataSourceDefault}"/>
            <h:outputLink value="sample.xml">#{i18n.inputDataDownload} 13 kB</h:outputLink>
            <f:selectItem itemValue="0" itemLabel="#{i18n.dataSourceCustom}"/>
            <input id="file" type="file" name="file" size="32"/>
        </h:panelGrid>
    </h:selectOneRadio>but although it produces something, it is not complete (notice also an extra table below):
    <table>
      <tbody>
        <tr><td></td><td><a href="sample.xml">download 13 kB</a></td></tr>
        <tr><td></td><td><input id="file" type="file" name="file" size="32" /></td></tr>
      </tbody>
    </table>
    <table id="j_idt28:dataSource">
         <tr></tr>
    </table>I've tried many combinations - it produces either incomplete outputs or improper nested tables in cells... No attempt has been successful yet.
    I am quite annoyed now. Are we really in 21 century?

  • ADF FACES: autoSubmit not allowed on af:selectOneRadio

    In EA13, the autoSubmit attribute is being disallowed (by the editor's XML schema validator) on an af:selectOneRadio control, even though it is documented to accept this attribute. This seems very inconsistent since the other "select" type input controls all support autoSubmit.
    If this is intentional, I'd like to submit a request to make this control support autoSubmit as it's the only consistent method to make view changes without diving into javascript.
    If it's not intentional, then I'd like to report it as a bug.
    Thanks.

    The documentation for selectOneRadio does not claim support for autoSubmit, because as of EA13 it doesn't. You might have been looking at selectBooleanRadio, which does support autoSubmit in EA13.
    EA14 has already added autoSubmit to selectOneRadio and a few other components, and should be available shortly.

  • How can i get the h:selectOneRadio value with javascript

    Hi all.
    I have this code
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor()" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor()
    var tipoRelacion = document.getElementById("form:color").value;
    alert("color" + tipoRelacion);
    And what i get is that color is undefined. How can i get the value of the selected radio?
    Thanks a lot

    you just need to pass this while calling javascript function
    check this-
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor(this)" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor(obj)
    var val = obj.value
    alert("color" +val);
    }

Maybe you are looking for

  • How do i add photos to my ipod

    how do i add photos to my ipod without losing photos that already exist on the ipod but not the computer? thanks

  • HELP!!! character display problem in JEditorPane

    hi, I got a headache with my program which needs to display multiple language html page in a JEditorPane. For example, if user requests a Chinese page then page is read in from an inputstreamreader using Chinese charset encoding. But what JEditorPane

  • Screen saver and IP conflict

    Hello, In the recent weeks, I've noticed that when my MAC's screen saver's comes on, that when I log back in that I often get a message that there is an IP address conflict. It is annoying because I have to re authenticate to all my open RDP and Citr

  • How to concatinate two clob objects using JDBC...good brain excercise!!!

    Hi, I am using MYSQL server ver. 4.0 and J/Connector version 3.0.6 I have two columns of LONGTEXT type and i have to concatenate them and store it in a third column.I have thought of the following strategy: 1. Retrieve the columns as CLOB using getCl

  • Attaching search help to table control

    i want to attach search help to a field in table control. and based on that entry i want to fill the corresponding columns of that row