JavaScript embedded in jsff unavailable until after refresh browser

Hello
Not sure if it's a question JHS or JDev, so displaying in both places.

I have a problem with an af:clientListener that runs custom javaScript embedded in the jsff file. He is a multiple application of tab. I use a clientListener and javaScript to capture the return key, then click on a button. The button then runs a managed bean method.

This does not work when the jsff page is first loaded. Using firebug I don't see the javascript. If I manually refresh the browser javascript appears in firebug and the process works. If I tab to another page and then back the processes tab is boken again and javascript code is missing, until I have to refresh the browser again.

Anyone can shed light on this behavior? I tried to find a way to refresh the browser programmatically once the page is loaded, but without success. And this does not seem like the right way to solve the problem anyway.
11.1.1.5 Jdev
JHS 11.1.1.4.26

< af:panelGroupLayout layout = "vertical" id = "ArchivedBoxReconQueryTopLc".
partialTriggers ="ArchivedBoxReconQueryfbb ArchivedBoxReconQuerySaveButton ArchivedBoxReconQueryCancelButton" > "
<!-BEGIN: DEBUG: GROUP_ACTION_ATTRIBUTES: customtemplates/archivedmsds/groupActionAttributes_BoxReconQuery.vm, nesting level: 5->
"< trh:script id ="s2"text =".
* function MSDSOnkeyEnter (event) {*}
If {(window.event)
if(Window.Event.keycode == 13) {}
document.getElementById('pt:mr:0:pt:*ArchivedBoxReconQueryAddMsdsToList*').click();)
Returns true; }
} else {}
If (Event. Event.keyCode == 13) {}
document.getElementById('pt:mr:0:pt:*ArchivedBoxReconQueryAddMsdsToList*').click();)
Returns true; }
}
Returns false;
} "> < / trh:script >"



< af:panelLabelAndMessage id = "ArchivedBoxReconQueryAddMsdsToListPlm" >
< af:commandButton id = "" * ArchivedBoxReconQueryAddMsdsToList * ""
textAndAccessKey = 'Add FS ID'
action = "#{ArchivedBoxReconTempBBean.ArchivedBoxReconQueryAddMsdsToList_action}" > < / af:commandButton >
< f: facet = 'end' name >
< af:panelGroupLayout id = "pgl1" valign = "top".
layout = "horizontal" > < / af:panelGroupLayout >
< / f: facet >
< / af:panelLabelAndMessage >
<!-DEBUG: END: FORM_COMMAND_BUTTON: default/item/form/formCommandButton.vm, nesting level: 10->
<!-BEGIN: DEBUG: FORM_TEXT_INPUT: customtemplates/archivedmsds/formTextInput_ReconQueryMsdsScanNo.vm, nesting level: 10->
< af:inputText id = "ArchivedBoxReconQueryMsdsScanNo".
value = "#{bindings." ArchivedBoxReconQueryMsdsScanNo.inputValue}.
label =""required = "false"
autoSubmit = 'true' immediate = "true".
clientComponent = "true" >
< f: validator binding = "#{bindings." ArchivedBoxReconQueryMsdsScanNo.validator} "/ >"
* < af:clientListener method = "MSDSOnkeyEnter."
Type = "keyPress" / >
< / af:inputText >

Published by: 170412 on 19 June 2012 10:30

Published by: 170412 on 19 June 2012 10:33

See here how to run the script in the jsff page - https://blogs.oracle.com/jdevotnharvest/entry/gotcha_when_using_javascript_in

Tags: Java

