Value change listener on select one choice is not working

Hello all,
I have a Jsff page in that i have 2 panel group layout with panel form layout with some input fields in both.
in first panel form layout i have select one choice drop down with 2 values in that.
based on the selection of the list the second panel group layout will get rendered/visible(suggest me which one to use)
but i am facing the problem when i select the value from the drop down it will navigate to the main page.
here is my code.
<af:selectOneChoice value="#{bindings.IsPersentAddDifferent.inputValue}"
                                label="#{bindings.IsPersentAddDifferent.label}"
                                required="#{bindings.IsPersentAddDifferent.hints.mandatory}"
                                shortDesc="#{bindings.IsPersentAddDifferent.hints.tooltip}"
                                id="soc1"
                                valueChangeListener="#{UserManagement.isPresentAddresVCL}"
                                autoSubmit="true">
              <af:selectItem label="Yes" id="si1" value="Y"/>
              <af:selectItem label="No" id="si2" value="N"/>
            </af:selectOneChoice>
bean code:
    private RichPanelGroupLayout updateValue;
    public void isPresentAddresVCL(ValueChangeEvent valueChangeEvent) {
        valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
        System.out.println(valueChangeEvent.getNewValue().toString());
        if (valueChangeEvent.getNewValue() != null &&
            valueChangeEvent.getNewValue().toString().equalsIgnoreCase("Y"))
            updateValue.setVisible(false);
        else if (valueChangeEvent.getNewValue() != null &&
                 valueChangeEvent.getNewValue().toString().equalsIgnoreCase("N"))
            updateValue.setVisible(true);
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        adfFacesContext.addPartialTarget(updateValue);
    public void setUpdateValue(RichPanelGroupLayout updateValue) {
        this.updateValue = updateValue;
    public RichPanelGroupLayout getUpdateValue() {
        return updateValue;
and i have changed autosubmit =true for the select one choice and partialtrigger =si1 si2 for the secound panel group layout
Thanks in advance
Cheers

Hi Suchith,
You can achieve the functionality without writing a line of code. Just learn how to use page variables Creating Variables and Attribute Bindings to Store Values Temporarily in the PageDef . After,
You just need to put a partialTrigger to your second panelGroupLayout and the visible condition like #{myVariable.inputValue eq 'Y' ? true : false}
That should be enough for you to hide / show dynamically based on the LOV selection.
Regards

Similar Messages

  • How to bind 2 ADF Select One Choice objects to work as a relation

    Greetings,
    im new to Jdeveloper, i got used to Microsoft Visual Studio (regarding bindings) and im lost here.
    So here what im trying to do:
    I have 2 tables in my database (Cities & States),
    i am creating 1 view object for each so i can link them to "select one choice" objects. The first object, should show ALL cities (that part is done),
    but when i choose a city from that object, the second object should show only the corresponding states of that city. I managed to do
    that, using ADF Form, simple by clicking navigation buttons, and what ever is on the city list, the correct states are shown in the second object.
    My goal here is, instead of navigating with buttons (for the city object), and then choose states from the second object as a list, i want also my city
    object to be a "select one choice" object, so both will be a drop down list, and not navigating to all cities until i find the one im searching for.
    I try that but when i choose a city from city object, the second object is not show the corresponding states but keep showing all the states that exists in my country.
    I don't want to use java beans for this but just adf bindings.
    Can you assist me please?

    My characters are greeklish (greek, using english characters, ill try to explain)
    http://prntscr.com/1cfvd0       (Data Control View)
    NomarxiaView3 (Cities)
    CodeNomoy (state's id)
    Perigrafy (city's name)
    PoleisView4 (States)
    CodeNomarxias(city's id)
    Perigrafy (state's name)
    http://prntscr.com/1cfwe4      (the page)    
    Perigrafy's settings      http://prntscr.com/1cfwku    
    CodeNomy's settings      http://prntscr.com/1cfwok    
    make not PoleisView4 inside of Nomarxia (cities), so thats the relationship i use for states.
    *A small update, im trying different combos for partialTrigger or in general anything so i can figure out my self whats the problem of not refreshing the 2nd object,
    and i noticed most of the cases im getting this warning "<FacesCtrlListBinding> <getInputValue> ADFv: Could not find selected item matching value 1 of type: java.lang.String in the list-of-values."
    looks like whatever i choose from the list of cities, it keep looking of value 1 (keep in mind value 1, do not have a state relation, only half of my list currently have states).
    That means the problem is not refreshing the 2nd object (atleast for now), but refreshing its own id

  • PanelBox Disclosure icon is calling only checkbox value change listener

    Hi
    I have a page fragment, where i have a switcher and showing different facets based on condition, in my second facet i have a panel box which has a panel group layout which has one selectbooleancheckbox and one outputtext.
    When i click on the check box, i need to make the outputtext invisible, this i am trying to achieve thru valuchangelistener. I am able to make it visible and invisible based on the value. The same way i have multiple panel boxes, the issue here is when i try to undisclose the panel box, or disclose the other panel boxes, the valuechangeevent is getting called.
    I am using pageFlowScope for the bean and it has so many other value change events for select one choices, but only for the first time the check box value change events are getting called. I can achieve the same using java script, but i am trying to avoid using js.
    I am using JDev 11.1.2.1.0 and the page fragment is in task flow, where i used the task flow as a region in a jspx page. Thanks.
    N.

    I think you're not dealing correctly with the default value of the selectOneMany. Do not let the submitted value be implicit but rather tells exactly what it should be. To manage that add a "noSelection" selectItem and return this value instead of null in from getImageType()
    Thus you might have:
    <h:selectOneMenu id="selectionid"
    value="#{tagGeneratorTagView.imageType}" valueChangeListener="#{imageHandler.changeImageType}"
    onchange="submit();">
      <f:selectItem itemValue="NOVALUE" itemLabel="No value selected"/>
      <f:selectItem .... your items ..
    </h:selectOneMenu>And in getImageType
    public String getImageType()
       //this is not a good example. the default value should be inject
      if(null==imageType)
        return "NOVALUE"
      return imageType
    }

  • Problem in getting the current value of the drop down while calling value change listener

    I have 2 drop down list. I am trying to get the value of first drop down from other drop downs value change listener. Initially one drop down contains a default value. First time I got the value while calling the value change listener. But if I change the default value to other in the first drop down and call the value change listener of the second drop down then I got the old value in the bean. Can anyone suggest a process

    If I use the following code it gives me the current index.
                valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
                System.out.println(valueChangeEvent.getNewValue());
    This is also giving me current index.
    BindingContainer container = BindingContext.getCurrent().getCurrentBindingsEntry();
    AttributeBinding attrIdBinding = (AttributeBinding)container.getControlBinding("PersonTypeId1");
    if(attrIdBinding.getInputValue()!=null)
                   System.out.println(attrIdBinding.getInputValue().toString());
    But at last I got some help from Shay Shmeltzer's Weblog.
    BindingContainer bindings =
                    BindingContext.getCurrent().getCurrentBindingsEntry();
                    // Get the sepecific list binding
                    JUCtrlListBinding listBinding =
                    (JUCtrlListBinding)bindings.get("PersonTypeId1");
                    // Get the value which is currently selected
                    Object selectedValue = listBinding.getSelectedValue();
                      long value =0L;
                    if(selectedValue!=null){
                        System.out.println("Sudip.. Person Type using bindings"+selectedValue.toString());
    But this returns "ViewRow [oracle.jbo.Key[300000860721156 ]]"
    300000860721156 is the original value.. Would you please help me to figure it.

  • Select One Choice shows 25 items I need about 100.

    Hi, I'm new to Jdeveloper 11g and ADF.
    I'm building an application that requires "select one choice", "Select Many Shuttle" and some others, but they only show 25 items. If I add a "Next Set" button I can retreive the next set of 25 items, but I don't like it this way. I would like that the controls display all the items at once (about 70 items).
    Thanks,
    Mike.

    Hi Mike,
    You can implement the suggestions given by Timo and Puthanampatti for fetching all the rows and display in list. However, having more items in the list would make the selection of an item from the list difficult for the users. Instead, you might want to implement List Of Values instead of a Select one choice. List Of Values has a search capability inbuilt which would help the users to narrow down the selection, instead of scrolling through all the records in select one choice.
    To implement that, instead of setting the list type to select one choice (in your model - for the attribute for which you've defined list of values), change it to input text with list of values.
    HTH.
    -Arun

  • How to get a value from  select one choice (created by static view)

    Hi,
    Whene ever Iam trying to get value from select one choice which is created by static view iam getting only index.How to get the actual value in 11g .please help me anybody .Thanx in advance....
    Edited by: 874530 on Jul 22, 2011 11:05 PM

    Thnax for your quick reply..
    Iam using 11.1.1.3.0 version.
    My code is
    <af:selectOneChoice value="#{bindings.DenialLevel.inputValue}"
    label="#{bindings.DenialLevel.label}"
    required="#{bindings.DenialLevel.hints.mandatory}"
    shortDesc="#{bindings.DenialLevel.hints.tooltip}"
    id="soc2"
    valuePassThru="true"
    binding="#{backing_denialcomment.denialLevelList}">
    <f:selectItems value="#{bindings.DenialLevel.items}" id="si6"/>
    </af:selectOneChoice>
    and in bean am not able to get value of attribute .Iam getting only index...

  • Get selected value from a select one choice in the bean

    I'm trying to do with the SelectOneChoice valueChangeListener and this is the code of my method, I'm using jdeveloper11g if alguin can help as I need the value you selected in the bean
    public void cambioCombo(ValueChangeEvent valueChangeEvent) {
    CoreSelectOneChoice csoc = (CoreSelectOneChoice) valueChangeEvent.getSource();
    List childList = csoc.getChildren();
    for (int i = 0; i < childList.size(); i++) {
    if (childList.get(i) instanceof CoreSelectItem){
    CoreSelectItem csi = (CoreSelectItem) childList.get(i);
    if (((String)csi.getValue()).equals((String) valueChangeEvent.getNewValue()) ){
    System.out.println("------------>"+csi.getLabel());
    I get the following error when running the application and selecting in my select one choice
    oracle.adf.view.rich.component.rich.input.RichSelectOneChoice cannot be cast to org.apache.myfaces.trinidad.component.core.input.CoreSelectOneChoice

    This is an example of some code that i wrote.
    public void changeDesc(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("value "+ valueChangeEvent.getNewValue().toString());
    //System.out.println("old value "+ valueChangeEvent.getOldValue().toString());
    if (valueChangeEvent.getNewValue().toString().equals("Area Uno")){
    this.descripcion.setValue("RR.HH");
    } else {
    this.descripcion.setValue("Finanzas");
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.descripcion);
    For get the Value select in the "SelectOneChice" component i use this: valueChangeEvent.getNewValue().toString()
    cheers

  • How to set a default value in Select one choice.

    Hi
    I'm using ADF BC, in that how to set a default value in select one choice.
    pls. help on this.
    regards

    set the default value on the underlying EO or VO attribute
    john

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

  • How to prevent flushing out the value in Select one choice on page refresh

    Hi All,
    I am using Jdeveloper 11.1.1.4.0. In my page fragment I am using select one choice ADF component. I have a requirement that unless one fills all details on 1st fragment he/she cant move to next fragment.
    So validations are there to check that mandatory fields filled or not. If not than I am showing message to fill the mandatory fields when user press on "Review " Button.
    But the value in select one choice is getting cleared while other input values like date fields or input text are not(The input information stored in static variables)
    How can I prevent flushing out of select one choice value .
    Thanx
    kanika

    Kanika,
    You don't have value property set due to which the selected value doesn't get stored and looses its value on refresh.
    When you drop attribute as select one choice on page, the value property get bounded to some value, did you remove it intentionally?
    If so, can you try keeping the property and see if you see the intended behavior?
    Sireesha

  • Populating static values in addition to database value in select one choice

    Hi All,
    We are using jdev 11.1.1.2.0.
    I am populationg a select one choice based on a read only VO. The vo is populating fine,but in addition to the values from the database I want to add two static values. I want to add 'select customer' and 'all customer'.
    Currently I am doing this using UNION in the sql query of my VO. WhenI add union in my sql query its taking more time to load the value from the database.
    Is this the proper adf way to do it? Is there someother way to attain it.
    Following is the query I am using to populate one of the VO's
    SELECT * FROM(
    SELECT ID,NAME,3 SORT_ORDER FROM CUSTOMER
    UNION
    SELECT -1,'SELECT CUSTOMER,1 FROM DUAL
    UNION
    SELECT -2,'ALL CUSTOMER,2 FROM DUAL)
    ORDER BY SORT_ORDER,NAME
    Please advice
    Susan

    Hi,
    You can do this usecase by populating the values to SelectOneChoice Programmatically.
    <af:selectOneChoice label="List"
    binding="#{MyTestBean.myTestListComponent}">
    <f:selectItems value="#{MyTestBean.listOfItems}"/>
    </af:selectOneChoice>
    backing bean code will be:
    public List<SelectItem> getListOfItems() {
    List<SelectItem> items= new ArrayList<SelectItem>();
    SelectItem si = new SelectItem();
    //if u trying to populate data from VO then u have set the values
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind = (DCIteratorBinding)dcBindings.get("DepartmentsView1Iterator");
    for(int i=0;i<iterBind.getEstimatedRowCount();i++)
    Row row = iterBind.getViewObject().getRowAtRangeIndex(i);
    if(row!=null)
    si = new SelectItem();
    si.setLabel((String)row.getAttribute("DepartmentName"));
    si.setValue(row.getAttribute("DepartmentId"));
    items.add(si);
    //here you can add the static values;
    si = new SelectItem();
    si.setLabel("Static Value1");
    si.setValue("Static1");
    items.add(si);
    si = new SelectItem();
    si.setLabel("Static Value2");
    si.setValue("Static2");
    items.add(si);
    return items;
    }

  • ADF Table sorting on Select One choice column display value

    Hi Team,
    We are using an ADF with EJB application.
    I have an ADF table, which has a select one choice in it. (The Select one Choice list elements are populated from a java bean).
    Presetnly, when we perform the sorting on this SOC column, the table is getting sorted based on SOC value not on the Label.
    How to sort this column based on the SOC Lable filed.
    Please help us.
    Thank you,
    Keshav Ch

    Hi Frank,
    I took a transient column in the Entity and populated this column with the LOV label value.
    In the ADF added this coulmn to the table and set it is rendered false.
    Set the sortable property of the lov column to the new trasient column.
    Now the sort will work with the label filed (Transient Column)
    Thank you,
    Keshav ch

  • Inserting in table but ADF Select One Choice data is lost

    hi I'm using Jdev 11g
    I've fusion web App
    which handling purchase Invoices
    contains a form for master table purchase
    and a af:table for Invoice detatils table purchase_items
    I'm tring to insert data in af:table detail table which contain ADF Select One Choice. for produc names
    and text box for both cost and quantity and groovy based colum for the amount of (cost * quantity)
    the property auto submit for both columns cost and quantity is set to true
    to update the amount value when user makes any changes on the cost or quantity
    my Problem that
    when I Insert new record and I select value from the product column( Select One Choice )
    and when i type the cost or the quntity I loos the selected value before in the product ( Select One Choice )
    and this is not accebtable for the end user to select the product tow times
    any one could help about this
    thanks

    I'm sorry but it seems it is have solution
    I test it agin with auto submit for cost and quntity set to true
    and still losing data in ADF Select One Choice
    there are no coding used in my App
    and ther are no value on value change listener on cost or quantity
    i think it hapen because i have mandatory fileds like product and cost
    it's firing validation of filed is requierd
    Edited by: user451648 on 11/03/2013 11:58 م

  • Value change listener method does not refresh value

    Hi Frank,
    According to your documentation ADF Faces: How-to build dependent lists boxes with ADF and ADF Faces I have created dependent list box and it is working properly.
    Now in the similar way I have created a form where one attribute is set as select one choice and it takes value from a lov and this attribute have a value change listener event and when selecting a value for this attribute from lov, in backing bean it will set another attribute of the form and the value will be taken from the other field of the lov for the current row.
    But when I am running this, 1st time when I am selecting a value from lov, the 2nd attribute of the form gets its value but next time when I am selecting another value in LOV, the value in the other attribute is not changing accordingly.
    My original form is (test_date,machine_code,machine_no...)
    I have created LOV for machine_code.
    This LOV is --select machine_code,machine_no from machine_mast;
    This LOV returns machine_code to the machine_code field of my main form.
    For machine_code, I have created a value change listener method and set its autosubmit property to true and for machine_no field I have set its partial trigger property to the ID of machine_code field.
    The value change listener code is
    BindingContainer bindings = this.getBindings();
    DCIteratorBinding itr = (DCIteratorBinding)bindings.get("lov2_sqc0400_1Iterator");
    Row rw = itr.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    Object machine_no= rw.getAttribute("MchnNo");
    inputText2.setValue(machine_no);
    Please help
    Regards/Thanks
    SK

    Hi All,
    Can anyone please help me?
    Thanks/Regards
    SK

  • How to refresh the list of select one choice which is inside a table?

    Hello I am using Jdeveloper Version 11.1.2.1.0.
    The table is a normal table that is made to look like a treeTable.
    For some rows are or can be parents with Parent_vo_group_id = null and other are children with parent_vo_group_id = vo_group_id of the parent...
    If a children changes its parent_vo_group_id to null it can become a parent as well.
    I am having a select one choice inside a table column. The list comes from the same table with column Name:
    <af:table value="#{bindings.VoGroupAdminView2.collectionModel}" var="row"
                                                      rows="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      contentDelivery="immediate"
                                                      visible="#{bindings.VoGroupAdminView2Iterator.currentRow != null}"
                                                      fetchSize="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      partialTriggers="::soc1" styleClass="AFStretchWidth"
                                                      rowBandingInterval="0" editingMode="clickToEdit"
                                                      binding="#{adminGroupManagementBean.groupTable}"
                                                      selectionListener="#{adminGroupManagementBean.groupSelectionListener}"
                                                      rowSelection="single" id="t5">
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.Name.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                           id="c1">
                                                    <af:inputText value="#{row.bindings.Name.inputValue}"
                                                                  requiredMessageDetail="Please enter a group name"
                                                                  label="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                                  required="true" id="it7" immediate="true" autoSubmit="true"
                                                                  columns="#{bindings.VoGroupAdminView2.hints.Name.displayWidth}"
                                                                  maximumLength="#{bindings.VoGroupAdminView2.hints.Name.precision}"
                                                                  shortDesc="#{bindings.VoGroupAdminView2.hints.Name.tooltip}"
                                                                  contentStyle="#{row.ParentVoGroupId eq null? 'font-weight:bold' : 'padding-left:20px'}"
                                                                  valueChangeListener="#{adminGroupManagementBean.groupNameChangeListener}"
                                                                  partialTriggers="soc2">
                                                        <f:validator binding="#{row.bindings.Name.validator}"/>
                                                    </af:inputText>
                                                </af:column>                                   
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.label}"
                                                           id="c4">
                                                    <af:selectOneChoice value="#{row.bindings.ParentVoGroupId.inputValue}"
                                                                        label="#{row.bindings.ParentVoGroupId.label}"
                                                                        simple="true" immediate="true"
                                                                        required="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.mandatory}"
                                                                        shortDesc="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.tooltip}"
                                                                        id="soc2" autoSubmit="true"
                                                                        unselectedLabel="&lt;null&gt;"
                                                                        valueChangeListener="#{adminGroupManagementBean.parentIdValueChangeListener}"
                                                                        visible="#{row.bindings.ChildrenCount.inputValue eq 0 ? true : false}">
                                                        <f:selectItems binding="#{adminGroupManagementBean.selectOneChoiceList}"
                                                                        value="#{row.bindings.ParentVoGroupId.items}"
                                                                       id="si2"/>
                                                    </af:selectOneChoice>
                                                </af:column>
                                            </af:table> My select one choice uses the same iterator as the table.
    <iterator Binds="VoGroupAdminView2" RangeSize="-1" DataControl="AppModuleDataControl"    id="VoGroupAdminView2Iterator"/>The table uses this view called VoGroupAdminView:
    Select t1.vo_Group_id,     
           t1.name,
           t1.Vehicle_Owner_Id,
           t1.Graphical_Symbol,
           t1.Lm_Comment,
           t1.Parent_Vo_Group_Id ,
           decode (t2.children_count, null, 0, t2.children_count) as children_count
           from
    (SELECT VoGroup.vo_Group_id,     
           VoGroup.name,
           VoGroup.Vehicle_Owner_Id,
           VoGroup.Graphical_Symbol,
           VoGroup.Lm_Comment,
           VoGroup.Parent_Vo_Group_Id
      FROM VO_GROUP VoGroup
    START WITH VoGroup.Parent_Vo_Group_Id IS NULL
    CONNECT BY VoGroup.Parent_Vo_Group_Id = PRIOR VoGroup.Vo_Group_Id
    order SIBLINGS by VoGroup.name) t1,
    (select parent_vo_group_id, count (parent_vo_group_id) as children_count from vo_group
    group by parent_vo_group_id) t2
    where t1.vo_group_id = t2.parent_vo_group_id (+)the ParentVoGroupId attribute has list of values from this view object called VoGroupAdminLov:
    SELECT
        VO_GROUP.NAME,
        VO_GROUP.VEHICLE_OWNER_ID,
        VO_GROUP.PARENT_VO_GROUP_ID,
        VO_GROUP.VO_GROUP_ID
    FROM
        VO_GROUP
    WHERE  VO_GROUP.PARENT_VO_GROUP_ID is null
    and VO_GROUP.VO_GROUP_ID <> ?
    order by  VO_GROUP.NAMEI want to refresh the list of values in the select one choice everytime when i add a new row in the table, delete row in the table or change the value of select one choice component.
    What I have tried:
        public void parentIdValueChangeListener(ValueChangeEvent valueChangeEvent) {
            this.setValueToEL("#{row.bindings.ParentVoGroupId.inputValue}", valueChangeEvent.getNewValue());
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery(); //refresh the table view object;
            am.getVoGroupAdminLov1().executeQuery(); //refresh the list of values view object
            voGroupAdminIterator.invalidateCache();  //remove the cache of the iterator
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true)); // set the selected row again.
            RichSelectOneChoice soc =
                (RichSelectOneChoice)FacesContext.getCurrentInstance().getViewRoot().findComponent(":pt1:t5:soc2");
            AdfFacesContext.getCurrentInstance().addPartialTarget(soc);
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable);    
        }When i am adding a new row to the table its select one choice list is refreshed but only for the new row. The rest rows have not updated list of values for their select one choice components.
        public String addGroupButtonAction() {
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObjectImpl voGroupAdminView = am.getVoGroupAdminView2();
            Row newRow = voGroupAdminView.createRow();
             newRow.setNewRowState(Row.STATUS_INITIALIZED);
            voGroupAdminView.insertRowAtRangeIndex(0, newRow);
            am.getTransaction().postChanges();
            return "null";
        }Edited by: 897833 on Mar 19, 2012 9:07 AM

    I made a button to refresh the value of select one choice and it doesn't work yet.
    So I just move one of the
        public String refreshParentIdSOCButtonAction() {
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery();
            am.getVoGroupAdminLov1().executeQuery();
            voGroupAdminIterator.invalidateCache();
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true));
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoice);  //refresh the binded SOC as you said
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoiceList); //refresh the binded list even
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable); //refresh the table it is in;
            return null;
        }Edited by: 897833 on Mar 23, 2012 2:58 AM

Maybe you are looking for

  • Can't open file - error "There was a problem reading the layer data.."

    I'm on a Mac Pro, 10.5.7 PSCS3 I have been sent a file (148MB) from a client via FTP that I can not open. The file was created on a PC, using PSCS3. I'm usually pretty good at troubling shooting but I have not seen this before. Any help, suggestions

  • Copying function module from one function group to another

    What is the efficient way to copy a module from one group to other so that all its subroutines and any dependencies with in the FM can also be copied?

  • How I "fixed" my iPod after the latest update screwed everything up

    I am not sure if this will help anyone but here is what I have been through and done. I also don't know if this "fix" will last. So far it has been 24 hours and my iPod still works. To be honest I was surprised anything worked since this whole fiasco

  • OS X 10.6.7 vs NDAS

    I installed the update to 10.6.7 a couple of days ago and at first noticed nothing strange at all. Last night when I went booted my MacBook I left it alone and went to do other things. Returning a couple of hours later the finder had still not launch

  • PROBLEM: iPod software update

    I have been on the website numerous times to download the iPod software update and every time the process seems to go through all the steps successfully, until I try to sync my iPod with iTunes and I get this error message: SOME OF THE SONGS IN ITUNE