FacesContext.getCurrentInstance () .renderResponse () does not work!

Hi, I implemented a custom pagephaselistener and there I call FacesContext.getCurrentInstance () .renderResponse (), but it does not work... I expect the page to reload, but this does not happen.

can someone explain to me why? What could be the cause?

Hello
FacesContext.getCurrentInstance () .renderResponse ().
ignores the rest of the life cycle. (that is of short circuit of the lifecycle JSF until renderResponse())

If you want to refresh your page check that
How to: Refresh page ADF Faces ongoing

Tags: Java

Similar Questions

  • < af:setPropertyListener > does not work

    Dear all,

    Need your help to understand a problem. I use JDeveloper 12 c. I have a < af:inputNumberSpinbox > and I need to store the value of user input in a Backing Bean.

    I use < af:setPropertyListener > to store the value of user input directly in the Backing Bean. But it does not work.

    <af:inputNumberSpinbox value="#{bindings.loginAttemptsAllowed.inputValue}" label="#{bindings.loginAttemptsAllowed.hints.label}" id="ins1" autoSubmit="true">
        <af:setPropertyListener from="#{bindings.loginAttemptsAllowed.inputValue}" to="#{pageFlowScope.serverProperties.loginAttemptsAllowed}" type="valueChange"/>
    </af:inputNumberSpinbox>
    

    Whereas if I create a ValueExpression and you call GetValue, it works perfectly. What could be the problem in the code above?

    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elContext = fc.getELContext();
    ExpressionFactory eFactory = fc.getApplication().getExpressionFactory();
    ValueExpression ve = eFactory.createValueExpression(elContext, "#{bindings.loginAttemptsAllowed.inputValue}", Integer.class);
    loginAttemptsAllowed = (Integer) ve.getValue(elContext);
    

    Thanks in advance.

    Your event type is 'valueChange. ValueChangeEvent is delivered at the end of the phase VALIDATION and before the stage of UPDATE_MODEL, so your is called before the new value is stored in the model, so that you get the old value.

    Dimitar

  • Stripped to show the behavior of the popup does not work on IE 9

    Hello
    I have logic to display popup windows pragmatically, this does not work on IE 9, IE the popup is ever launched in ie - 9. It works fine on all other browsers. (ie8, ie7, Firefox).

    Here's the code to render the popup:
    {} public static void showPopup (RichPopup popup, boolean visible)
    try {}
    FacesContext context = FacesContext.getCurrentInstance ();
    If (context! = null & & popup! = null) {}
    String popupId = popup.getClientId (context);
    If (popupId! = null) {}
    Script of StringBuilder = new StringBuilder();
    script. Append ("var popup = AdfPage.PAGE.findComponent('").append (popupId).append("') ;");
    If {(visible)
    script. Append ("if (! popup.isPopupVisible ()) {" "}"). Append ("Popup.Show ()}}") ;
    } else {}
    script. Append ("if (popup.isPopupVisible ()) {" "}"). Append ("Popup.Hide ()}}") ;
    }
    Erks = ExtendedRenderKitService
    Service.getService (context.getRenderKit (),
    ExtendedRenderKitService.class);
    erks.addScript (context, script.toString ());
    }
    }
    } catch (Exception e) {}
    throw new RuntimeException (e);
    }}


    Please help, I think that the erks.addScript has some problem with ie9.

    Hello.

    I tested the code of nini and it works in 11.1.1.6 and IE9

    but you must add a partialsubmit in the button

  • Compensation program an input element does not work

    Hello

    I want to erase a point of entry (RichInputListOfValues) contained in a PanelForm programmatically, once the user presses the button "erase":
    <af:commandToolbarButton text="Clear" id="ctb1"
    actionListener="#{pageFlowScope.UiBindings.clearItem}"/>
    When the code that really should clear the issue is:
        public void clearItem(ActionEvent actionEvent) {
                getItem().setValue(null);
                // getItem().resetValue(); // even with this, it does not work.
                AdfFacesContext.getCurrentInstance().addPartialTarget(getItem());
        }
    
        public RichInputListOfValues getItem() {
            return item;
        }
    However, the foregoing does not erase the element on the page. I have to click a second time to actually see the item empty as expected.
    The problem appears even if I also addPartialTarget() on the PanelForm container.

    You have an idea?

    Hello
    Try setSubmittedValue and processUpdates.

    {} public void clearItem (ActionEvent actionEvent)
    getItem () .setValue (null);
    getItem () .resetValue (); even with that, it does not work.
    getItem () .setSubmittedValue (null);
    getItem () .processUpdates (FacesContext.getCurrentInstance ());
    AdfFacesContext.getCurrentInstance () .addPartialTarget (getItem ());
    }

    Renuka

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • Do not disturb (on request) does not work

    I have an iPhone 7 more with iOS 10.0.2. I had set up as NEW when I got it. I use the function do not disturb I SLEEP every night to block the incoming notifications apps and emails (including work with the application Outlook email). I leave the phone won't cut not so I can make sure my alarm wakes me up the morning. But it does not work. I still wake up emails and notifications of the app. It worked on my old iPhone with iOS 6, 8, 9 or even 10.

    I see a lot of old messages and questions about DND not work, but they were more specific to older phones and ' iOS.

    Anyone else having this problem?

    Any ideas for help?

    Thank you.

    I'm sure that I understood this.

    I had "only when locked" checked and not 'always' in settings do not disturb.

    I leave my iPhone unlocked all night using the bedside table Central app as my alarm clock.

    There we go.

  • Contact ID does not work after update iOS10.0.2

    http://www.Macworld.co.UK/how-to/iosapps/iOS-10-troubleshooting-tips-3646690/

    Troubleshooting iOS 10 tips: Touch ID does not work

    Some users have reported that a previously happy Touch ID installation stopped working when they made the update to iOS 10. It is a pain, but rescuable - you will probably need erase your fingerprints and re-enter.

    First, however, try something simpler: go to settings > Touch ID & password, enter your password, then press the buttons next to pay Apple and iTunes and App Store so that they become white. Turn off your iPhone and turn it off again, then go back to settings and turn the two knobs back to green (you will need to enter your password Apple ID).

    Who fixed the problem?  I haven my Aff!

    If not, go through the fingerprint stored in settings > Touch ID & password - press each of them in turn - then erase fingerprints. Then go back and press Add A digital footprint and put back them in. It's a bit complicated, but it should fix the problem.

    I did all that, but the problem could not be solved.

    Try the following steps:

    1. go in the settings, press button ID & password, enter your password. Then turn off iTunes and App Store. Restart your iPhone or iPad. Return to Touch ID and password in the settings and re - turn on iTunes and App Store. Press Add a fingerprint to add another print.

    2 remove and re-add fingerprints: settings > Touch ID & password > enter your device code > scroll to find fingerprints fingerprints. Press the fingerprint, that you want to remove, and then press DELETE.

    3. restart your iPhone by pressing and hold the Sleep/Wake and home.

  • Projector does not work after upgrade from Sierra

    My projector does not work after upgrade to Sierra. Or search in Outlook (I use outlook for Mac due to having MS 365 for labour) or the search function in the finder. I use this all the time and need this feature back. I tried to reindex spotlight and nothing. Anyone has any ideas.

    Try to rebuild Spotlight rebuild the Spotlight to your Mac - Apple Support index

  • Scan with preview - several Pages of a PDF THAT does not work in Mac OS Sierra

    Hello everyone,

    I had upgraded my Macbook Pro (early 2011) to Mac OS Sierra. A famous feature of older versions of Mac OS is to use Preview to scan documents to PDF format, joined the pages scanned all of a single document.

    After upgrading to Sierra this feature does not work correctly. The pages are not more combined into a single PDF. Anyone who has observed the same problem?

    Best regards from the Germany

    Jörg

    Yes, it's been posted here several times.

  • My Apple TV remote 3rd generation A1294 doesn't aluminum A1394 does not work properly, the battery is and I have tried all the resets including factory reset.

    My Apple TV remote 3rd generation A1294 aluminium does not work properly, battery is good, and I tried all the resets including factory reset. the battery compartment is clean.

    You don't say what you mean by not working not properly, however...

    Your Apple TV can become affiliated with another remote control. Hold the remote control close to and pointed on the Apple TV, press and hold the menu and rewind buttons together for 6 seconds or until you see an icon of the chain broken on screen.

  • IOS 10.0.2 cameras does not work (only in black)

    Camera and camera back does not work (all black), I reset my iphone from the PC and the phone, but does not please you see in the picture. Help.

    Hello

    It may help to follow the steps detailed here, including forcing the camera nearby application:

Maybe you are looking for

  • lock the screen rotation 10 omni

    Honestly, the title says it all. I just want to read in bed on my side. Thank you!

  • stock browser does not display the tabs

    No matter who has noticed that the stock browser has occasionally tabs disappear. all I see is the blue line of the page loading. I can't scroll to the top to see the tabs. the web page displayed will completely to the top of the screen. the blue lin

  • HP EliteBook 745/755/725 G3: Missing 'Label restore electronic tool' to fix the POST error boot in the BIOS 1.08

    The latest BIOS for the HP EliteBook 745/755/725 G3 made reference to a 'restoration tool electronic Label' to remove a MESSAGE error after flashing the BIOS to 1.08. http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=7815285&swItemId=ob_1605

  • Windows 7 set up the screen of the window

    Hi team I have installed windows 7 os and our office about the request. I want to take ghost backup, before taking the ghost backup, I want that the system starts to set up windows screen .pls share the cmd for the same thing. screenshot attached

  • Strange folder icons [unrecognized icons]

    Hello Last week, I noticed that the icons for my records in the two storage drives that I have connected to my computer display the unknown icon next to them, instead of the folder icon which should be present. Here is an example: This image is from