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

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>

  • Action Listener Method called multiple times

    I have a page (fragment .jsff), containing a simple input text and a button called "search". When I click on "Search" the action listener is triggered multiple times. (The results are displayed in a table inside a panel collection).
    The results are actually coming back ok.
    When I debug the code, I can see the action listener method called twice.
    Do you know why is that?
    What should I be taking care of?
    This is my code :
    *** Fragment ****
    <af:commandButton text="#{identityBundle.search_label}" id="cb1"
    actionListener="#{UserDetailsBean.searchUsersListener}"
    disabled="#{!bindings.searchUsers.enabled}"/>
    *** Managed bean ***
    public void searchUsersListener(ActionEvent actionEvent) {
    // Add event code here...
    DCBindingContainer bindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iter = bindings.findIteratorBinding("userIterator");
    DCDataRow row = (DCDataRow)iter.getCurrentRow();
    User user = (User)row.getDataProvider();
    boolean isSearchCriteriaPresent = false;
    if(user != null){
    String fn = user.getFirstname();
    if(fn != null && !fn.trim().equals("")){
    isSearchCriteriaPresent = true;
    user.setLastname(fn);
    user.setNonMTUserLogin(fn);
    try {
    Map <Object, Object> userMap = PropertyUtils.describe(user);
    for(Map.Entry<Object, Object> entry: userMap.entrySet()){
    if(entry.getKey() != null && entry.getValue() != null && !entry.getKey().toString().equalsIgnoreCase("class")){
    isSearchCriteriaPresent = true;
    break;
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    } catch (InvocationTargetException e) {
    e.printStackTrace();
    } catch (NoSuchMethodException e) {
    e.printStackTrace();
    if(!isSearchCriteriaPresent){
    user.setFirstname("*");
    OperationBinding opBinding = (OperationBinding)bindings.getOperationBinding("searchUsers");
    opBinding.getParamsMap().put("user", user);
    opBinding.execute();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    Map<String, Object> scopePageFlowScopeVar= adfFacesCtx.getPageFlowScope();
    scopePageFlowScopeVar.put("userSearchCriteria", user);
    ADFContext adfCtx = ADFContext.getCurrent();
    Map sessionScope = adfCtx.getSessionScope();
    sessionScope.put("userSearchCriteria", user);
    setUserSearchCriteria(user);
    if(selectedUserID != null){
    selectedUserID.setValue(null);
    RichTable table = getUserResultsTable();
    DCIteratorBinding searchUsersIterator = (DCIteratorBinding)bindings.get("searchUsersIterator");
    Row[] rows = searchUsersIterator.getAllRowsInRange();
    if(rows.length > 0){
    RowKeySetImpl rks = new RowKeySetImpl();
    ArrayList keyList = new ArrayList();
    keyList.add(rows[0].getKey());
    rks.add(keyList);
    table.setSelectedRowKeys(rks);
    table.setDisplayRowKey(keyList);
    refreshState(table);
    if(!isSearchCriteriaPresent){
    user.setFirstname(null);
    else{
    deleteUserButton.setDisabled(true);
    resetPasswordButton.setDisabled(true);
    enableUserButton.setDisabled(true);
    disableUserButton.setDisabled(true);
    Thanks in advance for your help

    Hi,
    Can you try this?
    1. set partialSubmit=true for the "search" button
    2. set "search" button id as partialTrigger in your result table
    -Prasad

  • 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

  • Servlet init() method called multiple times

    We have a Servlet-based application which does lengthy initialization.
    We've noticed that when multiple requests arrive,
    but the Servlet's init() method has not returned yet
    for the first request, the application server calls init() multiple times.
    You can even see this with the Fortune sample
    Servlet. Starting the app server and sending 20 or 30
    simultaneous requests causes multiple Fortune Servlet init messages to appear in the kjs log.
    Why is this? We do not implement SingleThreadModel.
    Doesn't the J2EE 1.2 spec say init will be called
    only once?
    How do we prevent it?
    A Startup class which inits our
    Servlet?
    Or a synchronized block within our init method, with some checks of static member variables
    so that the initialization work only happens once?
    Or is there some kregedit magic or deployment descriptor change I could make?
    Again, it's not a SingleThreadModel issue, so don't
    point me there.
    This is iAS 6.0 SP4, on Solaris, by the way.

    Hi
    Yes,you are right. In iAS6.0 SP4 When multiple requests arrive,and the Servlet's init() method has not returned yet for the first request, the application server calls init()multiple times. This problem is resolved in iAS 6.5.
    There is no kregedit magic that will solve this problem.
    Right now the workaround is any of the solution you proposed. Or use iAS6.5. I have tested it with fortune.
    Please download it and check with your application.
    you can find free download at http://developer.iplanet.com/appserver/testdrive/testdrive_65.html
    Thanks

  • Process request method executing multiple times issue

    Hi ALL,
    In my controller code , process request method is executing multiple times and inserting multiple data into the table, can any body help me how to resolve this issue.
    I have the below code in my process request:
    OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
         am.invokeMethod("InsertRecord",null);
         OAMessageLovInputBean oalovinputbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("ccustatus") ;
         oalovinputbean.setValue(pageContext,"INPROGRESS");
         String userName = pageContext.getUserName();
          System.out.println("User NAme is :" + userName);
          OAMessageTextInputBean pUserId = (OAMessageTextInputBean)webBean.findChildRecursive("item32");
          pUserId.setValue(pageContext,userName);
          OAMessageTextInputBean pchangedby =  (OAMessageTextInputBean)webBean.findChildRecursive("item34");
          pchangedby.setValue(pageContext,userName);
          if((("on").equals(pageContext.getParameter("rrchkbox"))))
                  String whereclause1=(String)pageContext.getTransactionValue("whereclause");
                  String workordnum=(String)pageContext.getTransactionValue("workordnum");
                  String rrnum =(String)pageContext.getTransactionValue("rrnum");
                  String ponum =(String)pageContext.getTransactionValue("ponum");
                  System.out.println("whereclause test1"+whereclause1);
                  String status=pageContext.getParameter("ccustatus");
                  System.out.println("DEBENDRA LINE STATUS:" + status);
                  Serializable param[] = {whereclause1,workordnum,rrnum,ponum};        
                           // am.invokeMethod("getSearchData1",param);
                           // am.invokeMethod("checkSelectedrow",param);       
                 Serializable vcnt =  am.invokeMethod("processPOData",param);  
    Below code written in AM:
    public void InsertRecord()
            XXDPECONTAINERVOImpl vo = getXXDPECONTAINERVO1();
            vo.setMaxFetchSize(0);
            XXDPECONTAINERVORowImpl row = (XXDPECONTAINERVORowImpl)vo.createRow();
            oracle.jbo.domain.Number empNum = (oracle.jbo.domain.Number)getOADBTransaction().getSequenceValue("XXDPE_CONTAIN_SEQ");
            row.setContainerizationId(empNum);
            vo.insertRow(row);
            row.setNewRowState(row.STATUS_INITIALIZED);
    Please help me out.

    hi,
    PR() will be called whenever your page will load, so the number of times you will load your page all the time your PR will be called and it will call the AM method.
    otherwise put some condition and call the insert method from your PR.
    Regards
    Mahesh

  • H:commandLink and an Action being called multiple times.

    Hi everyone. I'm more or less relatively new in terms of JSF, though I've had to do a lot of "catching up" recently.
    I've been reading that with managed-beans, the getters/setters are not gaurenteed to be called once. http://www.jsf-faq.com/faqs/faces-misc.html#106
    My question is, are there any reasons why an action method would get called twice? An example of my jsp page.
    <h:commandLink action="#{exploreCaseAction.exploreCase}" >                    
         <h:outputText value="#{case.caseNumber}"/>
         <f:param name="caseId" value="#{case.caseId}"/>
    </h:commandLink>My faces-config
    <managed-bean>
       <managed-bean-name>exploreCaseAction</managed-bean-name>
       <managed-bean-class>com.unyric.cias.cm.web.action.ExploreCaseAction</managed-bean-class>
       managed-bean-scope>request</managed-bean-scope>
       <managed-property>
          <property-name>caseTreeHelper</property-name>
             <value>#{caseTreeHelper}</value>
       </managed-property>
       <managed-property>
          <property-name>caseId</property-name>
             <value>#{param.caseId}</value>
       </managed-property>     
       <managed-property>
          <property-name>sessionManager</property-name>
             <value>#{sessionManager}</value>
       </managed-property>               
    </managed-bean>When I click on one of the links and set a breakpoint, it comes up twice. Here's the crazy part. if I use <af:commandLink> then it only runs once.
    Personally I'd rather not use oracles components (I know it got donated and is/will be Trinidad).
    Anyone with any ideas?

    Would you be willing to try the RI (1.1_02) [1] to see if you have the same problem?
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=0

  • Multiple applications in standalone OC4J

    I’m using Eclipse in XP to deploy applications to the standalone OC4J server. Certain applications use different .jar files from the others. I understand that all jars in the c:\oracle\oc4j10.1.3\j2ee\home\applib are used by all applications. When using a certain application I have to manually move the correct jars into this folder.
    Previously I have deployed applications to an OC4J container in Oracle 10g application server running in Unix. Each container has it’s own folder and config files. application.xml is used to list which jar files are to be used with the application.
    Is there a way to have an application specify which .jar files it uses in the standalone OC4J during runtime?
    Thanks,
    Dan

    Hello,
    You have a correct understanding of the applib folder, but in 10.1.3.x OC4J provides a better and newer way to manage libraries that you want to share between application: they are "OracleAS Shared Libraries"
    You can find more about that there:
    - Creating and Managing Shared Libraries
    - See infrastructure how tos that explains for example how to create an XML or JDBC share lib.
    You can deploy your libraries using admin_client.jar and do that in a group, so all the instances will have the same libraries; or simply script the deployment of the library when not part of the same group.
    Regards
    Tugdual Grall

  • Action is executing multiple times

    Hi Experts,
    I am using an action for a service transaction in which a method is called APPROVE_RFC_VIA_WF - the method triggers a workflow, but the action runs multiple (6) times, 6 workflow items are created and 6 emails are triggered likewise.
    I restricted the action to only one executable/successful action and it works ! Only 1 email and 1 workflow item is created, but then the workflow item is not executed !
    Please I need help on this, thnx.
    Regards.

    Another action definition was restricted to execute 5 times which was somehow effecting the workflow action definition
    Adjustments were made to both definitions so that both would give correct results.
    Regards.

  • Action gets executed multiple times

    Hi,
    i have a strange problem in my jsf application.
    I have an action in my bean, let's say
    public String testThis(){
    //my business is logic here
    if(blahblah){
    return null;
    }else
    return "oke";
    Now, the problem is, when the action is fired, and it returns null, the next time the action get's fired, it gets executed 2 tot 4 times.
    Somebody got an explenation or somewhat the same behaviour?
    regards,
    J.

    hi,
    i am a newbie in JSF, but i had faced a similar problem. posting this reply as it might help u.
    if u r referencing properties of some other page also then it might happen.
    what happened with me was -
    let my application has 2 files A.jsp and B.jsp.
    In my A.jsp file i was accessing "B.property"
    this happened by mistake. when i corrected it to A.property (i had property with same name in both files) it worked perfectly.
    so u can checkout this thing with ur application.
    thanks,
    amol chaudhari.

  • ManagedBean getter Method called multiple times

    Hi,
    i have notice that the get method is called so often if i initialize a List.
    Maybe you see a solution?
    ManagedBean
    @ManagedBean(name = "videoBean")
    @SessionScoped
    public class VideoManagedBean extends GeneralManagedBean {
            @PostConstruct
            private void init() {
                this.newVideos = videoSessionBean.getNewVideos();
            public List<VideoEntity> getNewVideos() {
                System.out.println("---------getNewVideos--------------");
                return newVideos;
    }Xhtml
        <html xmlns="http://www.w3.org/1999/xhtml"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:p="http://primefaces.prime.com.tr/ui">
            <h:head>
                <meta http-equiv="content-type"
                      content="application/xhtml+xml;charset=utf-8" />
            </h:head>
            <h:body>
                <ui:composition template="/WEB-INF/template/mainTemplate.xhtml">
                    <ui:define name="content">
                        <h:form>
                            <p:dataTable var="vid" dynamic="true" value="#{videoBean.newVideos}">
                            </p:dataTable>
                        </h:form>
                    </ui:define>
                </ui:composition>
            </h:body>
        </html>The logfile shows:
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------Is that normal? I never read about this problem

    Whoa there, jumping to conclusions calling this a problem right from the start.
    Yes its expected behavior. The getter can get called from several JSF lifecycle phases. I suggest you study what they are, otherwise you'll run into plenty more of these head scratching moments.

  • ActionListener invoked multiple times Issue

    Hi,
    I have defined a CommandLink with ActionListener and ShowPopupBehaviour (onclick)
    Inline Popup box has a Editable Table.
    I would like to perform the ExecuteQuery() on the VO with ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES when CommandLink is pressed to refresh the data in the table that is shown in popup.
    When I click on the CommandLink VO query is executed as expected.
    I can see the results on the Popup refreshed from the database tables.
    When I try to change the value in the popup table the ActionListener of CommandLink is executed again. (I have ran this project in Debug Mode. I have set a breakpoint in ActionListener method).
    What could be the Reason. Any ideas how to go over this.
    Thanks,
    Satya
    code snippet:
    <af:commandLink id="UpdateWIPCL"
    partialSubmit="true"
    text="Edit WIP"
    rendered="#{pageFlowScope.pRevenueProjectId !=null }"
    actionListener="#{ProjectSelection.EditWIPLink}">
    <af:image source="/adf/images/update_ena.png"
    shortDesc="Edit Work In Progress for all Sellers"
    id="UpdateWIPImg"/>
    <af:showPopupBehavior popupId="WIPUpdatePopup"
    triggerType="click"/>
    <af:popup id="WIPUpdatePopup"
    contentDelivery="lazyUncached"
    binding="#{ProjectSelection.wiPUpdatePopup}">

    I have pasted part of it.
    Now pasted complete commandLink
    <af:commandLink id="UpdateWIPCL"
    partialSubmit="true"
    text="Edit WIP"
    rendered="#{pageFlowScope.pRevenueProjectId !=null }">
    <af:image source="/adf/images/update_ena.png"
    shortDesc="Edit Work In Progress for all Sellers"
    id="UpdateWIPImg"/>
    <af:showPopupBehavior popupId="WIPUpdatePopup"
    triggerType="click"/>
    <af:popup id="WIPUpdatePopup"
    contentDelivery="lazyUncached"
    binding="#{ProjectSelection.wiPUpdatePopup}">
    <af:dialog id="dialog2"
    closeIconVisible="false"
    title="Edit Work In Progress"
    dialogListener="#{ProjectSelection.EditWIPDialogListener}"
    clientComponent="true"
    resize="on"
    stretchChildren="first"
    contentWidth="650"
    contentHeight="250">
    <af:table value="#{bindings.SellersWIPVO1.collectionModel}"
    var="row"
    rows="#{bindings.SellersWIPVO1.rangeSize}"
    emptyText="#{bindings.SellersWIPVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SellersWIPVO1.rangeSize}"
    rowBandingInterval="0"
    id="t7"
    columnStretching="column:c35">
    <af:column sortProperty="SellingRegionName"
    sortable="false"
    headerText="Seller"
    id="c36"
    rowHeader="true"
    align="center">
    <af:outputFormatted value="#{row.bindings.SellingRegionName.inputValue}"
    id="of6"
    inlineStyle="text-align:right;"/>
    </af:column>
    <af:column sortProperty="Elm"
    sortable="false"
    headerText="ELM"
    id="c35"
    align="right">
    <af:outputFormatted value="#{row.bindings.Elm.inputValue}"
    id="of5"
    inlineStyle="text-align:right;">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.SellersWIPVO1.hints.Elm.format}"
    minFractionDigits="4"
    maxFractionDigits="4"/>
    </af:outputFormatted>
    </af:column>
    <af:column sortProperty="Revenue"
    sortable="false"
    headerText="#{bindings.SellersWIPVO1.hints.Revenue.label}"
    id="c39"
    align="right">
    <af:outputFormatted value="#{row.bindings.Revenue.inputValue}"
    id="of7"
    inlineStyle="text-align:right;">
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.SellersWIPVO1.hints.Revenue.format}"
    minFractionDigits="0"
    maxFractionDigits="0"
    integerOnly="true"/>
    </af:outputFormatted>
    </af:column>
    <af:column sortProperty="Labor"
    sortable="false"
    headerText="#{bindings.SellersWIPVO1.hints.Labor.label}"
    id="c38"
    align="right">
    <af:inputText value="#{row.bindings.Labor.inputValue}"
    label="#{bindings.SellersWIPVO1.hints.Labor.label}"
    required="#{bindings.SellersWIPVO1.hints.Labor.mandatory}"
    columns="#{bindings.SellersWIPVO1.hints.Labor.displayWidth}"
    maximumLength="#{bindings.SellersWIPVO1.hints.Labor.precision}"
    shortDesc="#{bindings.SellersWIPVO1.hints.Labor.tooltip}"
    id="it28"
    contentStyle="text-align:right;">
    <f:validator binding="#{row.bindings.Labor.validator}"/>
    <af:convertNumber
    pattern="#{bindings.SellersWIPVO1.hints.Labor.format}"
    integerOnly="true"
    minFractionDigits="0"
    maxFractionDigits="0"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="Odc"
    sortable="false"
    headerText="Other Direct Costs"
    id="c37"
    align="right">
    <af:inputText value="#{row.bindings.Odc.inputValue}"
    label="#{bindings.SellersWIPVO1.hints.Odc.label}"
    required="#{bindings.SellersWIPVO1.hints.Odc.mandatory}"
    columns="#{bindings.SellersWIPVO1.hints.Odc.displayWidth}"
    maximumLength="#{bindings.SellersWIPVO1.hints.Odc.precision}"
    shortDesc="#{bindings.SellersWIPVO1.hints.Odc.tooltip}"
    id="it30"
    contentStyle="text-align:right;">
    <f:validator binding="#{row.bindings.Odc.validator}"/>
    <af:convertNumber
    pattern="#{bindings.SellersWIPVO1.hints.Odc.format}"
    integerOnly="true"
    minFractionDigits="0"
    maxFractionDigits="0"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="Ops"
    sortable="false"
    headerText="Outside Professionals"
    id="c40"
    align="right">
    <af:inputText value="#{row.bindings.Ops.inputValue}"
    label="#{bindings.SellersWIPVO1.hints.Ops.label}"
    required="#{bindings.SellersWIPVO1.hints.Ops.mandatory}"
    columns="#{bindings.SellersWIPVO1.hints.Ops.displayWidth}"
    maximumLength="#{bindings.SellersWIPVO1.hints.Ops.precision}"
    shortDesc="#{bindings.SellersWIPVO1.hints.Ops.tooltip}"
    id="it18"
    contentStyle="text-align:right;">
    <f:validator binding="#{row.bindings.Ops.validator}"/>
    <af:convertNumber
    pattern="#{bindings.SellersWIPVO1.hints.Ops.format}"
    integerOnly="true"
    minFractionDigits="0"
    maxFractionDigits="0"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:dialog>
    </af:popup>
    </af:commandLink>

  • Listener method is called multiple times

    why is a listener method called multiple times when the user interacted
    with the component just once?

    Because you have a bug in your code.
    If you want further help post a Short, Self Contained, Compilable and Executable, Example Program ([url http://homepage1.nifty.com/algafield/sscce.html]SSCCE) that demonstrates the problem.
    And don't forget to use [url http://forum.java.sun.com/help.jspa?sec=formatting]code formatting when posting code.

  • ESB invokes BPEL multiple times

    Hi All,
    I am facing an issue with ESB.
    I have registered an ESB which is calling a synchronous process.
    When I am initiating this ESB the same BPEL process is invoked multiple time and none of the BPEL instance has faulted.
    Like:
    Initiate ESB -&gt; invokes BPEL_Process Instance1
    invokes BPEL_Process Instance2 and so on. Please notice that Instance1 has not faulted.
    I want my ESB to call BPEL_Process only once if its not faulting.
    Any pointer to this will be of great help.
    Thanks & Regards,
    Shanty

    Hi,
    I have not used any adapter in any of my BPEL or ESB process.
    I am calling the ESB from a BPEL Process which in turn call another BPEL Process.
    i.e. BPEL_Process1-->ESB-->BPEL_Process2
    There is no fault thrown by any of the process but still BPEL_Process2 is invoked multiple times by ESB.
    Thanks & Regards,
    Shanty

Maybe you are looking for

  • How do I get to download music with a different id when it comes up with the message cannot download for 90 days

    I need to know how to do this as well because before I got an iPad I hot an iPod nano and an iPod touch but because I was too young I wasn't aloud my own Apple ID and I used my mums. Through those years I got a lot of iTunes vouchers and I spent them

  • Open a Text File in a JTextPane

    Hi, Can anyone please help me with this stupid problem. I want a specific .txt file to be opened in a JTextPane when the application is started. If anyone has any suggestions it would be really appreciated. Thanks. Martin

  • Can't change the font on titles?

    I know the usual way to change the fonts on movie titles is to click the title in the Project window, and then a "Show Fonts" button appears in the upper left of the viewer. I have actually done this before, but now when I click a title, that button

  • Mic problem with skype

    Not sure what the problem is. My mic seems to be working but skype does not recongnize. it used to work but now it does not.  Only change that i can see in upgrading to mountain lion.

  • Using structure tag in a catalog search

    Hi there, I would like to select numbers on docs that have been scanned and OCR, and search for these numbers via a catalog. I tried to use the tag panel in the reading order panel, to create 1) a root tag, 2) then having selected the number, I try "