EndElement invoked once time...

Hello everybody,
i have a problem with my code... and with the method endElement()
This one and startElement too are fired once time...
But if I delete the method endElement, all is working fine...
Here is my code :
private void init() {
          DefaultHandler handler = new DefaultHandler () {
               public void startElement(String namespaceURI, String lname, String qname, Attributes attrs) throws SAXException {
                 System.out.println(lname);
               public void endElement(String namespaceURI, String lname, String qname) throws SAXException {
                 System.out.println(lname);
          SAXParserFactory saxFactory = SAXParserFactory.newInstance();
          saxFactory.setNamespaceAware(true);
          try {
           SAXParser saxParser = saxFactory.newSAXParser();
           saxParser.parse(new InputSource(fichierXML), handler);
          } catch (Exception ex) {}
}Thanx for your help...

Sorry here is my xml file :
<?xml version="1.0"?>
<board>
     <continent name="South America">
          <country name="Argentina"></country>
          <country name="Brazil"></country>
          <country name="Chile"></country>
          <country name="Colombia"></country>
          <country name="Peru"></country>
          <country name="Uruguay"></country>
     </continent>
     <continent name="Oceania">
          <country name="Australia"></country>
          <country name="Borneo"></country>
          <country name="Java"></country>
          <country name="Sumatra"></country>
     </continent>
</board>And my output is :
startElement >> board
startElement >> continent
startElement >> country
endElement >> country
startElement >> country
endElement >> country
startElement >> country
endElement >> country
startElement >> country
endElement >> country
startElement >> country
endElement >> country
startElement >> country
endElement >> country
endElement >> continent
Thanx again...

Similar Messages

  • Why PageController method invoked multiple times per request

    I have a page with a customized PageController to override the "prepareModel(LifecycleContext)" method to create bindings dynamically for the page.
    I expected the overridden method only invoked once per loading/refresh of the page.
    From debugging, I found the overridden method actually invoked 3 times before the page was loaded.
    When I put some logic so that bindings only created the 1st time the overridden method invoked, then the page failed to show the data properly as if the binding was missing.
    With some debugging, I noticed the PageController invoked multiple times when I added the af:table to the page.
    Any idea why prepareModel() got invoked multiple time per loading of a page with af:table ?
    How do I determine when to create bindings within prepareModel() so that bindings only created once and the page can use the binding to show the data properly?

    <executables>
    <invokeAction id="onpageLoadClearTable" Binds="clearViewObject"
    RefreshCondition="#{adfFacesContext.postback == false}"/> --------added this into your pagedef.
    </executables>
    <bindings>
    <methodAction IterBinding="XXXXXXXXViewIterator" id="clearViewObject"
    MethodName="clearViewObject" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="true"
    </bindings>

  • WhyI payment item in clash of clans game once time nexttime donot payment ? It show messenger Please contace itune support to complete  this transaction

    WhyI payment item in clash of clans game once time nexttime donot payment ?
    It show messenger Please contace itune support to complete  this transaction

    These are user-to-user forums, if you haven't already done so then you can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • How can I redeuce my pdf files once time adobe reader pro

    Dear,
    I would like to reduce my all pdf files once time.

    Sorry, I do not understand what you mean by "once time".
    Acrobat can reduce PDF file size by saving it as 'Reduced size PDF' or 'Optimized PDF'.

  • CommandButton action method invoked multiple times in standalone OC4J

    Hi,
    We've developed an application in JDeveloper 10.1.3.3.0 (ADF Business Components version 10.1.3.41.57). In one page we have a commandButton with an action method:
    <af:commandButton action="#{MyBean.myActionMethod}"
    blocking="false"
    textAndAccessKey="#{nls['MY_LABEL']}"
    id="myButtonId" >
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.ResetBreadcrumbStackActionListener"/>
    </af:commandButton>
    This method is defined in a managed bean:
    public String myActionMethod() {
    /* some code */
    return "indexPage";
    There is a navigation-rule for outcome "indexPage". When we run our application in the JDeveloper embedded OC4J instance and click on the commandButton, the action method is invoked once and then the .jspx in the navigation-rule is navigated to.
    We deployed our application to a standalone OC4J instance. Both embedded and standalone OC4J have version: Oracle Containers for J2EE 10g (10.1.3.3.0) (build 070610.1800.23513)
    When we run our application in the standalone OC4J and click on the commandButton, the action method is repeatedly invoked in a seemingly infinite loop.
    We'd appreciate it if someone could shed some light on the matter. Please note that we cannot use <redirect /> in our navigation-rule for "indexPage" because in production we have an Oracle webcache server upstream of our OC4J. Users can only submit HTTPS requests to the webcache, which in turn forwards these requests as HTTP requests.
    Kind regards,
    Ibrahim

    Dear All,
    We'd really appreciate it if somebody would suggest some possible causes even if these might seem fare-fetched. Perhaps compare certain .jar files or something to that effect.
    Anything ????
    Thanks and regards,
    Ibrahim

  • Improvement: Delete many messages in once time

    WHy aren't we able to remove many messages in once time. The only way we can do on latest iOS is to Delete one by one, it takes much time to do for all conversasion that we want to swipe out!!

    Good question, but since this forum is user to user, I'm sure no one knows what Apple designs things exactly this certain way, so good luck getting an answer
    Apple's feedback website may help you voice your concerns: http://www.apple.com/feedback/

  • HT201250 once time machine starts running, it never stops. what could cause this?

    Using WD, My Passport for Mac, 2TB with Time-Machine. Updated software on MacBook, now once time machine starts running an update it does not stop untill  cancel it!

    1. The first time takes very long always, after that it will only do changes very hour and you will not notice it. The drive must be correctly formatted, Guid Partition Table, Mac Os Extended (journaled).
    2. If you installed any of the 'smart' software that came with the disk (specifically with the WD disk), you have to uninstall it completely immediately, because it will cause data loss and speed at the minimum: in macs you do not not need such additional software, just make sure that the disk is correctly formatted. If you had such software installed, and now uninstalled, you better reformat the drive, restart the mac, and then start all over again with TM.
    Lex

  • Why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    1. Remove the headphone.
        If you see red light in the headphone port, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
    2. Reset PRAM.  http://support.apple.com/kb/PH4405
    3. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".

  • ADF11g: methodAction being invoked multiple times without control...

    Hi,
    I have a page that displays different data took from a single data control.
    This datacontrol is invoked by a methodAction, and the resulting bean contains both plain attributes and List of objects.
    I created my page with JDev 11.1.1.3.0, using drag and drop.
    What happens (seeing the log files) is that the page calls multiple times the methodAction instead of "recognizing" it only needs to call it 1 time to have all the data bound to the page,
    and of course the page does not work. I don't see the data even if the dataControls retrieve it.
    Here is my code:
    Page:
    <?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="viewcontrollerBundle"
             value="#{adfBundle['sop.view.ViewControllerBundle']}"/>
      <af:pageTemplate viewId="/WEB-INF/templates/dettagliOggettoCoinvoltoTemplate.jspx"
                       id="pt1">
        <f:attribute name="dataOraUltimoAggiornamento"
                     value="#{pageFlowScope.stazione.currentDateTime}"/>
        <f:attribute name="drillDownTab1Title" value="Treni In Arrivo"/>
        <f:facet name="overviewOggettoCoinvoltoArea">
          <af:panelGroupLayout id="pgl3" valign="middle" halign="left"
                               layout="horizontal">
            <!-- rendered="#{bindings._stazione.inputValue != null}"-->
            <af:panelGroupLayout id="pgl5" layout="vertical">
              <af:panelBox text="Info Stazione" id="pb1">
                <af:panelGroupLayout id="pgl8" layout="vertical">
                  <af:panelLabelAndMessage label="Stazione:" id="plam1">
                    <af:outputFormatted value="#{bindings._stazione.inputValue}"
                                        id="of1"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Situazione:" id="plam2">
                    <af:outputFormatted value="#{bindings.situazione.inputValue}"
                                        id="of2"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
              <af:panelBox text="Info TVM" id="pb3">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl10" layout="vertical">
                  <af:panelLabelAndMessage label="Numero TVM:" id="plam10">
                    <af:outputFormatted value="#{bindings.numTVM.inputValue}"
                                        id="of10"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Allarmi TVM:" id="plam11">
                    <af:outputFormatted value="#{bindings.numAllarmiTVM.inputValue}"
                                        id="of11"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl6" layout="vertical">
              <af:panelBox text="Info RFI" id="pb2">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl9" layout="vertical">
                  <af:panelLabelAndMessage label="Tel RFI:" id="plam6">
                    <af:outputFormatted value="#{bindings.telRFI.inputValue}"
                                        id="of6"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Cell RFI:" id="plam3">
                    <af:outputFormatted value="#{bindings.cellRFI.inputValue}"
                                        id="of3"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax RFI:" id="plam5">
                    <af:outputFormatted value="#{bindings.faxRFI.inputValue}"
                                        id="of5"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email RFI:" id="plam4">
                    <af:outputFormatted value="#{bindings.emailRFI.inputValue}"
                                        id="of4"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Tel PRM:" id="plam7">
                    <af:outputFormatted value="#{bindings.telPRM.inputValue}"
                                        id="of7"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax PRM:" id="plam8">
                    <af:outputFormatted value="#{bindings.faxPRM.inputValue}"
                                        id="of8"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email PRM:" id="plam9">
                    <af:outputFormatted value="#{bindings.emailPRM.inputValue}"
                                        id="of9"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl4" layout="vertical">
              <af:panelBox text="News" id="pb8">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl16">
                  <af:panelFormLayout id="pfl1">
                    <af:iterator id="i1" value="#{bindings.result1.collectionModel}"
                                 var="current">
                      <af:panelLabelAndMessage label="Titolo" id="plam15">
                        <af:outputFormatted value="#{current.title}" id="of15"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Autore" id="plam14">
                        <af:outputFormatted value="#{current.author}" id="of12"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Data Pubblicazione"
                                               id="plam12">
                        <af:outputFormatted value="#{current.pubDate}" id="of14">
                          <af:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
                        </af:outputFormatted>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Contenuto" id="plam13">
                        <af:outputText escape="false"
                                       value="#{current.description.value}"
                                       id="ot13"/>
                      </af:panelLabelAndMessage>
                    </af:iterator>
                  </af:panelFormLayout>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView1Area">
          <af:panelGroupLayout id="pgl12">
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView2Area">
          <af:panelGroupLayout id="pgl13">
          </af:panelGroupLayout>
        </f:facet>
        <f:attribute name="drillDownTab2Title" value="Treni In partenza"/>
        <f:attribute name="drillDownTab3Title" value="Personale"/>
        <f:attribute name="drillDownTab4Rendered" value="true"/>
        <f:attribute name="drillDownTab4Title" value="Allarmi"/>
        <f:attribute name="overviewOggettoCoinvoltoAreaTitle"
                     value="Agenda Servizio Stazione"/>
        <f:facet name="drillDownView4Area">
      /af:table>
          -->
        </f:facet>
        <f:facet name="drillDownView3Area">
        </f:facet>
      </af:pageTemplate>
    </jsp:root>PageDef:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.56.60"
                    id="visualizzazioneDettagliStazionePageDef" Package="fragments">
      <parameters/>
    <executables>
      <variableIterator id="variables"/>
      <methodIterator Binds="generaAgendaServizioStazione.result"
                      DataControl="StazioniServicePojo" RangeSize="25"
                      BeanClass="sop.model.beans.agendaServizioStazione.BeanAgendaServizioStazione"
                      id="generaAgendaServizioStazioneIterator"/>
      <accessorIterator MasterBinding="generaAgendaServizioStazioneIterator"
                        Binds="datiStazione" RangeSize="25"
                        DataControl="StazioniServicePojo"
                        BeanClass="sop.model.beans.agendaServizioStazione.BeanStazione"
                        id="datiStazioneIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoTVM"
                        RangeSize="25" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoTVM"
                        id="infoTVMIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoRFI"
                        RangeSize="10" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoRFI"
                        id="infoRFIIterator"/>
      <methodIterator id="readRSSStazioneIter" Binds="readRSSStazione.result"
                      DataControl="RssServicePojo" RangeSize="25"
                      BeanClass="com.sun.syndication.feed.rss.Item"/>
    </executables>
    <bindings>
      <methodAction id="generaAgendaServizioStazione" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="generaAgendaServizioStazione"
                    IsViewObjectMethod="false" DataControl="StazioniServicePojo"
                    InstanceName="StazioniServicePojo.dataProvider"
                    ReturnName="StazioniServicePojo.methodResults.generaAgendaServizioStazione_StazioniServicePojo_dataProvider_generaAgendaServizioStazione_result">
       <NamedData NDName="locationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
       <NamedData NDName="dataRichiesta"
                  NDValue="#{pageFlowScope.stazione.dataRichiesta}"
                  NDType="java.util.Calendar"/>
      </methodAction>
      <attributeValues IterBinding="datiStazioneIterator" id="situazione">
       <AttrNames>
        <Item Value="situazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="datiStazioneIterator" id="_stazione">
       <AttrNames>
        <Item Value="_stazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numTVM">
       <AttrNames>
        <Item Value="numTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numAllarmiTVM">
       <AttrNames>
        <Item Value="numAllarmiTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telRFI">
       <AttrNames>
        <Item Value="telRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxRFI">
       <AttrNames>
        <Item Value="faxRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="cellRFI">
       <AttrNames>
        <Item Value="cellRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailRFI">
       <AttrNames>
        <Item Value="emailRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telPRM">
       <AttrNames>
        <Item Value="telPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxPRM">
       <AttrNames>
        <Item Value="faxPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailPRM">
       <AttrNames>
        <Item Value="emailPRM"/>
       </AttrNames>
      </attributeValues>
      <methodAction id="readRSSStazione" InstanceName="RssServicePojo.dataProvider"
                    DataControl="RssServicePojo" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="readRSSStazione"
                    IsViewObjectMethod="false"
                    ReturnName="RssServicePojo.methodResults.readRSSStazione_RssServicePojo_dataProvider_readRSSStazione_result">
       <NamedData NDName="stazioneLocationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
      </methodAction>
      <tree IterBinding="readRSSStazioneIter" id="result1">
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Item" Name="result10">
        <AttrNames>
         <Item Value="title"/>
         <Item Value="author"/>
         <Item Value="uri"/>
         <Item Value="pubDate"/>
        </AttrNames>
        <Accessors>
         <Item Value="description"/>
        </Accessors>
       </nodeDefinition>
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Description"
                       Name="result11">
        <AttrNames>
         <Item Value="type"/>
         <Item Value="value"/>
        </AttrNames>
       </nodeDefinition>
      </tree>
    </bindings>
    </pageDefinition>The datacontrols are standard pojo data controls.
    Can someone point me out to the solution ? Why methodAction is called multiple times ?

    Does someone has any clues ?!

  • AddPartialTarget causes valueChangeListener invoked multiple times

    Hi All,
    I am using JDev 11.1.1.6.0.
    I have a problem with programmatic ppr using addPartialTarget method.
    The scenario is as follows:
    I have an af:table in which 2 of the columns include selectOneChoice in each: ( select1 and select2 ).
    The values of select2 depends on select1. For example, select1 has countries, and select2 has cities of the selected country of select1.
    So, in valueChangeListener of select1, based on the selected value, get the respective cities, put into the list used by select2. And after everything finished, refresh the select2 using AdfFacesContext.getCurrentInstance().addPartyTarget(this.getSelect2()).
    The problem is that the valueChangeListener of select1 (countryChangeListener) is called multiple times. Then it shows NullPointerException pop-up in the ui. But I can't find the exception trace in my log. I found that it's not coming from the listener method when I debug.
    Below is the jsff content:
    +<af:column headerText="#{bindings.tableVO1.hints.Country.label}" id="c16">+
    +<af:selectOneChoice label=""+
    +value="#{row.bindings.Country.inputValue}"+
    +valueChangeListener="#{backingBeanScope.myBean.countryChangeListener}"+
    +autoSubmit="true"+
    +id="soc1">+
    +<f:selectItems value="#{pageFlowScope.countryList}"+
    +id="si2"/>+
    +</af:selectOneChoice>+
    +</af:column>+
    +<af:column headerText="#{bindings.tableVO1.hints.City.label}" id="c8">+
    +<af:selectOneChoice label="" id="soc4"+
    +value="#{row.bindings.City.inputValue}"+
    +autoSubmit="true"+
    +binding="#{backingBeanScope.myBean.socCity}">+
    +<f:selectItems value="#{row.bindings.CityList.inputValue}"+
    +id="si6"/>+
    +</af:selectOneChoice>+
    +</af:column>+
    The problem also occurs for other select boxes in that table.
    Although I solved it by using *partialTriggers=soc1* in city select box in jsff, it works (it refreshes the city select box and shows the values), I don't know why the programmatic refresh with addPartialTarget() is not working.
    Can you all please help with that issue? Because I need to use addPartialTarget for other cases.
    Thanks.
    Best Regards,
    cmoster

    Hi,
    there is no way in JSF to execute a value change listener multiple times and I spare myself the full life cycle explanation here. Because you use this in a table, how likely is it that the Value Change Listener is invoked for other rows of the table? Can you try setting the selectOneChoice valuePassThru property to true? My assumption is that upon rendering of the select lists you do change the underlying component value
    Frank

  • CommandLink not invoking every time in table

    Hi All,
    I have a Command Link inside one of the af:columns of the table. I just dragged and dropped the column from component pallet to the table for the link. I have set the ActionListener and Action to the managed bean but, when i try to click the link, its not invoking the action and action listener every time. Don't know whats wrong ?
    code:
    <af:column id="c10" headerText="Link">
    <af:commandLink text="Details" id="cl4"
    action="#{someScope.myBean.myAction}"
    actionListener="#{someScope.myBean.myListener}">
    <f:attribute name="name" value="#{row.someThing}"/>
    </af:column>
    I tried these:
    1. Tried with PartialSubmit:true
    2. tried with ChangeEventPolicy for iterator as PPR and also default
    3. Command Link outside table always invokes the methods
    Additional Info:
    1. I have my bean registered in the TF
    2. Iterator is based on read only VO
    Please help me with this.

    Hi Ramandeep,
    I have these inside my code:
    System.out.println ("In Action Listner");
    System.out.println ("In Link Action ");
    It prints the above lines only on the second time i click, 1st time it does not invoke the methods

  • Invoke- Receive - Time delay

    Hello All,
    I have two Async processes, Process A and Process B. Process A invokes process B and waits for response from Process B. Process A gets the response back from process B when process B invokes process A, however there is a 10 sec time delay between the call and receive when I looked in the audit.
    Process A ->Process B (Process B is invoked immediately)
    Process B -> Process A (10 sec delay after process B calls process A).
    My version is 10.1.3.3. Can somebody suggests what do I need to do avoid this delay ...
    Also this is in development and I don't have many process running at the same time.
    Any help will be appreciated.
    Thanks & Regards,
    Ranjith

    p^2,
    I have written a quick example that turns on sequentially and off sequentially. This uses the DAQmx write function to turn on the relays, waiting 100ms [or other specified period] between each turn on. Then it waits another amount [in this case 200 ms] to ensure that the relay has been on for 1000ms [or some other specified period] before being turned off. 
    Frank,
    National Instruments
    Staff Software Project Engineer
    Attachments:
    Sequential Turn On Delays.vi ‏21 KB

  • What to do once Time Capsule is installed?

    I've just loaded my Time Capsule for the first time. Should I leave it plugged in to power and the internet to ensure future back-ups are activated?

    It should be plugged in all the time, unless you have a particular reason to turn it off. Your Mac can back up to your TC automatically.
    By the way, what do you mean by "loaded"?

  • ValueChangeListener on LOV not invoked 2nd time

    Hi All ,
    I am using Jdev 11.1.1.6 with WLS 10.3.5 and ADF BC.
    I have a LOV which is bound to an attribute of a VO. Below the LOV I have the same VO dropped as a table.
    Initally I am creating an empty row for the table since no rows exist. So the LOV (showing a certain Type of value) shows up as empty.
    The LOV is tied to a ValueChangeListener (VCL) and autoSubmit=true. My valueChangeListener is as follows ->
        public void rateTypeCommonValueChangeListener(ValueChangeEvent vce) {
            vce.getComponent().processUpdates(FacesContext.getCurrentInstance());
          //further logic
    }The VCL fires properly the 1st time I change the value from blank to a particular value. But doesnot fire after that.
    I debugged and figured that it doesnot even call the VO Attribute setter the 2nd time :(
    Here is the jspx code bit if needed ->
    <af:showDetail disclosed="true" id="sd1">
           <af:selectOneChoice value="#{bindings.RateType.inputValue}" // The LOV in question
                              label="#{bindings.RateType.label}"
                              required="#{bindings.RateType.hints.mandatory}"
                              shortDesc="#{bindings.RateType.hints.tooltip}"
                              id="soc8" autoSubmit="true"
                              valueChangeListener="#{pageFlowScope.RateBean.rateTypeCommonValueChangeListener}"> // The VCL in question
            <f:selectItems value="#{bindings.RateType.items}" id="si13"/>
            <f:attribute name="rateType" value="01"/>
            <f:attribute name="binding" value="RateType"/>
          </af:selectOneChoice>
          <af:panelGroupLayout id="pgl1" layout="horizontal">
            <af:panelCollection id="pc1">
               <af:table value="#{bindings.TariffRateForAirtime.collectionModel}"// the Table and LOV both point to the same iterator Binding in the pageDef
                        var="row" rows="#{bindings.TariffRateForAirtime.rangeSize}"
                        emptyText="#{bindings.TariffRateForAirtime.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.TariffRateForAirtime.rangeSize}"
                        rowBandingInterval="0"
                        selectedRowKeys="#{bindings.TariffRateForAirtime.collectionModel.selectedRow}"
                        selectionListener="#{bindings.TariffRateForAirtime.collectionModel.makeCurrent}"
                        rowSelection="single" id="t2"
                        partialTriggers="::ctb1 ::ctb2 ::pc2:ctb3 ::pc2:ctb4"
                        autoHeightRows="4" contentDelivery="immediate"
                        columnStretching="column:c29">
                <af:column sortProperty="Price" sortable="false" headerText="Cost"
                           id="c12">
                  <af:inputText value="#{row.bindings.Price.inputValue}"
                                label="#{bindings.TariffRateForAirtime.hints.Price.label}"
                                required="#{bindings.TariffRateForAirtime.hints.Price.mandatory}"
                                columns="#{bindings.TariffRateForAirtime.hints.Price.displayWidth}"
                                maximumLength="#{bindings.TariffRateForAirtime.hints.Price.precision}"
                                shortDesc="#{bindings.TariffRateForAirtime.hints.Price.tooltip}"
                                id="it5" autoSubmit="true">
                    <f:validator binding="#{row.bindings.Price.validator}"/>
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.TariffRateForAirtime.hints.Price.format}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="UnitType" sortable="false"
                           headerText="#{bindings.TariffRateForAirtime.hints.UnitType.label}"
                           id="c9">
                  <af:selectBooleanCheckbox value="#{row.bindings.UnitType.inputValue}"
                                            label="#{row.bindings.UnitType.label}"
                                            shortDesc="#{bindings.TariffRateForAirtime.hints.UnitType.tooltip}"
                                            id="sbc3" autoSubmit="true"/>
                </af:column>
                <af:column sortProperty="IntervalId" sortable="false"
                           headerText="#{bindings.TariffRateForAirtime.hints.IntervalId.label}"
                           id="c10">
                  <af:selectOneChoice value="#{row.bindings.IntervalId.inputValue}"
                                      label="#{row.bindings.IntervalId.label}"
                                      required="#{bindings.TariffRateForAirtime.hints.IntervalId.mandatory}"
                                      shortDesc="#{bindings.TariffRateForAirtime.hints.IntervalId.tooltip}"
                                      id="soc1" autoSubmit="true">
                    <f:selectItems value="#{row.bindings.IntervalId.items}"
                                   id="si1"/>
                  </af:selectOneChoice>
                </af:column>
                <af:column id="c29" headerText="Interval Desc"/>
                <af:column id="c11" headerText="Tax"
                           binding="#{pageFlowScope.RateBean.taxesColumnAirtime}"
                           visible="#{bindings.TaxesApplicable.inputValue}">
                  <af:selectManyChoice label="Tax" id="selectManyChoice2"
                                       value="#{pageFlowScope.RateBean.taxes}"
                                       readOnly="true">
                    <af:forEach items="#{bindings.TariffTax.rangeSet}" var="item">
                      <af:selectItem value="#{item.TaxId}" id="selectItem2"
                                     label="#{item.TaxName}"/>
                    </af:forEach>
                  </af:selectManyChoice>
                </af:column>
              </af:table>
            </af:panelCollection>
          </af:panelGroupLayout>
        </af:showDetail>I know alternatively I can have an independant LOV populated programmatically but I have a number of such combinations in my page and I am trying to reduce my coding effort out here.
    Also this issue sounds similar to me to - Re: Value Change Listener In af:table

    Yahoo .. I was able to get this work just now after struggling with it for a few hours :(
    basically in my VCE called an AM method in which I was resetting the value of the LOV Attribute due to some requirement.
    When I was getting the value from the SelectOneChoice (not the Index) using https://blogs.oracle.com/shay/entry/getting_the_value_from_a_selec ,
    I was being returned a Row instead of a Value... this was causing the Issue.For some strange reason I had to get an attribute out of it... and doing that resolved the issue for me.
        private Object getValueForSelectOneChoice(String bindingName){
            JUCtrlListBinding listBinding=(JUCtrlListBinding)ADFUtils.getBindingContainer().get(bindingName);
            Object selectedValue=listBinding.getSelectedValue();
            return ((CustomViewRowImpl)selectedValue).getAttribute("Id");//I have no idea why we need to do this to get value from a ListBinding !
        }

  • During yhe installing, have a problem a it`s cancelled. Could i install lyon at the once time??, during yhe installing, have a problem a it`s cancelled. Could i install lyon at the once time??

    I purchased OS Lyon, but dunring installantion i hav a problem and i cancel installation. How can i install correctly ths Mac OS Lyon.
    I hanven't any options in AppStore.
    Help me.
    Regards.

    I don't trust [Auto] Vmem in the BIOS.
    First, Cajuntek, I would try beta BIOS 1.33.
    You can download it from http://www.magnaroute.com/deliver/
    This BIOS has been very stable for me, MSI Tech Support gave it to me to attempt to solve memory stability I have had with 4x dual rank memory modules.  It doesn't fix that problem but it does make the system more stable and compatible over the publicly released BIOSes as far as I can tell.
    I would also suggest you put in a fixed voltage value in the BIOS for your memory.  I use 2.3V because I am overclocking.  You can probably use 2.0V or 2.1V.  It is possible that the [Auto] setting may be giving your system too little voltage on the memory and that may be causing your lockup.

Maybe you are looking for

  • Satellite U400-112: can't format local disk (damaged MFT?)

    Hello! I got rather serious problem with my HDD. HDD 250Gb C: 116Gb - NTFS - Windows XP (Vista initially) D: 1,5Gb - NTFS - (Vista Recover?..) E: 117Gb - RAW (was NTFS before crash) MFT of local drive E: was damage because of the virus attack (I hope

  • WebLogic JMS high memory usage and frequent full GCs

    Hi Team,             We have below set up in production (and all the lower environment). 1. WLS: 10.3.6 (64 bit) 2. Java: HP JDK 1.7.0.06 (64 bit) 3. Two Manage server instances in cluster with one Migratable target 4. one JMS server with Persistence

  • Unable to load jar

    We have a strange problem with caching a jar file which contains the applet. It seams that the jar is downloaded, but it isn't cached. The nasty thing about it is that the applet won't start. In the java console we get the following message: Last mod

  • ERROR IN BI TO XI INTEGRATION

    Hi all i am doing BI to XI integration using how to guide of SAP while activating datasource i am getting two errors 1)Error generating Web service /BIC/CQSENDXML00001000 2)Error when activating DataSource SENDXMLDATATOBI can anybody let me know how

  • Joining two tables on two keys of differnt datat types

    Hi, I have two two tables, create table table1( primkey1 double, name varchar(30)) create table table2( primkey2 varchar(40), name varchar(30)) Now I have to join these two table in RPD. I tried to join but i got an error. plz tell me the way to join