SelectOneChoice autosubmit issue

Hi All,
I have a selectonechoice whos value shows/hides some fields. My bean is a session scope bean
<af:selectOneChoice label="#{leadwebBundle.PARTY_TYPE}"
                                              value="#{createOpportunity.partyType}"        
                                              id="soc8" autoSubmit="true"
                                              unselectedLabel="Select One"
                                              valueChangeListener="#{createOpportunity.changePartyType}">
                            <f:selectItems value="#{createOpportunity.partyTypeList}"
                                           id="si8"/>
                          </af:selectOneChoice>
  public void changePartyType(ValueChangeEvent valueChangeEvent) {
      //valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
      logger.info("in changePartyType");
    if (this.getPartyType() != null) {
        if (this.getPartyType().equalsIgnoreCase("Organization")) {
            logger.info("Party type is : " + this.getPartyType());
            this.setOrgFlag(true);
        } else
            this.setOrgFlag(false);
also for safety
    public void setPartyType(String partyType) {
        this.partyType = partyType;
        if (this.getPartyType() != null) {
            if (this.getPartyType().equalsIgnoreCase("Organization")) {
                logger.info("Party type is : " + this.getPartyType());
                this.setOrgFlag(true);
            } else
                this.setOrgFlag(false);
    }i hv set the autosubmit property but still selecting the values doesn't submit the page
any idea on to this ?
thnks.

opps ...got it :)
added the partial trigger to the panel and started working :)
Edited by: Kamaal on Mar 13, 2011 6:24 AM

Similar Messages

  • SelectOneChoice autosubmit stop firing

    Our ADF page has a lot of autosubmit components that does PPR on other components. Since the server side action processing is slow, we have a client listener that opens a processing icon on change on the browser to prevent user from making other clicks until PPR completes. Most of the time this works fine. We have been having one sporadic issue though on where in sometimes the value changes suddenly stops working. If I open Fiddler/Firebug we will see that there is no auto submit event even happening (No submit). It is as if autosubmit is not true on those components.
    We took the html source of the window where we had the problem and one where we did not. One thing that we noticed that was different in html source when the problem happens is the following:
    In a window where it all works fine and value change events are firing and calls the clientlistener javascript to open ‘processing’ window
    <input id="oracle.adf.view.faces.RICH_UPDATE" type="hidden" value=”dirty”>
    When problem occurs, where in all autosubmits stop firing, I see this.
    <input id="oracle.adf.view.faces.RICH_UPDATE" type="hidden">
    What is the significance of this hidden input that ADF uses? Any idea why in the problematic cases it will suddenly lose the value of “dirty”. I am trying to get some leads to get to the root cause.
    We are using 11.1.1.3

    Hi User,
    A couple of thoughts:
    1). Does the auto submit always work except when setting the value back to the original value? I know that value change listeners won't fire when you change the value back to the original one.
    2). Have you looked at af:statusIndicator (it is used to show a "busy" indicator during PPR requests)?
    John

  • [adf faces] selectonechoice autosubmit problem

    hello
    i am trying to make a adf faces website, but i have 2 dropdownlists in an overview page
    the first dropdownlist (af:selectonechoice) contains the YEAR
    the second dropdownlist (af:selectonechoice) containts the WEEKS IN THAT YEAR
    the weeks have to be drawn from the database, by using the managed bean "filterBean"
    somehow at this moment i can only get the weeks inside the second dropdownlist by clickin on a commandbutton. the autosubmit from the first dropdownlist doesn't do shit...
    even with partialtriggers it won't work right
    can anybody give me a working example in which a dropdownlist updates another dropdownlist?
    thanks in advance!

    Hi,
    2-minute googling gave these examples:
    "ADF Faces: Building ADF dependent list boxes in ADF Faces table" at http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
    "62. Cascading Lists in JSF" at http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    "Three Dependent List Boxes in af:table Component" at http://andrejusb.blogspot.com/2007/08/three-dependent-list-boxes-in-aftable.html
    "Implementing dependent select boxes in JSF" at http://www.it-eye.nl/weblog/2006/04/04/implementing-dependent-select-boxes-in-jsf/
    "ADF Learning 6 - Dependent List Boxes" at http://www.scribd.com/doc/2633296/ADF-Learning-6-Dependent-List-Boxes
    HTH,
    Patrik

  • SelectOneChoice autoSubmit=true refresh all ros

    Hi
    I have VO contain multi selectOneChoice, i but in field A autoSubmit=true, and put partial trigger for filed B to be refreshed when tab from A, the problem is when i tab field A all other  filed refreshed to be null
    Any suggestion

    Hi,
    set ContentDelivery is set to immediate for af:table
    https://forums.oracle.com/message/10898470

  • ADF Table: SelectOneChoice Issue

    Hi ,
    I need help with ADF tables:
    The scenario is :
    I am displaying an ADF table on our form. (selection table, usercan select one row)
    • Status (active, pending , inactive)
    • Test Details
    These 2 column values get populated from database.
    The table has 2 more columns
    • New Status --> SelectOneChoice
    • Status Change Reason --> input text, render false
    Issue:
    When ever user selects New Status as Inactive from SelectOneChoice, the Status Change Reason, input text should get rendered true.
    For this I did following
    SelectOneChoice autosubmit to true
    put partial trigger on column Status Change Reason (SelectOneChoice id)
    Wrote EL for Render true
    But whenever I change value of SelectOneChoice to "Inactive", the input text doesn't get rendered to true :(
    But if i select any row then Input Text in Status Change Reason column is displayed for the row where value of SelectOneChoice is "Inactive".
    Please help on this....
    Dont know why is it not working :(

    did you try like this in the value change listener?
    public void selectOneChoice1_valueChangeListener(ValueChangeEvent eve) {
    DCIteratorBinding listIter = getBindingsForDCB().findIteratorBinding("StatusViewObj1Iterator");
    int curIndex = (Integer)eve.getNewValue();
    Row datRow = listIter.getRowAtRangeIndex(curIndex);
    String name = (String)datRow.getAttribute("status");
    if (name != null && name.equals("inactive"){
    inputText1.setRendered(Boolean.FALSE);
    RequestContext.getCurrentInstance().addPartialTarget(inputText1);
    Edited by: puthanampatti on Mar 3, 2009 8:20 PM

  • Programmatically Built selectOneChoice

    Hiiii,
    I have a selectOneChoice element which is filled up programmatically with values not based on View Objects, I am trying to get the selected value also programmatically, but I am facing a problem. Can anyone help?
    Message was edited by:
    RJundi
    Message was edited by:
    RJundi

    I think statlist stands for static list, which contains all the values visible in the selectonechoice, defined in a bean.
    I made a small example, this really should work:
    1. I created a bean which stores:
    - the static values
    - the selected/submitted item
    import java.util.ArrayList;
    import java.util.List;
    public class MyBean {
    private String myAttribute;
    private List myList;
    public MyBean() {
    myList = new ArrayList();
    this.myList.add("EJB");
    this.myList.add("ADF BC");
    this.myList.add("TOPLINK");
    public void setMyAttribute(String myAttribute) {
    System.out.println("setMyAttribute: " + myAttribute);
    this.myAttribute = myAttribute;
    public String getMyAttribute() {
    System.out.println("getMyAttribute");
    return myAttribute;
    public void setMyList(List myList) {
    this.myList = myList;
    public List getMyList() {
    return myList;
    2. On the jspx page I iterate over the list and set the current string as label and as value:
    <af:selectOneChoice value="#{myBean.myAttribute}"
    label="Technologies" autoSubmit="true">
    <af:forEach items="#{myBean.myList}" var="li">
    <af:selectItem label="#{li}" value="#{li}"/>
    </af:forEach>
    </af:selectOneChoice>
    autoSubmit is set to true and the value of the submitted choice is stored in the myAttribute variable from the myBean bean.
    I hope you succeed implementing this example, if not, feel free to ask.
    Regards,
    Koen
    ps: what's the ubb code to show colors in my java,sql, .. example code?

  • Custom login form to change data source

    Hi,
    I actually went thru this link for some help on changing datasource at runtime.
    http://www.jobinesh.com/2011/04/modifying-application-modules-jdbc.html.
    Jdev version :11.1.2.2.0
    What I am trying to is on my login screen i have three fields
    User name Textbox
    Pwd Textbox
    DB ( SelectOne Choice)
    Now when User is changing any db in SelectOneChoice(autosubmit =true) ,I am calling value change listener to set session variable.
    public void dbChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("priint1");
    //JSFUtils.setManagedBeanValue("sessionScope.dataSource", ADFUtils.getBoundAttributeValue("Name"));
    JSFUtils.setManagedBeanValue("sessionScope.dataSource", valueChangeEvent.getNewValue());
    System.out.println("priint2");
    Also I am using DynamicEnvInfoProvider,code is as follows
    package model;
    import java.util.Hashtable;
    import java.util.Map;
    import oracle.adf.share.ADFContext;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.common.ampool.EnvInfoProvider;
    public class DynamicEnvInfoProvider implements EnvInfoProvider {
    public DynamicEnvInfoProvider() {
    super();
    public Object getInfo(String infoType, Object env) {
    if (EnvInfoProvider.INFO_TYPE_JDBC_PROPERTIES.equals(infoType)) {
    Map session = ADFContext.getCurrent().getSessionScope();
    //Object dsName = session.get(Configuration.JDBC_DS_NAME);
    // System.out.println("Before "+session.get(Configuration.JDBC_DS_NAME));
    Object dsName = session.get("dataSource");
    System.out.println("Setting "+session.get("dataSource"));
    System.out.println((String)dsName);
    if (dsName != null) {
    if (((Hashtable)env).containsKey(Configuration.JDBC_DS_NAME)) {
    ((Hashtable)env).put(Configuration.JDBC_DS_NAME,
    (String)dsName);
    //System.out.println("After "+session.get(Configuration.JDBC_DS_NAME));
    return null;
    public int getNumOfRetries() {
    return 0;
    @Deprecated
    public void modifyInitialContext(Object initialContext) {
    This is how appmodule config looks like
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">
    <AppModuleConfigBag ApplicationName="AppModule.AppModuleAM">
    <AppModuleConfig DeployPlatform="LOCAL" jbo.project="model.Model" name="AppModuleAMLocal" jbo.txn.disconnect_level="1" ApplicationName="AppModule.AppModuleAM">
    <Database jbo.TypeMapEntries="OracleApps" jbo.locking.mode="optimistic"/>
    <Security AppModuleJndiName="AppModule.AppModuleAM"/>
    <Custom JDBCDataSource="jdbc/ADFTRAINDS" jbo.envinfoprovider="model.DynamicEnvInfoProvider"/>
    </AppModuleConfig>
    <AppModuleConfig name="AppModuleAMShared" jbo.project="model.Model" ApplicationName="AppModule.AppModuleAM" DeployPlatform="LOCAL">
    <AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>
    <Database jbo.TypeMapEntries="OracleApps"/>
    <Security AppModuleJndiName="AppModule.AppModuleAM"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/ADFTrainingDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Now on click of button I am calling a action listener to execute a operation binding which is executing a procedure but even though using system out i see code going in DynamicEnvoProvider and setting value when combo box value is getting changed ,but procedure is not executing in the modified db its still running on jdbc/ADFTRAINDS.
    Can anyone help me figure it out whats problem here?
    Regards,

    Hi,
    Jobinesh blog post comes with a sample, did you try and run this? If so, does it work? Note that if the sample works it makes it easier to find he problem as it allows narrowing down the problem area to your implementation. If the problem reproduces with Jobinesh's sample then its a clue that the product may have issues with dynamic JDBC credentials
    Frank

  • ADF Faces : simultaneous partial page rendering

    hi
    I'm wondering what I can expect from "simultaneous partial page rendering".
    I would like to have some af:selectOneChoice components on a page, with next to them some related information about the selected value.
    This example application, created using JDeveloper 10.1.3.3.0, does this using partial page rendering (check README.txt):
    http://verveja.footsteps.be/~verveja/files/oracle/SimultaneousPPRApp-v0.01.zip
    It as a pprPage.jspx with these components ...
              <af:panelPage title="pprPage">
                <af:panelHorizontal>
                  <af:commandButton text="some button"/>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="requestCounter.value = #{requestCounter.value}"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice A"
                                      id="selectOneChoiceA" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceA}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceA}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="first choice label"
                                   value="first-choice-value"/>
                    <af:selectItem label="second choice label"
                                   value="second-choice-value"/>
                    <af:selectItem label="third choice label"
                                   value="third-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceARelatedValue}"
                                 partialTriggers="selectOneChoiceA"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice B"
                                      id="selectOneChoiceB" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceB}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceB}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="fourth choice label"
                                   value="fourth-choice-value"/>
                    <af:selectItem label="fifth choice label"
                                   value="fifth-choice-value"/>
                    <af:selectItem label="sixth choice label"
                                   value="sixth-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceBRelatedValue}"
                                 partialTriggers="selectOneChoiceB"/>
                </af:panelHorizontal>
                <af:outputText value="userAgentHelper.info = #{userAgentHelper.info}"/>
              </af:panelPage>... and has a backing bean like this ...
    public class PPRPage
         public String getSelectOneChoiceBRelatedValue()
              return "some " + fSelectOneChoiceB.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public String getSelectOneChoiceARelatedValue()
              return "some " + fSelectOneChoiceA.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public void onChangeSelectOneChoiceA(ValueChangeEvent pValueChangeEvent)
              // simulating a slow operation/response
              try
                   Thread.sleep(2000);
              catch (InterruptedException ex)
                   ; // ignore;
         public void onChangeSelectOneChoiceB(ValueChangeEvent pValueChangeEvent)
              // nothing here to slow things down
    }It is important to note that changing the value for the "selectOneChoice A" dropbox has some time consuming operation to perform (possibly calculating/querying the related information to show next to it).
    Using IE 6 ("userAgentHelper.info = ... MSIE 6.0 ..."), this behaves like this:
    (ie-1) Run pprPage.jspx in JDeveloper, which results in a page that shows this:
    selectOneChoice A [null value label] some null related value, ...
    selectOneChoice B [null value label] some null related value, ...(ie-2) Select "first choice label" from the "selectOneChoice A" dropbox and immediatly after that select "fourth choice label" from the "selectOneChoice B" dropbox, which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some null related value, ...(ie-3) Select "second choice label" from the "selectOneChoice A" dropbox, which results in a page that shows this:
    selectOneChoice A [second choice label] some second-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...Using Firefox 2.0 ("userAgentHelper.info = ... Firefox/2.0.0.12"), this behaves like this:
    (ff-1) Do the same as in step (ie-1), which has the same result as step (ie-1).
    (ff-2) Do the same as in step (ie-2), which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...
    questions:
    (q1) Why does the related information, for the selected "fourth choice label", not show up in step (ie-2) (as it does in step (ff-2))?
    (q2) Why does the related information, for the selected "fourth choice label", show up in step (ie-3) while the value was only/already changed in step (ie-2)?
    (q3) Does some general approach exist to prevent "simultaneous partial page rendering" behaviour as described in (q1) and (q2)?
    many thanks
    Jan Vervecken

    repost
    --

  • Java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 1 is

    I have two drop down. If i change value in 1st drop down, the 2nd drop down value list changes( i am using using autoSubmit and partialTriggers ).
    But when i try to change the value in 2nd drop down list, and again change the value in the 1st dropdown, i get the below error. Please help me.
    <tr:selectOneChoice autoSubmit="true" value="#{addbean.accountFeature}" id="selectAccountFeatures" size="1">
    <f:selectItems value="#{inputMap}" />
    </tr:selectOneChoice>
    <tr:selectOneChoice partialTriggers="selectAccountFeatures" value="#{addbean.cardOrCheckTitle}" id="selectCardOrCheckType" size="1">
    <f:selectItems value="#{checkTypeMap}" />
    </tr:selectOneChoice>
    java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 1 is out of bounds. It should be between 0 and 0
    at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.__getIndex(SimpleSelectOneRenderer.java:423)
    at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer._convertIndexedSubmittedValue(SimpleSelectOneRenderer.java:214)
    at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.getConvertedValue(SimpleSelectOneRenderer.java:181)
    at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.getConvertedValue(InputLabelAndMessageRenderer.java:65)
    at org.apache.myfaces.trinidad.component.UIXEditableValue.getConvertedValue(UIXEditableValue.java:422)
    at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:164)
    at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:488)
    at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
    at javax.faces.component.UIForm.processValidators(UIForm.java:74)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:709)
    at javax.faces.component.UIViewRoot.access$101(UIViewRoot.java:43)
    at javax.faces.component.UIViewRoot$2.process(UIViewRoot.java:97)
    at javax.faces.component.UIViewRoot.process(UIViewRoot.java:206)
    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:93)
    at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
    at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
    at arch.jsf.JsfResource.process(JsfResource.java:145)
    at arch.presentation.beans.WebApplication._doServletFilterForRequest(WebApplication.java:564)
    at arch.presentation.beans.WebApplication.processResource(WebApplication.java:1368)
    at arch.presentation.beans.WebApplication.processRequest(WebApplication.java:2531)
    at arch.service.beans.ServiceContainer.processRequest(ServiceContainer.java:3913)
    at arch.no.engine.Context.processRequest(Context.java:68)
    at arch.no.engine.HttpConnector.processRequest(HttpConnector.java:58)
    at arch.no.http.Response.prepare(Response.java:563)
    at arch.no.http.Response._execute(Response.java:1975)
    at arch.no.http.Response.execute(Response.java:1910)
    at arch.no.http.HttpThreadPool._run(HttpThreadPool.java:32)
    at arch.util.ThreadPool._runLoopBody(ThreadPool.java:215)
    at arch.util.ThreadPool._runForThread(ThreadPool.java:232)
    at arch.util.ThreadPool.access$000(ThreadPool.java:5)

    Then either you did it wrong, or it is a bug in Trinidad.
    I've explored the Google results of the in the subject mentioned exception message and I noticed suggestions such as setting the value with an empty String. This is a nasty bug. Report it to the Trinidad boys over there at Apache.org. This problem is not related to the JSF core API.

  • ADF Faces Components:how to align af:panelBox with fields in af:panelForm?

    Hi,
    I have an af:panelForm component to which I added af:selectOneChoice and few af:inputText components. af:panelForm aligns all af:inputText fields properly with labels being right justified and the input fields left justified.I wanted to add af:panelBox at the end but don't know how to align it with the input fields.
    I wrapped the last input field and the af:panelBox inside af:panelBorder but this didn't help. I still get af:panelBox displayed at the extreme left hand side.
    I could put af:panelBox inside another af:panelForm but that does not work for me because af:panelBox happens to be target of a PPR, source of which is the af:selectOneChoice. Depending on the selected item of ad:selectOneChoice, I want to either show af:panelBox or hide it. So I had to include af:panelBox in the same af:panelForm that contains af:inputText so that both source and target of PPR are at the same level for PPR to work. I can also add af:objectSpacer before af:panelBox to get the alignment i am looking after but this again doesn't help because when window is restored or maximized, then the alignment gets lost. Any clue how to achieve that ?
    <af:panelForm>
    <af:selectOneChoice
    id="SelectOneChoice"
    autoSubmit="true"
    immediate="true"...>
    <af:forEach var="item"
    items="#{bindings.View_rIterator.allRowsInRange}">
    <af:selectItem value="#{item.id}"
    label="#{item.id}"/>
    </af:forEach>
    </af:selectOneChoice>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:panelBorder partialTriggers="SelectOneChoice">
         <af:inputText ..../>
    <af:panelBox text="Panel Box:"
    background="transparent" width="200">
    <af:panelHorizontal halign="center">
         <af:inputFile .../>
         <af:objectSpacer width="3"/>
              <af:commandButton .../>
         </af:panelHorizontal>
    <af:panelHorizontal halign="center">
    <af:objectImage ..."/>
    </af:panelHorizontal>
    <af:panelHorizontal halign="center">
    <af:panelButtonBar>
    <af:commandButton ..."/>
    </af:panelButtonBar>
    </af:panelHorizontal>
    </af:panelBox>
    </af:panelBorder>
    </af:panelForm>
    Please advice.
    Thanks

    Hi,
    did you try skinning ? Inline style CSS doesn't necessarily work for the whole component as it operates on the root DOM element, which in the case of a composite component isn't the individual facet
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    af|panelPage::about{
    height: 30%;
    Frank

  • Valuechangelistener in oracle jdeveloper 10.1.3.1

    Hi,,
    I am using jdeveloper 10.1.3.1
    Before this im using jdeveloper 10.1.3.0,,, from this version, i build my own valuechangelistener for a dropdownlist to filter another dropdownlist,,,
    When i'm migrating my application to 10.1.3.1, my valuechangelistener not functioning as expected in 10.1.3.0 version...
    it seems on 10.1.3.1 the valuechangelistener refresh the page, compare to valuechangelistener in 10.1.3.0 it doesn't refresh it..
    So it's a bug,,,,
    I need a solution for this.. pls help me,,It's an urgent case... needed to settle this...
    Thanks...

    Hi,
    Thanks for immediate reply.
    The strange behavior of valuechangelistener is, it works in jdeveloper 10.1.3.0 where the partial page request done well...
    but in jdeveloper 10.1.3.1, the partial page doesnt work, my page totally refresh a.k.a been submitted....
    this is my jsp code:
    <af:panelForm labelWidth="29%" fieldWidth="71%" width="100%">
    <af:selectOneChoice autoSubmit="true" id="filters"
    valueChangeListener="#{listKodBandarPekanMukim.madeChanges}"
    label="Daerah :" showRequired="true"
    binding="#{backingSpoc.daerahHasil}" valuePassThru="true">
    <f:selectItems value="#{listKodDaerah.list}"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="Bandar/Pekan/Mukim :"
    value="#{kaunterHasil.bandarPekanmukim}"
    partialTriggers="filters" showRequired="true"
    binding="#{listKodBandarPekanMukim.kodBandarPekanMukimCommon}">
    <f:selectItems value="#{listKodBandarPekanMukim.list}"/>
    </af:selectOneChoice>
    </af:panelForm>
    this is my coding part in backing bean:
    public void madeChanges(ValueChangeEvent valueChangeEvent){
    ManageCRUD manager = new ManageCRUD();
    Object obj = valueChangeEvent.getNewValue();
    Object test = valueChangeEvent.getSource();
    if(test!=null){
    CoreSelectOneChoice csoc = (CoreSelectOneChoice) test;
    csoc.getChildren();
    if(obj!=null){
    String a = new String();
    if(!obj.getClass().isInstance(a)){
    KodDaerah obj1 = (KodDaerah)valueChangeEvent.getNewValue();
    Expression exp = new ExpressionBuilder();
    getList(manager.ReadByExpression(KodBandarpekanmukim.class,
    exp.getField("KOD_DAERAH").equal(obj1.getKod().toCharArray())));
    if(kodBandarPekanMukimCommon!=null)
    kodBandarPekanMukimCommon.setValue(null);
    }

  • Clicking one commandToolbarButton in af:treetable shows all buttons clicked

    I have an adf tree table containing two columns of expand/collapse commandtoolbar buttons in all rows.
    The buttons for a row get activated when a corresponding checkbox in third column of table is clicked.
    But when i click expand/collapse button for one activated row , it shows expand/collapse buttons for all the activated rows as clicked.
    What am i doing wrong ?

    Hi
    Following is the code that creates a treetable with three columns containing commandToolbar Button and SelectCheckbox.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core" version="2.1">
    <af:componentDef var="attrs" componentVar="ddComp">
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <attribute>
    <attribute-name>model</attribute-name>
    <attribute-class>oracle.rgbu.ard.view.model.RichTreeSelect</attribute-class>
    <required>true</required>
    </attribute>
    <attribute>
    <attribute-name>renderExpCollapse</attribute-name>
    <default-value>true</default-value>
    </attribute>
    </component>
    </af:xmlContent>
    <af:treeTable id="dimPopTable" var="node" verticalGridVisible="false" horizontalGridVisible="false"
    rowSelection="none" rowBandingInterval="0" columnBandingInterval="0" contextMenuSelect="false"
    styleClass="compTreeSelect" columnStretching="column:name" value="#{attrs.model.treeModel}"
    disclosedRowKeys="#{attrs.model.disclosedRows}" varStatus="stat" binding="#{attrs.model.treeTable}"
    contentDelivery="immediate">
    <f:facet name="nodeStamp">
    <af:column id="name" displayIndex="2">
    <af:panelGroupLayout>
    <af:image source="#{node.attributes['CONNECTOR'] ? '/images/connector.png' : '/images/blank.png'}"
    inlineStyle="width:16px; height:16px; vertical-align:top;"/>
    <af:selectBooleanCheckbox id="lvlSel" selected="#{node.selected}" inlineStyle="width:16px; height:16px;"
    autoSubmit="true" valueChangeListener="#{attrs.model.nodeSelectionListener}"
    shortDesc="#{UIRes['tree.select.node.msg']}">
    <f:attribute name="#{attrs.model.KEY}" value="#{node.id}"/>
    </af:selectBooleanCheckbox>
    <af:outputText value="#{node.element.label}" inlineStyle="margin-left:5px;"
    shortDesc="#{node.element.label}"/>
    </af:panelGroupLayout>
    </af:column>
    </f:facet>
    <af:column align="center" width="100" rendered="#{attrs.renderExpCollapse}" displayIndex="1">
    <f:facet name="header">
    <af:panelGroupLayout layout="horizontal">
    <af:outputLabel value="#{UIRes['tree.select.all.label']}"/>
    <af:selectOneChoice autoSubmit="true" simple="true" binding="#{attrs.model.selectChoice}"
    mode="compact" valueChangeListener="#{attrs.model.selectAllListener}">
    <f:selectItems value="#{attrs.model.allOptions}"/>
    </af:selectOneChoice>
    </af:panelGroupLayout>
    </f:facet>
    <af:panelGroupLayout layout="horizontal">
    *<af:commandToolbarButton actionListener="#{attrs.model.expand1Listener}"*
    id="row"
    type="radio"
    *disabled="#{!node.selected}"*
    *icon="/images/disclosecollapsed_ena.png"*
    *depressedIcon="/images/disclosecollapsed_dwn.png"*
    *disabledIcon="/images/disclosecollapsed_dis.png"*
    *partialTriggers="lvlSel"*
    *>*
    *<f:attribute name="#{attrs.model.KEY}" value="#{node.id}"/>*
    *</af:commandToolbarButton>*
    *<af:commandToolbarButton actionListener="#{attrs.model.collapse1Listener}"*
    *id="g"*
    *type="radio"*
    *disabled="#{!node.selected }"*
    *icon="/images/discloseexpanded_ena.png"*
    *depressedIcon="/images/discloseexpanded_dwn.png"*
    *disabledIcon="/images/discloseexpanded_dis.png"*
    *partialTriggers="lvlSel"*
    *>*
    *<f:attribute name="#{attrs.model.KEY}" value="#{node.id}"/>*
    *</af:commandToolbarButton>*
    </af:panelGroupLayout>
    </af:column>
    </af:treeTable>
    </af:componentDef>
    </jsp:root>
    a) Here i have used "node" as the row level variable in the treetable and i am using it to disable the buttons.But still all the activated row buttons in a column are getting clicked instead of just one that is clicked.
    b) Does it have anything to do with all the buttons in a column having the same id ?
    Please Help.

  • Issue when SelectOneChoice is used with Domain data type in JDev 11.1.2.0.0

    Hi,
    I am facing one issue while working with SelectOneChoice along with Custom Domain data type. Sample app to simulate the issue is available at http://www.filejumbo.com/Download/6FDF6ECF2922BD24
    Issue Details.
    Base view object’s attribute is of type CustomString, for which another static VO’s attribute is attached as LOV. LOV attribute is of type String. Because of this data type mismatch between LOV VO attribute and Base VO attribute, while working in screen, initially we were facing Class cast exception.
    Cannot convert <<LOV Attr. Val.>> of type class java.lang.String to class model.domain.common.CustomString This is not only for this type of SelectOneChoice but also for InputText field whose underlying VO attribute is of type CustomString (i.e. any Custom Domain type)
    On raising this in Jdeveloper forum, I came to know that adding a default oracle converter against the UI Component will take care of converting to respective data type. After added the converter for InputText and SelectOneChoice components, this issue got resolved. This was our lesson while working in Jdeveloper version 11.1.1.3.0. Converter we used,
    <f:converter converterId="oracle.genericDomain"/> When we try the same scenario in Jdev Version 11.1.1.4.0, without having the oracle converter itself, SelectOneChoice started working fine!! (i.e. it is able to set the base attribute with LOV attribute’s value but with proper base attribute’s domain data type). Anyhow, converter is required for InputText.
    When we try the same scenario in Jdeveloper new version 11.1.2.0.0, it started giving class cast exception when we don’t have oracle converter for SelectOneChoice. But by adding it, though it didn’t give such class cast exception message, though a selection is made in SelectOneChoice, VO attribute has not been updated with the new value. Instead it is updated with null value (Checked the setter method of view row impl by having break point) . Because of this, after a selection is made, when we try to read the attribute value from VO on button click, VO attribute always returns null.
    We have also tried our own converters but there is no change in the behavior.
    The above misbehavior can be tested either by having SOP programmatically or by refreshing the SelectOneChoice by giving its id as Partial trigger to itself with autosubmit set to true, so that the selected value will be reset to null irrespective of the selection made.
    For convenience, Issue details with Sample application is shared. Shared link : http://www.filejumbo.com/Download/6FDF6ECF2922BD24
    Shared folder contains
    1. Sample App developed on Jdev 11.1.1.4.0 to ensure it didn’t give this error.
    2. Sample App developed on Jdev 11.1.2.0.0 to simulate this error.
    3. Error details in a document.
    Can anybody have a look at this and tell me why this misbehavior and is it a bug? If so, any workaround available to continue the development?
    Thanks in Advance.
    Raghu
    Edited by: Raguraman on Sep 10, 2011 10:31 AM

    Sorry for the late reply John and Frank. Ya i did. Thank you.
    One more detail:
    I tested the behavior in Jdeveloper 11.1.2.0.0. The recent surprise is Select One Choice is behaving perfectly when it used in Grid layout and fail to work when it is form layout. I am getting surprised why behavior of component varies based on the way it refers the binding.
    for form layout,
    value=#{bindings.
    for grid layout,
    value=#{row.bindings.
    The bug details (#/title) are Bug 12968871 - RUNTIME CONVERSION FAILURE WHEN USING CUSTOM DOMAIN OBJECT VALIDATION IN EO
    Edited by: Raguraman on Sep 12, 2011 8:23 PM
    Edited by: Raguraman on Sep 12, 2011 8:31 PM

  • Issue with autosubmit selectchoice in adf table

    I have a column in adf:table which has select choice with autosubmit property set. When the value in the select list changes the table has to refresh and so I have set partialTrigger on table to the select list.
    Now the issue is that when a query is performed and the table refreshes to render the query results, the value change listener of the select choice is invoked with mutiple times (based on number of rows ). The new value of the select choice is null. Why does this happen, how can I avoid it?

    hi ,
    can i see the code of the table ?

  • ADF: Issue in selectOneChoice - dynamic list

    Hi,
    On my ADF page i have two selectOneChoice drop downs, one for CompanyName and other for DepartmentId. CompanyName drop down will get populated once the user logs in based on his credentials so, this is based on a query(having a where condition: where user='aaa'). CompanyName is fetched from the COMPANY table where CompanyId is the primary key. I wish to use Dynamic list for the selectOneChoice where base data source is the view based on 'select * from COMPANY' and the list data source is the view on 'select * from COMPANY where user='aaa''.
    DepartmentName is fetched from DEPARTMENT table(CompanyId is the foreign key here).
    I am using Dynamic list because i need to display CompanyName on the page whereas the backing bean needs to refer to the corresponding CompanyId as the DepartmentId drop down is based on 'select * from DEPARTMENT where CompanyId=<selected CompanyId>'.
    When i trying to run the ADF page, i am getting the following error:
    *<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Too many objects match the primary key oracle.jbo.Key[149 ].*
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[149 ].
    *     at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:598)*
    Here oracle.jbo.Key[149 ] : 149 is the CompanyId of the selected CompanyName.
    Kindly help me resolve this issue.
    Thanks in advance.

    Hi,
    Thanks for reply!
    Can you please tell me what is base data source and list data source. I mean in my example of code which query points to base data source and which one points to list data source?
    Among the below options which one should be base data source and which one is list data source?
    1. 'select * from COMPANY'
    2. 'select * from COMPANY where user='aaa''
    Thanks.

Maybe you are looking for