Similar Questions

  • content not visible until after refresh

    I have two sites now live through muse, and from time to time, the content is not visible (mostly text) up to that after I refresh the page. Does anyone else have this problem?

    Probably you have encountered a bug with Chrome 33. See this thread - http://forums.adobe.com/message/6157419#6157419.

    We also have a work around for this - http://muse.adobe.com/exchange-library/chrome-33-webfont-workaround-1.

    Thank you

    Vinayak

  • Messages are not read until after they meet

    Since I was the most recent update, my messages to one of my friends (they read receipts turned on) remain as delivered until after they meet and then it changes as follows. So if they never answer there such as pronounced. If I restart my phone then it shows like reading but this does not solve the problem. On my iPad (since I have my messages there too) it is normal and shows as read on the right when they read. I have not updated my iPad yet so I don't know if the update had nothing to do with him or not. Everyone knows about similar problems?

    How do you restart the phone?

  • Cannot connect to Windows 8 after refresh.

    Original title: could not connect to Windows 8 after refresh. I'm about to lose my mind!

    I am LIVID!

    I updated my NEW laptop because Windows 8.1 caused a cargo problems and crashes. NEVER AGAIN.

    After refreshing, I could only login with a local that gives me access to anything. My normal password and log in as administrator using stupid windows live.com password no longer works.

    So, I changed the password for windows.live on another PC.

    Now this new password no longer works. WTF?

    I can't access any of my stuff that was installed and stored under the original user/password.

    I can't add a new admin account, I can not do an another drink or fresh install. Nothing. He just guard invited me to the password that it won't take.

    Also, when I searched this problem on the web, I see dozens and dozens of links for this problem.

    BUT when I go to the link, it seems that they have all been removed from answers.microsoft.    TRY to HIDE the PROBLEM?

    Can someone tell me how to get out of this nightmare, so I can access my original account. PLEASE, I BEG YOU!

    Please, I beg you.

    Hello

    Sorry for the delay in response.

    Please take a look at this article and check if that helps.

    http://Windows.Microsoft.com/en-us/Windows-8/get-back-blocked-hacked-account

    http://Windows.Microsoft.com/en-us/Windows-8/forgot-Windows-password

    Here's another thread that has some good troubleshooting steps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-security/why-cant-i-sign-into-Windows-8-with-my-Microsoft/7662ea57-c321-4bfe-84e9-fc9ebb87a44b?TM=1355519512755#_self

    Hope that the information was helpfula and let us know if you need assistance in the future. We will be happy to help you.

  • Access to the C drive after refresh error

    Yesterday when I booted up my pc, I got an error and it started auto repair. Repair auto falied. My C drive is almost full so I used cmd and free space then did an update of the system. The update went well, but after that whenever I try to access the C drive it says: 'access denied '. Under the name it shows "NTFS". Given that windows 8 has been installed in C itself, now I can't open system tools. Not even the properties of the drive C. I tried 'icacls' and 'takeown' but in vain. I had a lot of important things in the C drive, so it would be a real pain to format. I tried to use Linux to mount the drive, still cannot access it.  PS I want to know there is another way, I can access the files and make a backup of them? Or just to resolve "access denied"? Thank you in advance.
    PS. something similar to this topic is SanaMoin

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-performance/c-is-not-accessible-after-a-refresh/b4672f51-59BD-4465-8f66-0c59116c399d

    Hi Sumit,

    Thank you for giving us the opportunity to help you.

    According to the description of the problem, you can't access drive C and get the error "Access denied" after updating.

    You are connected with a Local account or a Microsoft account administrator?

    I suggest you follow the advice given in the below mentioned thread and see if it helps you to solve the problem.

    Can't access the c: drive, error 'access denied '. Problems began after refresh of Windows 8

    Hope that it would help if the problem persists please get back to us with the result of the proposed suggestion and we will be happy to help you.

    Kind regards

  • After refreshing win8 how get lost return programs?

    After refreshing win8 I lost several programs important and got Mc fairy back instead of Pro-Avast, how to make the change?

    All programs and apps not installed in the store are eliminated by design. The only way to get these back comes from rei8nstall the original media or the web site. Hope this helps and if you need any additional aid station and we will be happy to help you.

    The above opinion is mine and does not necessarily reflect that of Microsoft, it's employees, or any other Member of this forum.

    "When we try to take anything by itself, we find it hitched to everything else in the universe."-John Muir

  • printing Photoshop cs6 error there is a mistake in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents. »

    I have a Mac (OS X El Capitan) and Photoshop CS6. The printer is Epson Photo R3000.  When you try to print, I get an error message saying: "there was an error in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents. »

    I don't understand what to do. I hope someone can help. Thanks in advance.

    Press and hold Option + command + shift together you launch Photoshop. You are prompted to delete the current settings. New preferences files are created the next time you start Photoshop.

    Select Yes

    ~ Assani

  • "There was a mistake in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents. »

    There was an error in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents.

    I've chosen a printer. I have re-uploaded and re-installed the drivers and the software, I did the main printer canon, I did

    spare printer. I get the error message. Close the program, open photoshop and I can "print" but not anything else.

    have plugged and replugged. I have tried wireless and plugged in the forums. and still no print photoshop cs6.

    Thank you.. lesson followed julianne kost. which is like this but more easy to follow and it worked...

  • There was an error in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents. Error message in PhotoShop CC

    CC PS print worked well today. I made no changes to the preferences. Between working with 2 projects, the first a fine print, the second gave me this error Message.

    There was an error in the opening of your printer. Print functions will be unavailable until you have selected a printer and reopened all documents.

    Now I checked the updates for my printer, reset my printer, reset preferences PS CC, took my default printer and the last used and restarted. I followed all of the fixes recommended for this question, that I have found here and on the internet. Fine, I can print from any other program. Unfortunately, the error message keeps popping up, and I can't print.

    PS The CC is up-to-date

    Running OS 10.10.2

    HP printer updated

    Help?

    I started a conversation with the support, they took control of my PC and that fixed it.  Was not fast, but they basically reset the PS preferences.  They made sure to back up all my custom templates, forms, actions, etc., before be reset and it worked.

  • What is the effect of the "signature of all other computers or devices?  This remove the software from these machines or simply make it unavailable until this as connected and disconnected (e) other machines used CC on?

    Connect failed

    Impossible to sing in on this computer or device.

    The Adobe ID [email protected] has already been used to activate the software on two other computers or devices.

    0 - retry.  I've already signed out of one of them.

    0 - you sign out all other computers or devices.

    What is the effect of this action? @

    just make it unavailable until this as connected and disconnected (e) other machines used CC on?

    That's exactly what disconnect only. No software is removed or otherwise affected on your computer.

    See error 'activation limit reached' or 'connection failed ' | Adobe products

  • Tool Lasso in CS5.1 will not display line until after I have let go of the mouse

    None of the lasso in CS5.1 tools will show line until after I have let go of the mouse, have tried to update and search on the internet for the same problem. Have also reset all tools to the factory settings and checked for plug ins, uninstalled and restalled program

    Updating your graphics driver and / or disable the OpenGL option in the preferences. Most likely a resource conflict. If you use a Tablet, check the settings there as well. Could be something with the ToolTip to be misinterpreted such as gum or sensitivityy pressure. If this does not help, we need more info on your system, such as the settings of your graphics, what input device you are using and so on...

    Mylenium

  • Apex 4.0 interactive report row view dynamic action "after Refresh.

    Hello

    It seems that interactive report view row do not trigger the event "after refresh.
    I have not tested other events.

    I have taste.
    https://Apex.Oracle.com/pls/OTN/f?p=40323:76

    There is a dynamic action that show the alert by region "after updating' event.

    When you see a row, the alert is not displayed.
    Change record show no alert ether.

    Is it bug or missing feature?

    Kind regards
    Jari

    Hi Jari,

    I consider this a bug/feature missing as well. I filed bug # 10376989.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • During the closure after a browsing session I find several windows behind the window of the main browser I have not opened and they must be closed individually. What is the cause and how can I stop it?

    During the closure after a browsing session I find several windows behind the window of the main browser I have not opened and they must be closed individually. What is the cause and how can I stop it? Edit

    These windows display ads? They could be 'pop-under' designed to show when you are finished with your main window. Orbitz has these, for example. Irritating. I'm not sure of the best solution, i.e., advertising blocker blocker vs.

    If they are not ads, can you think anyway that they are related to the sites you visit?

    In addition, to close a tab (or window, if there is only one tab), you can press Ctrl + w. could speed up the process of their release until you find a real solution.

  • Recently, whenever I try to open Firefox, I get a dialog box: Exc in ev handl: TypeError: brw is not defined (JavaScript Application). Firefox is certainly my default browser

    Question
    Recently, whenever I try to open Firefox, I get a dialog box: Exc in ev handl: TypeError: brw is not defined (JavaScript Application). Certainly, Firefox is my default browser.
    After clicking on OK Firefox opens.

    You can probably get rid of it by disabling McAfee Site Advisor ending Firefox and then restarting Firefox and the reactivation of McAfee Site Advisor, ending at Firefox and restart Firefox. But it would probably be best to uninstall Site Advisor and reinstall (as opposed to the update)...

    Please see the solution in http://kb.mozillazine.org/Problematic_extensions
    "McAfee Site Advisor.

    (Windows): for best results, you need to uninstall McAfee Site Advisor from Control Panel > add/edit programs (programs and features). Restart the system. Then http://www.siteadvisor.com/ reinstalling and reboot the system. Installation of other waste (crapware) suggested applications.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • How to make a Javascript embedded element (embedded MS Excel chart) updates automatically so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that contains an embedded chart in MS Excel. I would like to table automatically update (refresh) to illustrate direct information viewers without having to refresh the entire page. I found that there is a way to activate this via Excel, but with my current subscription can not access this feature. I hope there is a way to do this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a button "Refresh" which refreshes only the embedded section (Excel table) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded worksheet is truly integrated using HTML rather than javascript.

