Page doesn't refresh after Java code execution

Hi all

I mix the database, Java, ADF, and WebCenter in one project. I want to have a label that is displayed when I make a modification, remains for 5 seconds and then disappears. I have this code that works well for the label of the change:

{} public void buttonSaveClick (ActionEvent actionEvent)
ADFUtil.invokeEL ("#{bindings.Commit.execute}",)
new class [] {ActionEvent.class},
(New Object() {actionEvent});
System.out.println ("Trewq");
String textEmployee =
changesEmployee.getValue (m:System.NET.SocketAddress.ToString ()) + nameEmployee.getValue () m:System.NET.SocketAddress.ToString () +.
".";
changesEmployee.setValue (textEmployee);
changesEmployee.setVisible (true);
AdfFacesContext.getCurrentInstance () .addPartialTarget (changesEmployee);
Timer = new Timer();
Timer.Schedule (new Modification(), 5000);
}

class change extends TimerTask {}
public void run() {}
System.out.println ("asdf");
changesEmployee.setVisible (false);
AdfFacesContext.getCurrentInstance () .addPartialTarget (changesEmployee);
System.Exit (0);
}
}
}

Quickly explained, when a click occurs on the save button, the label appears saying a change that's happened on the X employee y the rest (database name) for five seconds, , but it doesn't go away as it should be. Strangely, my System.out.println ("asdf"); occurs five seconds after the click, it isn't a problem of timer... The partialTarget works well on the setVisible (true) but not on the setVisible.

changesEmployee is a label attribute of a link to a page jspx (af:outputLabel).

Thanks for your help :)

The out of context her related to the life cycle. The event queue cannot be handled in this way. Three time you try to add the partial trigger, nobody listens to it.

Another possible solution without javascript comes to mind. You open your message as you do right now, but instead of your class time, you use a component af:poll that you can configure for questioning after 5 seconds. In the listener from the pool, you have access to the context of the ADF, as in any listener.
For an example, see http://mjabr.wordpress.com/2011/05/06/refresh-part-of-the-page-periodically-using-poll-component/

Timo

Tags: Java

