ADF Ajax ,How to show loading/busy status, Here is my solution.

1- Set an "id" for property of form.
2- Set Partial Triggers to "your form id" for property of command button.
3- Set Partial Submit to "True" for property of command button.
4- Add client listener to your command button.
5- Add your javascript to your page.
<div id="loader"></div>
<af:commandButton actionListener="#bindings.collectDataUsingStoredProcedure.execute}"
text="Kaydet"
disabled="#{!bindings.collectDataUsingStoredProcedure.enabled}"
id="cmdkaydet" partialTriggers="myform"
partialSubmit="true">
<af:clientListener method="Ajax" type="action"/>
</af:commandButton>
and my javascript here;
function Ajax(action){
document.getElementById("loader").innerHTML = "<img src='./busy.gif'></img>";
req = new XMLHttpRequest();
retrieveURL("#");
function retrieveURL(url) {
if (window.XMLHttpRequest) { // Non-IE browsers
req = new XMLHttpRequest();
req.onreadystatechange = processStateChange;
try {
req.open("GET", url, true);
} catch (e) {
alert(e);
req.send(null);
} else if (window.ActiveXObject) { // IE
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = processStateChange;
req.open("GET", url, true);
req.send();
function unloadimg(){
document.getElementById("loader").innerHTML = "";
function processStateChange() {
if (req.readyState == 4) { // Complete
if (req.status == 200) { // OK response
//document.getElementById("loader").innerHTML = req.responseText;
setTimeout ("unloadimg();",500);
return;
} else {
alert("Problem: " + req.statusText);
Mucahid Uslu
Message was edited by:
Mücahid Uslu
null

Hi,
couples of issues here
1. You should mention that this solution works with JDveloper 11, not 10.1.3 as people would suspect on this forum
2. ADF Faces RC is only supported for IE7 and FF 2.0 (and upwards later on). This means that there no longer is a need to differentiate between the browers to issue a XmHttprequest
A more straight forward solution would be
- Execute the ADF binding from a method action and set the command button to blocking
- From your JavaScript, display a image that shows an animated busy icon
- From the managed bean that contains the method action, call the ExtendedRenderService to call another script on the page to hide the busy image
You can also use some HTML text instead of the image to indicate the "busy"
Frank

Similar Messages

  • When loading applet, how can show loading bar?

    Hi, everybody.
    I have one applet including one class extended from Applet and several sub classes of it.
    Now I want to show loading bar when web browser is loading this applet, how can I do?
    Give me some tips or advise.
    Thank you.

    >
    ..I want to show loading bar when web browser is loading this applet, how can I do?>See my reply to this thread, for some tips.
    <http://forum.java.sun.com/thread.jspa?messageID=10031386>
    >
    Give me some tips or advise.>Sure. One tip I have is.. Adding Dukes shows interest, but 1 Duke indicates 'not much interest'. ;-)

  • How to customize E-Business Suite Forms Managed Attachments Solution

    Hi
    i had requirement in that i have to configure E-Business Suite Forms Managed Attachments Solution , i have to add an extra attribute in header region of oaf Form
    how can i add an extra attribute in that region .
    In the Line item entry The left box shows Oracle E-Business Suite configuration and connects to the Oracle E-Business Suite configuration database; it includes transaction tables, custom PLLs, and AXF PL/SQL procedures. To the right are two WebLogic Server boxes, one connecting to an AXF configuration database and containing AXF 11g , and the other WebLogic Server box connecting to a Content Server database and containing Content Server 11g and Content Server functionality (components, search engines, and services, including the AF Grant Access Service).
    Thanks regards
    Rajendar

    If you can use any unused variable already available in the header part that will be a quick and easy solution.
    On other hand if you are very much sure you want to add a new header field then you have to make changes in all the layers including AXF DB and OOTB SPs.
    Regards,
    Vikrant Korde.

  • How to down load Business packages

    Hi,
    how to down laod the business packages which will be supplied by SAP for its customers ? (i.e in how many ways we can download).
    is we can downlaod from SDN.SAP.CORP if yes tell me the location .
    Regards,
    Govindu

    Dear Govindu,
    You have to download it from http://service.sap.com/swdc
    Most of them are in Downloads -> SAP Support Packages -> Support Packages and Patches - Entry by Application Group -> SAP Application Components -> SAP ERP -> SAP ERP (your version) -> (support package) -> Entry by Component -> Portal Content
    Regards.

  • How to down load PF-STATUS

    Hi All,
    I want to download PF-STATUS of a program.
    Can anyone help me how i can achive this..Any Fm available..
    Regards,
    Raj

    Hi Kumar,
    There are no function module with which you can download the PF-STATUS of an existing program.
    You can reuse the existing PF-STATUS of other programs.
    Regards,
    Samantak.

  • How to show hardware tcam status via CLI ?

    Dear expert,
    We hv MDS 9513 with FAB 3 and 9248-256 L/C ,more than 1000 zones were added in a fabric, we want to know exact TCAM utilization ,and keep the zone capability safe, any input be highly appreciate .
    Alex
    Sent from Cisco Technical Support iPhone App

    We found a work around with a script which is connecting to the SC via telnet and checking the status of the Power Supply with the command "showboards".
    Edited by: trige123 on Jun 15, 2008 2:07 AM

  • ADF application deploys successfully but run shows 'Loading' endlessly

    Hi,
    I have a simple ADF form, which deploys successfully on integrated server (10.3.5) and also runs correctly using the URL <host>:port/<contextroot>/faces/<formname>.jsp
    Same application compiles and deploys successfully (no errors) on stand alone wls 10.3.6 with ADF run time (11.1.1.6), but when I launch the jsp in the browser the same form shows 'Loading' endlessly.
    Both deployments were done to the adminserver
    Would appreciate any pointers
    Edited by: user6739500 on May 20, 2013 11:12 AM
    Edited by: user6739500 on May 20, 2013 11:49 AM

    1) If I try to run without the jsp extn, I get browser Error 404--Not Found... (with jsp extn works fine on integrated wenlogic, and at least kicks off the jsp in the standalone wls)
    2) I checked log files: I see 3 errors (a, b and c below)
    a)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = CACDTL01IF3278 TXID = CONTEXTID = e8b54f34fbd5cc14:-6f9eb06d:13ec37122cd:-8000-0000000000000061 TIMESTAMP = 1369078984422
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    ####<May 20, 2013 12:43:05 PM PDT> <Alert> <Diagnostics> <CACDTL01IF3278> <AdminServer> <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Mon May 20 12:43:04 PDT 2013)> <<WLS Kernel>> <> <e8b54f34fbd5cc14:-6f9eb06d:13ec37122cd:-8000-0000000000000069> <1369078985210> <BEA-320016> <Creating diagnostic image in C:\oracle\wls1036\user_projects\domains\local_domain\servers\AdminServer\adr\diag\ofm\local_domain\adminserver\incident\incdir_1 with a lockout minute period of 1.>
    b)      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: java.sql.SQLException: ORA-01005: null password given; logon denied
    c)
    [2013-05-20T12:43:04.422-07:00] [AdminServer] [NOTIFICATION] [DFW-40101] [oracle.dfw.incident] [tid: [ACTIVE].ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: e8b54f34fbd5cc14:-6f9eb06d:13ec37122cd:-8000-0000000000000066,0] An incident has been signalled with the incident facts: [problemKey=DFW-99996 [ORA-1005][oracle.jbo.server.URLConnectionHelper.getConnection][Application1_application1] incidentSource=SYSTEM incidentTime=Mon May 20 12:43:04 PDT 2013 errorMessage=DFW-99996 executionContextId=e8b54f34fbd5cc14:-6f9eb06d:13ec37122cd:-8000-0000000000000061]
    [2013-05-20T12:43:04.820-07:00] [AdminServer] [NOTIFICATION] [DFW-40104] [oracle.dfw.incident] [tid: [ACTIVE].ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: e8b54f34fbd5cc14:-6f9eb06d:13ec37122cd:-8000-0000000000000066,0] [errid: 1] [detailLoc: C:\oracle\wls1036\user_projects\domains\local_domain\servers\AdminServer\adr\diag\ofm\local_domain\adminserver\incident\incdir_1] [probKey: DFW-99996 [ORA-1005][oracle.jbo.server.URLConnectionHelper.getConnection][Application1_application1]] incident 1 created with problem key "DFW-99996 [ORA-1005][oracle.jbo.server.URLConnectionHelper.getConnection][Application1_application1]"
    [Note: jdbc connection used for business components is shared IDE connection, password is saved, and I am able to see tables inside the connection in jdev in both ide and application db connection
    So I am not sure why I am seeing the error in 'b' and 'c' above)
    3) I am not using adf security
    Appreciate your efforts to help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to Show String Error Message in SAP status bar?

    Hello All,
    I am doing some custom check in SBO_SP_TransactionNotification and Setting
       SET @error = -1
       SET @error_message='Duplicate Web Order ID'
       select @error,  @error_message 
    But in SAP interface it is only showing -1 in status bar, I could not show error_message in status bar. How it could be achieved.
    Thanks in advance

    Hi
    try this
    SET @error = 1
    SET @error_message='Duplicate Web Order ID'
    select @error, @error_message
    Regards
    Arun

  • How to Show BI report in adf form ?

    How to show bi Report in adf form ?
    (i dont show dashboard in adf form

    Hi,
    check this : http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
    there are some other helpful links as well:
    http://brendenanstey.blogspot.com/2007/01/adf-faces-and-xml-publisher-success.html
    http://technology.amis.nl/blog/2296/building-a-report-in-xml-publisher
    http://technology.amis.nl/blog/1597/xml-publisher-display-input-parameter-sqllims
    ~Abhijit

  • How to show network status in top toolbar?

    how to show network status in top toolbar? Network preferences is there, but network status has disappeared on last reset of Airport Express, but may not be connected. Thanks in advance for practical help

    Interestingly, in my experience, using the method described above of unchecking the "Show Connected Servers" box in the Finder Preferences makes no difference in what I can put in the sidebar. I was able to move a sub-folder of a shared disk to the Favorites section of the Finder Sidebar, but nothing else. (i.e. I could not add the shard disk itself to the sidebar – either to the devices, favorites, or any other section, and I could only add a subfolder of the shared disk to the favorites section – not to the devices section or any other section). This was the same whether I had "Show Connected Servers" checked or not.
    I'm running OS X Mavericks, and the setup I have is with a previous generation Time Capsule (i.e. the short, square kind that you could buy before the most recent taller variety came out last year), with a LaCie 3 TB USB 3.0 external drive plugged into the USB port of the Time Capsule. I'm then accessing this network drive over WiFi. The differences in what I'm seeing may be due to some change they made in the way Mavericks handles these setups.
    I could also just be misunderstanding what you're saying, but I thought I'd add this in case anyone else gets similar results so that they'd know they're not alone. Let me know if I'm missing something here.

  • How to show exponent value in adf output Text

    Hi,
    How to show values in the table column output text with exponent values like 3 ^rd^ , 2 ^2^ , Hello ^R^,etc.. ?
    Do we have any RichFormatText for the ADF output Text?
    Thanks..

    yes...got it myself...thanks..

  • How to show catalog items with Approval Status:Pending in a Content Search Webpart

    How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.

    I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
    As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to supress SLQ loader exit status 2

    Hi All,
    I am loading a file through sql loader and control file has the condition as below.
    INTO TABLE XXX
    WHEN (256:256) != 'Y' and (1:2)=X'C4C4'
    Now the problem is that if a value 'Y' comes in the position specified, the sqlloader exit status becomes 2. Can anyone please tell me how to get the exit status 0.
    when I added 1 more condition as below
    INTO TABLE YYY
    WHEN (256:256) = 'Y' and (1:2)=X'C4C4'
    It came out with exit status of 0.
    Please excuse me if I am ignorant about any thing..

    No version number.
    No control file.
    No full and complete error message from the log file.
    No further help is possible at this time.
    It helps to post full and complete information and even more so to provide a small demo people trying to help you can run.

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • I  cant open iphoto here, open with a circle turning show loading,how to fix it. help!! i nit to reopen it and keep my precious photo

    i  cant open iphoto here, open with a circle turning show loading,how to fix it. help!! i nit to reopen it and keep my precious photo

    What version of iPhoto?
    If it's 09 or later try
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

Maybe you are looking for

  • BI Publisher Report for Archived OIM

    Hi We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details. Now our requirment is to create a new report to read d

  • Account Assignment Category in VOV6

    People, Can any one explain the meaning of Account Assignment category in VOV6. Found some answers on Google but were not explaining the real use of it. Can any one use a real scenario to explain the answer Ahmed

  • Looking up multiple printers

    Hi I would like my app to find all connected printers names and then allow the user to select any printer for printing. In PrintServiceLookup() I only see one method getDefaultPrintService which returns the default printer. I could then use getName a

  • Date / Calendar???????

    hi I have been trying to write a class DateHandler all day and after spending hours looking at both the Date and Calendar class I am now very confused. There are a few basic things I want to do. 1) Initialise method - retrieve the Current Date (and i

  • Powershell command to get cpu percentage as displayed in task manager

    Hi, I wish to extract the memory and cpu data of each process as shown in task manager. I am able to get the memory size in mb, but PercentProcessorTime does not return the exact process's cpu % value shown in task manager. function GetProcessInfoByN