AJAX call to actions and the response of the PageFlow

Hello

in my portlet, I need to make calls ajax for certain actions. It works fine but I have a problem with the answer. I want to put in the answer that a message to display to the user (for example, "Update successful" or "Error!"), but WebLogic Portal write all the content of the page, even if I have everything set forward and I will return null in my action.

@Jpf.Action)
myAction() before protected throws IOException
{
content of the action

Returns a null value.
}

How can I tell WebLogic Portal write anything in response when I returns null?

Hello
You can directly export the /webapp/folderofpageflow/action.do url (and depending on where your jsp is and using methods in the query, you can avoid to hardcode the name of the Web application / file name, but in most cases they do not change)
Im not sure if Ajax can be disabled for particular Url Im to remember documentation about this, sorry
concerning
Deepak

Tags: Fusion Middleware

Similar Questions

  • I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Original title: problem e mail

    I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Suggestions;

    1. make sure that your e-mail program is your default program.

    2. make sure that your Internet Explorer, or your main browser has all its faults.

    You can do both of the above by following these steps...

    Start button > right column, click default programs > click Set Your Default programs...

    1. click on your e-mail program > it doesn't say "this program has all its defaults"?
    If not, click on choose by default for this program > check all boxes below the list > click on save when finished.

    2 do the same as above for your Internet Explorer, or your main browser.

  • APEX5: exceptions from AJAX calls not returned to the client

    I have a small question about the apex.server.process feature.

    I have a request where I do some AJAX requests to the server to do something. My JS (sample) code looks like this:

    apex.server.process("DO_SOMETHING", {
    }, {
        dataType: "text",
        success : function (pData) {
            alert(pData);
      }
    });
    

    The foo application process is defined as follows:

    BEGIN
    raise_application_error(-20001, 'exc');
    END;
    

    Now, I noticed that when I am connected to the request of the manufacturer, I get my alert with the message "sqlerrm: ORA-20001: exc ' (which I expected).

    If I connect to the generator and run my application, I get an empty alert message (ie: the pData in my success Manager parameter is empty, or better: the response of the network call is empty = > "this request has no data available response" chrome network logging).

    Is this as expected? If Yes, what is the reasoning (security as in "never disclose unhandled exceptions") and is there a setting/workaround, we use (short for catching exceptions and the sending of the response via htp.p data)

    I understand the fact that you should always do the appropriate error handling, but it's an internal application where I don't mind really if an unhandled exception is propagated to the client.

    I have a request on apex.oracle.com where it is reproduced, but given the behaviour depends on being connected to the APEX Builder I'm not confident to disclose identification for generating environmental information.

    Change the raise_application_error for:

    HTP.p ("exc");

    It is indeed strange that the behavior is different when running through the constructor, or directly. I have reproduced the same on apex.oracle.com

    Come to think of it: when running through the constructor, you can debug and use the developer toolbar. Maybe Apex handles exceptions differently to capture the output of the exception.

  • Popup error when using the AJAX or update Action for the region or a State

    Hello

    I had a problem with an application that I developed and I was banging my head against the wall with this for some time without success. Several pages in my application rely on the use of AJAX to refresh a region on the page with the updated data, running every 5 seconds. I have the following code in the foot in my region:

    var refresh_region = function (region_in) {
        try {
            jQuery(region_in).trigger('apexrefresh');
        } catch (e) {
            //Suppress error messages
        } finally {
            setTimeout(function() {refresh_region(region_in)}, 5000);
        }
    }
    refresh_region('##REGION_STATIC_ID#');
    
    
    

    What is happening is that I often have a popup with the title "Message from Web page:" and one of the descriptions following error (with the last being the most common):

    • : Error - HTTP Version not supported
    • Error: error - unknown

    The problem is that this page is used on the kiosks without keyboard, and once the error popup is displayed, the page continues to answer and user interaction to click on the Ok"" button. Another question, which is even more frustrating, is that these windows will accumulate above the other nearly one hundred sometimes profoundly, to the point where, sometimes, I need to force, exit the browser or restart the kiosk. There are also cases where the entire application stops responding and none of the pages will load. The only way to solve this problem is to have my DBA restart Glassfish. He went through some of the papers, but he sees nothing specific that helps him understand why he keeps to himself, but he believes that all these popups eat connections until the server runs.

    This has been a recurring topic since the app went live and I had hoped that with the help of a block try {} catch {} would prevent these popups errors but no luck. I also made a copy of the page today and refresh moved dynamic Action using the timer plugin but the popup always appears. I am following up to see if it happens more often than the AJAX approach.

    In the end, there are two issues here:

    1. What causes the error in the first place?
    2. How can I prevent the error popup windows until I can find #1

    I have tried everything I can find online to disable popups, all of this without a bit of luck:

    • Using try {} catch {}
    • Disable script debugging in Internet Explorer
    • Uncheck 'display a notification of every script error '.
    • Catch the window.onerror event

    Does anyone have any suggestions on how I can avoid these popups?

    I have a copy of the application on apex.oracle.com:

    • Workspace: SCCC_TEST
    • User/Pass: TEST/test
    • Page: 5

    Thank you!

    Once I started to think the ajax Manager that I started, I was wondering if ajax would actually raise an error at all, and it is not just the success of shooting when but throwing an error because it cannot handle the return (error page html for example). I'm not sure.

    You can try to use this code, which will replace the current call and will call _Appel with your own parameters. _Appel is a private member is not accessible so it's probably the best alternative. Not really a hack in my book. The structure is in place, then why not.

    //preserve original function
    var asw_orig = apex.server.widget;
    //override existing function
    apex.server.widget = function(pName, pData, pOptions){
      var lOpts = pOptions;
      //set the error handler function
      lOpts.error = function(){alert("this is my error handler function");};
      //pass along the variables to the original call
      asw_orig(pName, pData, lOpts);
    };
    

    I wondered if maybe the session may have expired at a certain time and therefor, you found these errors, because the update is not aware of this and therefore makes invalid calls. Just throw something out there.

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • Call an action of the user from a plugin

    Hello

    Is it possible to call an action performed by a user, if so how can I get it back (by his name?) and it is possible to define some of the arguments of the action?

    Thank you

    Here's an example of how the PlayActionEvent method can be used:

    ASErr

    AIArtHandleModifier::Rasterize()

    {

    Result AIErr = kNoErr;

    AIActionParamValueRef valueParameterBlock = NULL;

    ActionDialogStatus dialogStatus = kDialogOff;

    Try

    {

    result = sAIActionManager-> AINewActionParamValue (& valueParameterBlock);

    aisdk::check_ai_error (result);

    If (valueParameterBlock)

    {

    set values of valueParameterBlock (params) before calling

    PlayActionEvent method.

    It is up to you to put

    result = sAIActionManager-> PlayActionEvent ("ai_plugin_rasterize", dialogStatus, valueParameterBlock);

    aisdk::check_ai_error (result);

    result = sAIActionManager-> AIDeleteActionParamValue (valueParameterBlock);

    aisdk::check_ai_error (result);

    }

    }

    catch (HERE: error & ex)

    {

    Do something with this!

    }

    return the result;

    }

    Kind regards

    Thomas.

  • Console of BSE calling bpel asynchrono and waiting response reminder

    Hello

    I created a bpel asynchrono process. He has published in the default domain of the bpel console.
    After that, I created a BSE routing service using the xsd of this asynchrono of bpel file.
    When I created the service of delivery of BSE routing rules, I have not found the onResult (reminder of bpel) operation, only I found the operation initiated.

    How can I call an asynchrono bpel through the ESB console startin by operation start and expected operation onResult (reminder of bpel) response.

    Has anyone had this experience?
    Any idea what can I do?

    Thank you
    Fabricio.

    BSE is stateless, therefore, that it cannot wait for the response from an asynchronous call. In terms of BSE means asynchronous fire and forget. She does not expect the response back from the producer.

    BSE is used as a broker to manage endpoints. So if the BPEL or Source Exchange system or system is affected, for example if the source system changes leading to the web service is just a matter of changing the end point. If the schema has changed, you can perform a transformation.

    see you soon
    James

  • I keep getting phone calls from people with heavy accents who say they call from microsoft and the need to check my computer because of all the error messages I'm supposed to be getting.is it real

    I continue to receive calls telephone of people with heavy accents who say they call Microsoft because of all tha error messages I'm supposed to be getting - which I don't get. I just got the phone with one and convinced him to remember on Friday at noon, Central time. He asked me to give him the remote control of my computer so that it can "fix." I can't believe its "real and he can't give me details about what the problems are." I wasn't about to let him have access to the computer I'm on right now because of his "unusual operating system and all the time and effort it took to get this set-up and at full load." I'll be at my weekend House when it calls Friday where I have a more conventional computer. Is this real or a hoax?

    SCAM.
    You have made the right choice. Do NOT give the scammer remote access, or your computer is "screwed".

    The next time the scammer call, hang UP.

    Take a look at these phony support calls:
    http://answers.Microsoft.com/en-us/search/search?searchterm=phony+support+phone+calls&CurrentScope.ForumName=&CurrentScope.filter=&askingquestion=false

  • Dynamic action and the sequence for popluating items

    I try to use the sequence to fill an item after the other (on the loading of the Page).

    So basically I'm pushing data using a SQL to item_A then fill item_B based on the result of item_A.

    I thought that if I use the sequence it will work, but I don't get any value for item_B.

    What is the best way to do it?

    See you soon,.

    Mehr

    Mehr wrote:

    With the help of the Source is perfect however although I can easily use it to fill the item_A, but when I write this in the section item_B Source:

    item_A + 10 (example)

    the result is null.

    Can you advise?

    I guess the item_A and B are supposed to be in a sequence type of situation so that one can be done after the other, but I doubt if there is any order for items in a form (page).

    Page elements are displayed in order of sequence / the box item. Their source and default values are also defined in this order. However, the source attributes / by default defines only the values rendered on the page, not in session state (you can see this by using the Session Viewer when the page is rendered in first). This means that you cannot reference the value of an element any defined using attributes source / default to the course to see the page. To set values in the elements of rendering and session state, set the initial values using calculations or process rather than the source attributes / by default.

  • Ajax call resets the session?

    All,

    I got a general question about AJAX calls. During an Ajax call, which resets the session? I mean, if I put the session expires after 30 minutes and does it not everything hits server other than Ajax calls for 30 minutes, the session expires?

    Thanks in advance.

    Published by: user2865915 on June 17, 2011 07:22

    user2865915 wrote:
    All,

    I got a general question about AJAX calls. During an Ajax call, which resets the session? I mean, if I put the session expires after 30 minutes and does it not everything hits server other than Ajax calls for 30 minutes, the session expires?

    Session is kept alive due to the client HTTP calls. AJAX calls are HTTP requests. So no, the session has not expired.

  • Repeat the action and save the file

    Hello

    I'm having a fever and is trying to accomplish something that seems very simple not knowing anything about scripting.

    I made an action that applies to some simple effects (blur, threshold and high pass). I want to do is to repeat the action of n times and save an additional for each repetition png so I find myself with a sequence of files numbered from the action more applied (as in this example, Photoshop Cs5 filters Animation on Vimeo).

    After som Googling, I ended up using AppleScript and was able to repeat the action for as many times as I want, but I'm completely stuck on the file save game. That's what I have right now:

    Any help is greatly appreciated!

    say application 'Adobe Photoshop CC 2015.5'

         set Starting point to current document

         set theFilePath to path of the file of current document

    Repeat with n from 1 to 10

    set myFile to theFilePath & ': output: image ' & { n channel } & ".png"

    do "CrazyAction" of "Default Actions"

    { Save document in file myFile as PNG with options { }classPNG save options interwoven:fake} :

    end Repeat

    end say

    In case someone comes up with the solution I also have another related question: How can I make sure that the output file names will have a padding of the number? Ideally, I'd end up with image2.png and so on, rather than image1.png image001.png, image002.png.

    Thanks in advance!

    One of the things you can do with javascript you can not do with applescript is to use the scriptlistener plugin. This plugin is put into the photoshop plug-ins folder, and when he's here (you don't want to leave it there all the time) it will record about everything you do, kind of like an action, but it generates the code in a file on your desktop. I used it for recording an action to save the png and running. The parts of the code are in the functions in the script. So I just created a folder name of base, a base file name and a counter of departure. The script will then execute your action and save a png image in this folder and change the name of the base by the counter file increases by one each time. You must put in the name of your action and the name of the action as defined in the script.

    #target photoshop
    var fileName = 'myFile-';
    var folderPath = new Folder (Folder.desktop +'/action test/')//create whatever path you want here. Make sure the folder exists!
    var doc = activeDocument;
    var counter = 1//counter for changing the filename
    
    for (var i=0;i<4;i++){//Change number 4 to whatever number you want it to repeat + 1
        runMyAction ("twirl", "Chuck");//put in action name and action set name. This line can be duplicated for different actions.
        savePNG ()
        counter++
        }
    
    function runMyAction(myAction, myActionSet){
        var idPly = charIDToTypeID( "Ply " );
            var desc25 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref8 = new ActionReference();
                var idActn = charIDToTypeID( "Actn" );
                ref8.putName( idActn, myAction );//changed to a variable
                var idASet = charIDToTypeID( "ASet" );
                ref8.putName( idASet, myActionSet );//Changed to a variable
            desc25.putReference( idnull, ref8 );
        executeAction( idPly, desc25, DialogModes.NO );
        }
    
    function savePNG(){
        var idsave = charIDToTypeID( "save" );
            var desc28 = new ActionDescriptor();
            var idAs = charIDToTypeID( "As  " );
                var desc29 = new ActionDescriptor();
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIN = charIDToTypeID( "PGIN" );
                desc29.putEnumerated( idPGIT, idPGIT, idPGIN );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPGAd = charIDToTypeID( "PGAd" );
                desc29.putEnumerated( idPNGf, idPNGf, idPGAd );
                var idCmpr = charIDToTypeID( "Cmpr" );
                desc29.putInteger( idCmpr, 9 );
            var idPNGF = charIDToTypeID( "PNGF" );
            desc28.putObject( idAs, idPNGF, desc29 );
            var idIn = charIDToTypeID( "In  " );
            desc28.putPath( idIn, new File( folderPath + '/'+ fileName + counter+ ".png" ) );//set folder path and name
            var idDocI = charIDToTypeID( "DocI" );
            desc28.putInteger( idDocI, 200 );
            var idCpy = charIDToTypeID( "Cpy " );
            desc28.putBoolean( idCpy, true );
            var idsaveStage = stringIDToTypeID( "saveStage" );
            var idsaveStageType = stringIDToTypeID( "saveStageType" );
            var idsaveBegin = stringIDToTypeID( "saveBegin" );
            desc28.putEnumerated( idsaveStage, idsaveStageType, idsaveBegin );
        executeAction( idsave, desc28, DialogModes.NO );
        }
    
  • Call log displays only the latter do not miss after Ics

    Verizon droid RAZR max
    Call log only shows recent and doesn't let you do a journal of everything just do not miss after Ics
    You used to be able to select different "missed" call logs Entrants and the GOI.
    The 'recent' tab does not draw down to offer the option.
    Is this corrected?

    ISSUE OF NEWSPAPER CALL FAILED:

    Although the option 'list missed calls' is not viewable by itself; There are two ways to easily identify your missed calls. One way is to the home screen... (when the icon appears, you ' pull down' your screen info bar) and the other by the icons in your list of "recent" calls

    I added a pic... hope this helps.

  • Lost all my actions and 3 filters gone after upgrade to Photoshop CC 2014

    How to make all my actions and the 3rd party filters in Photoshop Photoshop CC 2014 CC?

    If you are migrating your CC presets, you should get your Actions, clogs, Sahapes, back forms etc. Menu Edit > Presets > Migrare Presets. You must copy or install you 3 plug-ins in 2014 third of CC.

  • Open a WHITE and the other WHITE

    I open a window using
    getURL (" http://www.website.com/newMember.html', 'EMPTY'");

    This opens in a new window... like I wanted... However in the window, I just opened, I have another

    getURL (" http://www.website.com/terms.html', 'EMPTY'");

    This time it will not open in a blank window, but it opens in the same window as the window previously open... y at - it a way to solve this problem? Thanks J.

    because I themboth the EMPTY name... I thought the syntax was to open in a new window, but it's just the name of the window... so call a BLANK1 and the other BLANK2... great stuff... Yay for me!

  • DoDML and the required fields

    I have mandatory fields on the object of the entity,
    I tried to set the values of the fields in doDML, but because that the validation call before doDML and the field mandatory messages appear to the user.
    I did something around that, I set the default value for the fields and then update the value in doDML
    someone has an idea?

    Watch

    If you are programmatically filling in the fields in doDML() that means that they are not required to be entered by the user should not be marked as required.

Maybe you are looking for