Maybe you are looking for

  • why there is no graphics displayed on thunderbird?

    I don't get all charts in my e-mails. Graphics acceleration is not an active element. Help please. It is the third facility on Win since offered 10 and seems to be a recycling auotmatic package install. Frustrated to say the least.

  • The maximum size of HDD for Satellite Pro 4290?

    My drive is exhausting (Win 98 tells me he has a lot of bad sectors). What I have to climb a 6gig HDD or can I put? If so, what size a disc will be the last address of the BIOS? I think I need a disk 2.5 "9.5 mm, but I don't know if it has all the ot

  • Faxing from El Capitan

    I discovered that fax by OS - X is no longer supported in OS - X (El Capitan). Why Apple without this ability? Why Apple to take the choice to print in black with a color printer? It is very disappointing find new features in an update to find other

  • Run a RT VI, which is recorded on the host programmatically

    What I want to do is simple.  I have a PC host VI and a RT VI which communicate with each other using a network stream.  I want to be able to tell by program the RT VI to run in my host VI, so that I can ensure that endpoints network flow are both se

  • Problem installation update (KB2160841) 66A error code.

    try to install the update of security for microsoft.NET cadre4 on windows XP, windows Server 2003, windows vista, windows 7, windows 2008 Server, windows server 2008 R2 for x 64 systems based on (KB2160841). I tried several times to install and keep