GetNext() of Disassemble Stage is executing two time

why GetNext() of Disassemble Stage is executing two times ?I checked it in event log.
Prakash

GetNext method returns all the messages created out of Disassemple method.
Returned message it passed to next pipeline stage or message box as configured. GetNext method is called repeatedly as long as it returns some IBaseMessage type. Repeated calls stop only when
GetNext returns null.
So, the second call is when the
GetNext returns null for you.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Controller method executed two times

    Hi,
    i created one method called :FileLov
    i called this method in PR like:
    am.invokeMethod("FileLov");
    in am i implemet the code :
    public void FileLov() {}
    method is working fine but it is executing two times.
    when each time executes values are inserted into tables , so that table contains duplicate values.
    can any one please help me why this method is invoked two time, how can i resolve this issue.

    once the page is loaded method is executed automatically two times.
    i used if condition but still it is not effected.
    please find the below
    Target URL -- http://xxxxx.corp.xxxxx.com:8988/OA_HTML/runregion.jsp
    13/04/23 14:33:01 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    13/04/23 14:33:03 TIME: runregion: initialization [15 ms]
    13/04/23 14:33:05 TIME: runregion: session and transaction creation [1657 ms]
    Apr 23, 2013 2:33:06 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory Reading META-INF/adf-config.xml
    13/04/23 14:33:06 java.lang.IllegalArgumentException: Unknown signal: ALRM
    13/04/23 14:33:06      at sun.misc.Signal.<init>(Signal.java:126)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.AppsDiagnosticsHandler.install(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.initializeSignalHandler(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.<clinit>(Unknown Source)
    13/04/23 14:33:06      at java.lang.Class.forName0(Native Method)
    13/04/23 14:33:06      at java.lang.Class.forName(Class.java:242)
    13/04/23 14:33:06      at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
    13/04/23 14:33:06      at oracle.jbo.common.JBOClass.forName(JBOClass.java:164)
    13/04/23 14:33:06      at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:177)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:836)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:770)
    13/04/23 14:33:06      at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:534)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:547)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:425)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
    13/04/23 14:33:06      at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.createStaticAKApplicationModule(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModuleSync(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModule(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at OA.jspService(_OA.java:71)
    13/04/23 14:33:06      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    13/04/23 14:33:06      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    13/04/23 14:33:06      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    13/04/23 14:33:06      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    13/04/23 14:33:06      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    13/04/23 14:33:06      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    13/04/23 14:33:06      at java.lang.Thread.run(Thread.java:595)
    13/04/23 14:33:06 **************************************************************************
    13/04/23 14:33:06 *** WARNING: Oracle BC4J debug build executing - do not use for timing ***
    13/04/23 14:33:06 **************************************************************************
    13/04/23 14:33:10 filelength is 11
    13/04/23 14:33:11 filelength is 11
    here i wrote one printout statement in a method
    it displays two times.

  • Can I to execute two times the MAIN window in the same page?

    Hello, friends:
    How I can to execute 2 times the MAIN window in the same page in SAPscript, this without modify the program link a SAPscript?
    I create in the same page two MAIN windows, but I can to print only one MAIN window, the second window is not appears.
    Thanks for advance,
    David

    You can't - only one MAIN window is allowed per page.

  • ListSelection Listener is executing two times

    Hi,
    I am using my own cell renderer for the JList and adding some buttons in the JList.I am adding ListSelectionListener to my JList.When i am selecting a item in the JList, the listselection event is fired two times.How should i rectify this.

    I've had the same problem, and I solved it by by asking my ListSelectionEvent's getValueIsAdjusting() method:
    rowTypeSM.addListSelectionListener(new AbstractListSelectionListener(){
    public void doValueChanged(ListSelectionEvent e){
    if(!e.getValueIsAdjusting()){
    // Stick your code here
    Hope this helps.

  • Oracle native sequencing: nextVal executed two times.

    We are migrating from Weblogic 6.1 sp 5 & TopLink 3.6.3 to Weblogic 8.1 sp 2 & TopLink 9.0.4 and we are having this issue:
    It seems that when assigning the sequence to new objets TopLink execs the nextVal for the sequence twice. In fact we probably wouldn't notticed it if it was just that, the problem is that TopLink seems to register the object into the cache with an oid and assigning the next one to the object stored in the database so we are getting NoSuchObjectException each time we try to access them.
    Here is a dump of TopLink's log showing the problem:
    [TopLink]: ServerSession(22807116)--Connection(0)--client acquired
    [TopLink]: ClientSession(25858791)--Connection(0)--acquire unit of work: 10772417
    [TopLink]: UnitOfWork(10772417)--Connection(0)--JTS register
    [TopLink]: ServerSession(22807116)--Connection(17740413)--SELECT SEQ_BOOK.NEXTVAL FROM DUAL
    [TopLink]: ServerSession(22807116)--Connection(17558511)--SELECT SEQ_PAGE.NEXTVAL FROM DUAL
    [TopLink]: UnitOfWork(10772417)--Connection(0)--Before JTS Completion
    [TopLink]: UnitOfWork(10772417)--Connection(25919386)--Begin batch statements
    [TopLink]: UnitOfWork(10772417)--Connection(25919386)--INSERT INTO AUTHOR (NAME, OCA, OID) VALUES (?, ?, ?)
    [TopLink]: UnitOfWork(10772417)--Connection(0)-- bind => [Roger Penrose, 2004-05-11 18:54:01.917, 442803]
    [TopLink]: UnitOfWork(10772417)--Connection(25919386)--End Batch Statements
    [TopLink]: ClientSession(25858791)--Connection(25919386)--Begin batch statements
    [TopLink]: ClientSession(25858791)--Connection(25919386)--INSERT INTO BOOK (NAME, OCA, OID, OID_AUTHOR) VALUES (?, ?, ?, ?)
    [TopLink]: ClientSession(25858791)--Connection(0)-- bind => [The Emperor's New Mind, 2004-05-11 18:54:01.92, 347404, 442803]
    [TopLink]: ClientSession(25858791)--Connection(0)-- bind => [Shadows of the Mind, 2004-05-11 18:54:01.943, 347405, 442803]
    [TopLink]: ClientSession(25858791)--Connection(25919386)--End Batch Statements
    [TopLink]: UnitOfWork(10772417)--Connection(0)--After JTS Completion
    [TopLink]: UnitOfWork(10772417)--Connection(0)--release unit of work
    [TopLink]: ClientSession(25858791)--Connection(0)--client released
    [TopLink]: ServerSession(22807116)--Connection(0)--client acquired
    [TopLink]: ClientSession(116689)--Connection(0)--acquire unit of work: 32580168
    [TopLink]: UnitOfWork(32580168)--Connection(0)--JTS register
    [TopLink]: UnitOfWork(32580168)--Connection(0)--Before JTS Completion
    [TopLink]: UnitOfWork(32580168)--Connection(17129104)--Begin batch statements
    [TopLink]: UnitOfWork(32580168)--Connection(17129104)--INSERT INTO AUTHOR (NAME, OCA, OID) VALUES (?, ?, ?)
    [TopLink]: UnitOfWork(32580168)--Connection(0)-- bind => [Benoit Mandelbrot, 2004-05-11 18:54:49.264, 442805]
    [TopLink]: UnitOfWork(32580168)--Connection(17129104)--End Batch Statements
    [TopLink]: ClientSession(116689)--Connection(17129104)--Begin batch statements
    [TopLink]: ClientSession(116689)--Connection(17129104)--INSERT INTO BOOK (NAME, OCA, OID, OID_AUTHOR) VALUES (?, ?, ?, ?)
    [TopLink]: ClientSession(116689)--Connection(0)-- bind => [Les objets fractals, forme, hasard et dimension, 2004-05-11 18:54:49.266, 347409, 442805]
    [TopLink]: ClientSession(116689)--Connection(0)-- bind => [The Fractal Geometry of Nature, 2004-05-11 18:54:49.282, 347408, 442805]
    [TopLink]: ClientSession(116689)--Connection(17129104)--End Batch Statements
    [TopLink]: UnitOfWork(32580168)--Connection(0)--After JTS Completion
    [TopLink]: UnitOfWork(32580168)--Connection(0)--release unit of work
    [TopLink]: ClientSession(116689)--Connection(0)--client released
    the test is about creating two objects (well, we are actually creating 6 objects in this sample as we are creating two "master" objects and adding two related (in a one to many relationship) objects to each one.)
    The thing I would like you to notice is this:
    The first AUTHOR object gets assigned the OID 442803 wether the next AUTHOR object gets the OID 442805 although we expected it to be 442804.
    The same occurs with the objects in the "many" side of the relation. They get sibiling OIDs but with a gap of two OIDs when creating the last two.
    I have been searching for simmilar problems in this forums and I found two posts:
    Both where related to a bug of an older version of TopLink (9.0.3 I think) when using something different than a number for the sequence field of an object. I expect it to be fixed in 9.0.4 version as it seemed to be fixed even for the 9.0.3 version. May it be a regression bug?
    Anyway, we are using BigDecimal on entity bean's sequence number and IIRC NUMBER(18) in Oracle tables.
    Currently our TopLink version is: 9.0.4 (031126)
    Our native sequence has an allocation size of 200 and it matches with SEQUENCEs defined in Oracle.
    As we are migratting from TopLink 3.6.3 and we have not changed the sequence prealocation size (we have not touched the database at all) we don't expect the problem to be on sequence prealocation.
    I must say we have changed the "default" JDBC driver that TopLink uses when doing the issuing the loging phase (which I think is a SUN driver) to an oracle.jdbc.driver.OracleDriver as we were having problems with timestamp locking.
    Any idea?
    Thanks in advance.
    Ignacio.

    Solved!
    It was my fault. I was doing a really nasty thing to the entity beans.
    I must publicly thank my work mate (which is a pretty smart girl, I must say) in tracking down this issue.
    Here is what (we think) was happening:
    As I told in previous post in this post we are in the process of moving from TopLink 3.6.3 (EJB 1.1) to TopLink 9.0.4 (EJB 2.0). We do have a "super class" in our application where we had some common things of our entity beans, i.e. entityContext, oid and oca attributes. We have also some methods that retrieve and set values from and to the entity beans via value objects (in order to avoid the heavy RMI operations when doing it through "standard" getters and setters) well, it happened that the current implementation of the "batch setting" method used the getDeclaringMethods to update in both UPDATE and INSERT opperations entity attributes with the data of the value object.
    When switching to EJB 2.0 we had to push down both the oid and oca attributes (in order of being able do deploy them) to each final entity bean and now they where being included in the setting process!
    You can imagine an scenario like this:
    1. ejbCreate() // TopLink issues the SELECT SEQ_XXX NEXT VAL FROM DUAL and sets the oid of the EJB
    2. setAttributes() // transfer info from the value object to the newly created EJB: including a setOid(null)!
    3. commit() (Before Completion)
    4. TopLink detects that the damm object surprisingly DOES NOT have the oid attribute setted so it performs another SELECT SEQ_XXX NEXT VAL FROM DUAL in order to "fix" this big problem.
    5. commit() (After Completion) // the object is written to the database with the second value from the sequence whereas the first value is used to identify the entity bean into the identity cache.
    Well it may not be "exactly" what is happening but I'm sure we are not so far from reality with our assumptions.
    Andrei Ilitchev, thanks for your interest, sorry I could not post this sooner.

  • Et_ITEM_PRESSED event  firing two times

    Hi ,
    I have a added a button to one of the windows and use the
    et_ITEM_PRESSED in the ItemEvent to do something. My problem is whenever I click the button the event fires two times. I thought it was my code but the sample code in the CatchingEvents project does the same.
    Does anyone know any wayaround it?
    appologise if this question has been asked before (I assumed so but could not find any matches for my search)
    Regards,
    Indika

    Almost all the item event in SBO executes two times before and after SBO events handler works. If you dont catch one of the events SBO will execute two events in one time. To avoide that you should cacth the events before "OR" after the SBO Events Handler Works.
    For Example:
    <i><b>Before Action:</b></i>
    If pVal.ItemUID = "1" And pVal.EventType = et_ITEM_PRESSED Then
    If Len(oEditText.String) <> 0 Then
    If IsNumeric(oEditText.String) Then
    If Len(oEditText.String) <> 15 Then
    If pVal.Before_Action = True Then
    BubbleEvent = False
    SBOApplication.SetStatusBarMessage "Federal ID Must be 15 Character", bmt_Short
    oTmpForm.Items("41").Click  ....
    <i><b>Action Success:</b></i>If pVal.Action_Success = True Then
    Set oItem = oTmpForm.Items("8")
    Set oEditText = oItem.Specific
    sDocNum = CLng(oEditText.String)
    Set oItem = oTmpForm.Items("29")
    Set oEditText = oItem.Specific
    sJumlah = oEditText.String
    If sJumlah = "" Then
    BubbleEvent = False
    That's all. Hopefully helps.
    Cheers,
    Hamdi

  • Apply the same LCR two times on different tables

    Hi all
    Just one question:
    Can I apply the same LCR two times on different tables using only one apply queue?
    For example executing two times LCR.EXECUTE(TRUE) in a procedure handler:
    LCR.EXECUTE(TRUE);
    LCR.EXECUTE(TRUE);
    ....

    Topas,
    You need to create new LCR and execute both LCRs.
    Regards,
    Serge

  • Why has the sql statement been extucted two times in shell script?

    I tried to test rac load balance using the following shell script on suse 10 + oracle 10g rac.
    oracle@SZDB:~> more load_balance.sh
    #!/bin/bash
    for i in {1..20}
    do
    echo $i
    sqlplus -S system/oracle@ORA10G <<EOF
    select instance_name from v\$instance;
    EOF
    sleep 1
    done
    exit 0After execute shell script, I got the follow result.
    oracle@SZDB:~> ./load_balance.sh
    1
    INSTANCE_NAME
    ora10g2
    INSTANCE_NAME
    ora10g2
    2
    INSTANCE_NAME
    ora10g1
    INSTANCE_NAME
    ora10g1
    3
    INSTANCE_NAME
    ora10g1
    INSTANCE_NAME
    ora10g1Seem the sql statement has been executed two times in each loop. If you feel free please help to have a look. Thanks in advance.
    Robinson

    You can end a SQL command in one of three ways:
    * with a semicolon (;)
    * with a slash (/) on a line by itself
    * with a blank line
    A semicolon (;) tells SQL*Plus that you want to run the current command that was entered. SQL*Plus processes the command and also stores the command in the SQL buffer.
    A blank line in a SQL statement or script tells SQL*Plus that you have finished entering the command, but do not want to run it yet, but it's stored the command on SQL Buffer.
    A slash (/) on a line by itself tells SQL*Plus that you wish to run the command stored on SQL buffer.

  • Only firefox executing mysql query two times. but other browser works perfect why?

    i am a web developer. and i am facing a problem only with firefox. every time i use MySQL query in my php code fire fox execute it two times. but same query is working fine on other browsers.

    Yes, the problem is seen without extensions and also in safe mode.
    But, I am starting to think that firefox is running low on memeory or CPU.
    Without extensions the possibility of failing is 1 in 3.
    I am still unable to explain why closing the browser or aborting the request can cause the stuck request to immediately reach the server.
    Is there a way to collect Firefox logs and post it here ?

  • DISASSEMBLE is being executed for long time in SPAM

    Hi ,
    I am trying to applying SAP_BASIS patch in new XI 3.0 server .But it got hanged in <b>DISASSEMBLE is being executed</b> for long time in SPAM.
    Can any one will me to solve in this issue.
    Thank You !
    Gopnath.G

    Hi
    The following Patch manager may be useful
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCUPGOCSSPAM/BCUPGOCSSPAM.pdf
    Regards,
    Sai

  • Why JRC executes query two times? (reports.queryengine(?:?) - Executing query: ...)

    Hello! Using JRC. While creating the report for viewing, I noticed one interesting thing. Why JRC executes query two times AND first time is executed with default parameters AND if default parameters are NULL the query can be invalid (even if it is marked to convert all database NULLs to defaults in Report Options).
    <!break>
    1. Why do you need to execute query the first time with these default parameters, which are later set to the others? We need to make some valid default parameters to make everything work. Also it is not efficient to execute unnecessary query.
    2. If I'm wrong could you explain please? If I'm right, is it a bug and when do you fix it?
    Waiting for answer,
    Anton Stalnuhhin
    Java-developer, Webmedia AS

    .

  • ExitFrame is executing 3 times, not once

    I have an exitFrame function in a Behavior script placed on
    frame 10 of my score. Inside of it, there are a pair of trace
    statements, and a function is called. The two trace statements and
    the function execute three times, where I expect that they would
    only fire once. What is causing this? Does the play head exit the
    frame three times? Do I need to delete the whole thing after it
    executes once?
    There is a 3D sprite on the stage that is introduced at frame
    10. Does this create some sort of stutter in the playback?

    Do you have any other scripts on the same screen that use an
    updateStage() command? That will cause everything on the
    stage to
    re-run their prepareFrame, enterFrame, and exitFrame scripts

  • Stock blocking two times

    Dears
    Pls see my scenario and advice me how to procees
    While RR i found that my material was rejected, so during UD i put the material in block stock and same time i create a automatic notification via defect recording and save the notification and finally UD was given rejected
    No i want to send back this material to vendor
    SO in QM02 t code i call the notification created before and i want to create a return delivery from notification so i need to put again this material in block stock via action box to make enabled return delviery
    Why system make us to block two time for the same matrial
    pls give your valuable idia on this...or wether i am following any wrong methde
    Faisal

    Hello Faisal,
    It may not be referred as wrong practice. At the same time itu2019s really difficult to predict the exact logical reasoning behind this.
    I think, if you notice rejection at incoming stage u201CReturn Deliveryu201D is the field that SAP suggest to utilize and if you notice the same after UD it should be through quality notification. But there is no sound base for this statement. Letu2019s wait for the opinions of experts.
    1.     While carrying out incoming inspection when I notice any non conformity and want to send back the material to vendor, I would  utilize the field u201CReturn Deliveryu201D in QA11 which in turn executes 122 movement in background.
    2.     But when I am not sure that immediately it should be sent back or not, I would follow the path you mentioned. Posting to block stock through QA11. Later through MIGO return delivery can be carried out  with 122 movement by opting stock type as block stock.
    3.     Generally later case is more popular may be because of 2 reasons.
    a.     No direct involvement of QA dept for stock reducing movement.
    b.     Reduces the chances for physical and system stock mismatch. (When you carry out 122 through QA11, system stock reduces immediately; but physically it gets moved out may be after a week or two depending upon logistic arrangement for multiple material codes)
    Regards,
    Anand Rao

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

Maybe you are looking for

  • Generation of Invoice based on a Business Condition

    Hi Folks I am facing a scenario where a F2 invoice is generated however when there is a specific " Ship to Party " used in the Sales Order , system should also generate a Pro Forma Invoice Automatically along with a F2 invoice. How can we generate tw

  • How to replace MobileMe with ICloud on my Imac?

    how to replace MobileMe with ICloud on my Imac? pleae help.  Other devices (Ipad and Iphone) are Iclouded but I can't change MobileMe in my system preferences on IMac (10.6.8) Sylwia

  • Question on CCloud Flash Builder 4.6 install

    Hello, I curretly have Flash Builder 4.6 installed on my computer - it was originally installed as FB4.5 when I installed MC CS 5.5  -- but the 4.6 version was made available as a separate installation from MC.5 when it became available last November

  • Standard text and Adobe forms

    How do you get a standard text created w/ SO10 displayed on the PDF? Can it also have the same formatting... bold, underline, etc.? Currently on ecc 7.0.

  • Trouble with Outlook 2013 sync w/ Windows Live Mail calendar

    I am facing some problem with OL2013 and Live Calender. 1. I have live and one other email (other mail) account configured in OL13 2. In other mail account I right click on email, select move ==> copy to other folder and select live calender to assig