Similar Questions

  • page has no content after adding code in the google tracking metadata

    I just added the google html tracking code for all my pages in meta data

    (what a pain... each page individually... why I can't add to the masters?)  Anyway,.

    After I published the pages

    I am getting error that some pages have CONTENT No. and there is just a blank page in safari.

    I can only use the left arrow to return to another page.   I rebooted the whole site a second time,

    and I still get the same error.     I have add the additional google code to keep track of additional information of links.

    (the first two lines starting with _gaq...)

    Here is the tracking code, which I have added to the header of each page:

    <! - analytical startup google code - >

    <!--code FA follow-up FARM - >

    < script type = "text/javascript" >

    var _gaq = _gaq. [];

    var pluginUrl =
    ' / / www.google-analytics.com/plugins/ga/inpage_linkid.js';
    _gaq.push (['_require', 'inpage_linkid', pluginUrl]);

    _gaq.push (['_setAccount ',' UA-28534187-1 ""]);

    _gaq.push (['_trackPageview ']);

    (function() {}

    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;

    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";

    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);

    })();

    < /script >

    <!--end google analytic tracking code - >

    Here is a link to the website:

    http://www.farandawayfarms.BusinessCatalyst.com

    Help, please.  It is a big problem.

    We have problems with the frontend in load intermittently for sites hosted on us DC and often leading with error message 'Empty content Page' about 8 June. If you are facing such a system related questions, BC. end in the future, I would say as a result of the status page of the BC system here - http://status.businesscatalyst.com.

    In addition, with the release of Muse CC yesterday, you should be able to add metadata (o HTML for)) to a master page using its Properties Page. Learn more about the new features here - http://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html.

    Thank you

    Vinayak

  • CF Pages failing to refresh after updates db

    I have an application written in CF 6.1 running on IIS 6 Windows Server 2003 which fails to refresh properly after updates to the db. If I right click and refresh, the page is painted normally. This seems to happen randomly and in different areas of the application. Even clicking the button disconnect sometimes provides a blank screen. Any ideas? Although many tests of the different systems and new, I excluded - faster hardware, ssl enabled, ms patches, SAV, cache, IIS, firewalls. Thank you

    Adobe has helped us solve this problem. Apply the fix - ColdFusion MX/JRun 4.0: Hot fix available for JRun4 Updater 6, IIS 6.0 redirect response truncation. http://www.Macromedia.com/cfusion/knowledgebase/index.cfm?id=5c9389c8

    Thank you!

  • NO FAX PAGE DOESN'T COVER AFTER INSTALLATION (VERSION 13.1.0) DISC FOR WINDOWS 7.

    UNABLE TO CREATE a PAGE of GUARD of FAX AFTER INSTALLATION OFFICEJET 6310 ON COMPUTER with the HELP of WINDOWS 7 64 BIT.  USED HP DISK (VERSION 13.1.0).

    Hello

    Unfortunately, this possibility of fax cover has been removed and is no longer guaranteed by any optical version 8 or 9 HP Solution Center.

  • Login page doesn't not after atg 6 patch

    Hello


    After ATG 6 patch application, login page does not, everytime I try to access to I get error HTTP 500 internal server error.

    Thank you

    Hello

    Please check the hosts file on your client computer (under the "% Windows%\system32\drivers\etc" directory). Make sure you have the following entry:

    192.168.149.131 peabody.ing.com peabody

    Once you make the necessary changes, try to ping the server from the client computer.

    Have you tried from another computer?

    Kind regards
    Hussein

  • ADF refresh page with page fragments jsff jsf after the set session variable

    Hello.

    I have a model that includes a button that allows you to select a profile, you push the button appear available profiles, choose one and press to accept. After that, I put a variable session successfully.

    I have a page of 'First' of jsf with two fragments of page jsff after seeing a link. The display link is composed by a headerView and detailView. The headerView had a variable binding. What I need, is that this parameter (bindVariableParameter) can be defined by the session of the model variable.

    That's what I get:

    I am in a homepage (separate Application Module), model button is pushed until I load "first" jsf page and after that, I go to the page jsf 'First', that information is loaded successfully. What I do in the Application Module is something like this:

    protected void prepareSession (one session) {}

    SessionScope card = ADFContext.getCurrent () .getSessionScope ();

    Company string = (String) sessionScope.get ("compId");

    System.out.println ("Default Comapny in British Colombia is:" + company);

    super.prepareSession (session);

    this.getSession () .getUserData () .put ("The company", company);

    System.out.println ("after the definition userData value card BC");

    }

    And in the variable binding expression of the headerView that I use:

    adf.userSession.userData.Company

    It works very well! But!

    When I press the button again and I chose another profile, the info is not updated. In the headerView or in the detailView.

    Also, when I go to the 'First' jsf page (without previously pressing the button model), I had no info, which is just, because I have no session variable. After I have press the model and select the profile, but the page is not refreshed.

    I tried many ways to this, but I'm lost.

    Could you help me?

    Kind regards.

    I'm not sure that understand your use case. What do I get, you set a parameter after that you press a button on the home page to pass this parameter to the first.jsf.

    Why don't you implement a method of the application module and call it directly with the parameter. The session of preparation will not be called whenever you browse but only init am.

    Do you need the parameter in the layer model or only in the display?

    Timo

  • How can I get the page to refresh after a certain period of time, so he jumps at the beginning of a page of the site? Its for an exhibition

    Hello

    I'm in an exhibition space where I need to post my Muse site in offline and locally on the desktop. I'm looking for a way for the website to refresh after a certain period of time, so he can come back at the beginning of the page. Can anyone help? Please, I beg you!

    You can try the steps here:

    http://StackOverflow.com/questions/2787679/how-to-reload-page-every-5-second

    http://StackOverflow.com/questions/17886578/refresh-part-of-page-div

    http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jQuery-and-AJ ax.

    Thank you

    Sanjit

  • My new orkut page doesn't work anymore after uptading firefox Firefox v9.0.1 at 10

    My new orkut page not working anymore after I in v2.1 this morning my browser firefox Firefox v9.0.1 at 10. I'm looking for this version mozilla Firefox v9.0.1?

    You can get it here:
    FTP://FTP.Mozilla.org/pub/Firefox/releases/9.0.1/

    The problem is Orkut incorrectly detects FF10, there is a bug filed here:
    https://Bugzilla.Mozilla.org/show_bug.cgi?id=720179

  • Get the URL parameter in the Java code

    Hi all

    I have a strange problem. I have a JSF page with two controls:
    -InputText
    -Button

    <? XML version = "1.0" encoding = "UTF - 8"? >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    < f: view xmlns:f = "http://java.sun.com/jsf/core" xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >
    < af:document title = "view12.jsf" id = "d1" > "
    < af:messages id = "m1" / >
    < af:form id = "f1" >

    < af:inputText label = "Label 1" id = "it98" value = "#{param.test}" editable = "always" / > "
    < af:commandButton actionListener = "#{bindings.przekierowanie.execute}" = "przekierowanie" text "
    Disabled = "#{!}" Bindings.przekierowanie.Enabled}"id ="cb1"/ >
    < / af:form >
    < / af:document >
    < / f: view >


    And I want to boot the InputText with URL parameter (param name is test - value = "#{param.test}" "). In the JSF page, all right. But after clicking on the button I want to read the value of InputText in Java Code, so I have URL:

    http://127.0.0.1:7101/application6-ViewController-context-root/faces/view12.JSF?test=ASD

    and my Java code that runs when clicking the button:

    public String przekierowanie() {}
    Map < String, String > map = FacesContext.getCurrentInstance () .getExternalContext () .getRequestParameterMap ();
    String tttValue = map.get('zoom') ("test");
    System.Err.println ("test:" + tttValue);
    Returns a null value.
    }

    but it does not work... Whenever I get nothing when I click on the button. Could you tell me why and how to get the value of InputTex in my java function?

    Store the parameter to a parameter of sight and access this setting from Java using EL code.
    Here is the main part (without java code):
    https://blogs.Oracle.com/Shay/entry/passing_parameters_to_an_adf_p

  • How to get ADF UI object component for executing java code?

    Hi Experts,

    Can someone view please the java code to get the object of bean ADF faces UI component during execution.

    ex: I have a textbox ADF in my page I need to get an object and change the property of bean to rutime as parameter enable = true on the condition function.
    Please help me to get the object during execution.

    Thank you
    KLN

    Hello

    You must add partialTriggers property on the second inputText component and give the first component id, then only she will get updated.

    Example Code:

     
    

    Jean Lou

  • Mailto doesn't work after updating FF 42.0

    Mailto doesn't work after my last update. The entrance of mailto is not under Tools > Applications and there is no drop-down list to add an entry. My default e-mail program is Windows Live mail.

    Hmm, mailto certainly should not be missed.

    Sometimes, the file that stores these actions of the Manager/download application is damaged. As it is difficult to change, when there is a problem, we offer usually when you rename the file and allows Firefox to rebuild the Windows registry. Who cannot help if mailto is missing from the registry, but I think it's worth a try:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Break while Firefox finishing his cleaning, then rename the mimeTypes.rdf to mimeTypes.old (or another name of your choice, in the case where you decide to roll back this experience).

    Launch Firefox back up again and return to the Options page to specify your preference. Mailto appears once more?

  • Module CVI written TestStand property, property value resets after the step execution.

    Hello

    I did a lot of research and find nothing relevant to the question that I have. I've created a DLL in CVI containing several functions I call TestStand. I also created a type of step customized for each function call. Every function in the DLL has a runtime version and a version edit-time. Time edition features each have a UI associated with them are called from teststand. Change these functions are placed in the custom under the heading "change" step step-type tab Before executing a sequence with these custom steps the edit-time user interface is launched to allow the user to input values that will be passed to the run function. originally, I tried to set up my functions as a 'post step' step in the step properties. However, the sequences would fail to run because the parameters of the step module was empty. Then, I selected CVI as the adapter in the step properties and specified a default module for each type. This filled the tab module settings step like I wanted. However, when I ran the sequence each function execution of measures was called twice, once for the stage of the post, and once for what was in the tab module I suppose. I then re-entered the types of step and deleted all the steps of the post office. I thought that all the problems have been resolved at this point, however, after doing some more extensive tests I always have a bug, I was unable to get rid of that.

    The problem is that two of my step types have to write data to current TestStand to execution after they ask an external device for IT. I know that the query works because my log text that generates the DLL displays the correct values. However, the data are not get rewritten on TestStand correctly. In the enforcement functions after checking the valid data has been returned, I try to write to TestStand using: "TS_PropertySetValNumber (seqContextCVI, NULL,"ThisContext.Step.ParameterValue.NumericParameter", 0, (double) ushortint);" »

    I checked that this call generates an error and also used the TS_PropertyExists method to check that I had the correct search string. These extract so I added then another command that reads the value written to TestStand two return immediately after to write it. I printed this in my log file and found that the value is written to the property of TS. So, the problem is that TestStand is defining the property to reset after the code module is running. How to prevent this?  

    Thanks for all comments, let me know if anything specified needs.

    Josh Meyer

    Well, I came to the conclusion that my 'problem' is not really a problem. I had a bit of a basic misunderstanding of the works of TestStand (I don't actually use it, I am writing just a code which will bring an existing one of the tools of the features inside the TS).

    in any case, what I learned is that these properties are retained (so you can set up a sequence, save it, re - open and be able to run it without any reconfiguration for example), when you write to a property when installing editting/sequence. The run time values are not preserved (if connected) because they are only required to carry out. For example, if a user calls one of these functions to extract value from a controller, they probably do so because they want to check the value, it's what they expect it to be. Rather than watching the value after execution (which is what I me assuming they would do), they would set up the step after step "read value" to test the value that it returned. This value is available in 'RunState.PreviousStep.valuename' in the downloaded step step "read value".

    Hope that I did not confuse anyone a lot, I'm completely new to TestStand.

  • Vulnerabilities in Microsoft Windows could allow Remote Code execution

    My Question is: are you F * % ING KIDDING ME?

    Original title: Ko 3039066 security to PREVENT a REMOTE EXECUTION of CODE after 5years vulnerability update FAILING to INSTALL / UNINSTALLED by windows update!

    Hi C.D.Miller,

    What operating system is installed on your computer?

    This update fixes vulnerabilities in Microsoft Windows. The vulnerability could allow remote code execution if an attacker successfully convince a user to navigate to a specially designed website, specially designed to open or access a working directory that contains a specially designed DLL file.

    Follow the workaround solutions mentioned in the article below and check if that helps.

    Microsoft Security Bulletin MS15-020

    I hope this helps.

  • How can I get Windows Live Hotmail back to my page of the Inbox after reading or deleting a message?

    HOW TO GET HOTMAIL BACK TO THE PAGE OF THE INBOX AFTER READING & DELETING A MESSAGE INSTEAD OF GOING TO THE FOLLOWING E-MAIL ADDRESS, WHICH MAY BE OF THE SPAM OR DANGEROUS TO OPEN IT.  IT DOESN'T SEEM TO BE AN OPTION FOR THIS ON THE HOTMAIL PAGE.  WOULD APPRECIATE ANY HELP.  Thank you

    original title: HOTMAIL INBOX BACK

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to create programably InputComoboxListOfValues in java code

    12.1.3 jdev

    I'm trying to dynamically create InputComoboxListOfValues in the java code as follows.

    RiLOV RichInputComboboxListOfValues = new RichInputComboboxListOfValues();
    riLOV.setLabel (label);
    riLOV.setId ("iclov" + ind);
    riLOV.setVisible (true);
    riLOV.setRendered (true);
    riLOV.setSimple (true);
    riLOV.setContentStyle("text-transform:uppercase;");
    riLOV.setValue (defaultValue);
    riLOV.setPopupTitle ("search dialog box");
    riLOV.setAutoSubmit (true);

    I also need to

    riLOV.addLaunchPopupListener (myLaunchPopupListener);

    riLOV.addReturnPopupListener (myReturnPopupListener);

    My question is how to build myLaunchPopupListener /myReturnPopupListener

    Thank you.

    riLOV.addLaunchPopupListener (myLaunchPopupListener);

    riLOV.addReturnPopupListener (myReturnPopupListener);

    Instead of addX() methods, you can use the setX() methods that use the MethodExpression as parameter.

    Example for MethodExpression: Blog in Java Evangelist John Yeary: JSF 2.x tip of the day: creation by programming MethodExpression EL

    But, af:inputListOfValues / af:inputComboboxListOfValues components require a very complex model to activate filtering etc so this can be very difficult to implement correctly if they are not supported by the link layer.

    From here you can download components done face ADF demo and see how this can be implemented: Application Development Framework downloads

    BTW,

    riLOV.setContentStyle("text-transform:uppercase;");

    Of course, you know that this only display value in uppercase on your page and does not convert the value in the data model?

    Dario

Maybe you are looking for

  • Cannot access the lower part of the option "file save as" in word

    If I choose the option "file save as" in the word, the bottom of the box is below the bottom of my screen and inaccessible. I tried to resize my screen and other options without result. Does anyone have any suggestions on how to fix this on a macbook

  • Need driver for Toshiba A300D-126 WXP chipset?

    Hi all. I just bought Satellite A300D-126, model PSAK4E - AMD mobile base, which cams with Vista Home Premium. For special reasons, I need to install Windows XP. I went to website driver Toshiba and download all the drivers for this particular model,

  • How can I clear logs Reporting of activity on my email account?

    When I connect my email account and look for activity reports, I get a detailed log of all pages and activity for months. How can I clear the history of the journal and update my account so that it only shows reports this month and not the previous n

  • Photosmart 7510: low ink levels

    The documents are very low when printing. The ink levels are good I have the extra large black cartridge but the printer does not appear to see this!  I cleaned the cartridges more aligned with the printer but the print quality is still poor. How can

  • TM2 - Win7 hangs at the splash screen after waking from sleep and hibernation

    I had intermittent problems with the mode 'sleep' on my laptop TM2T-2200 (Windows7 64-bit).  Wake up sleep & put into hibernation, the system will have problems with log-in intermittently.  Generally speaking, I'll be able to move my mouse cursor and