AdfCustomEvent.queue does not provide several events (11.1.1.3.0)

I created a JSF page in which I use ADFCustomEvent.queue to call a method in a pod of support from JavaScript code. It seems, however, that if several events are queued, method support the bean is called only once. This is expected behavior?


For example, my JSF has simply a command button. When you click on it, the "clientListener" calls a JavaScript function. This JS function queue of events, and the "serverListener" sends those on the server. (Code example is below).


< af:document id = binding = "#{"d1"backing_eventtest.d1}" >
< af:form id = binding = "#{backing_eventtest.f1"f1"}" >
< af:commandButton text = "events."
Binding = "#{backing_eventtest." CB1}"id ="cb1 ".
partialSubmit = "true" >
< af:clientListener method = "OnButtonClick" type = "click on" / >
< af:serverListener type = "eventServerListener".
Method = "#{backing_eventtest.handlePageMessage}" / >
< / af:commandButton >
< / af:form >

< af:resource type = "javascript" >
OnButtonClick() {} function
var BTN = AdfPage.PAGE.findComponent ("cb1");
AdfCustomEvent.queue (btn, "eventServerListener", \{message:"Hello 1" \}, true);
AdfCustomEvent.queue (btn, "eventServerListener", \{message:"Hello 2" \}, true);
AdfCustomEvent.queue (btn, "eventServerListener", \{message:"Hello 3" \}, true);
AdfCustomEvent.queue (btn, "eventServerListener", \{message:"Hello 4" \}, true);
AdfCustomEvent.queue (btn, "eventServerListener", \{message:"Hello 5" \}, true);
}
< / af:resource >
< / af:document >


In the method of handlePageMessage of the bean of my support, the message 'Hello 5' only ever comes through. I was expecting sort all 5 events to come through.

Are my expectations wrong, or is it a "problem"?

Published by: user614824 on May 28, 2010 09:42

I guess that your expectations are wrong here. The framework works as expected.
The doc (5.4.3 what you will need to know the data Marshalling and Demarshalling)

When you send information from JavaScript to Java, JavaScript data objects are converted (moult) in XML, which is then analyzed back or unmarshaled into Java objects on the server-side. For example, consider a JSF page that contains a commandButton control element whose ID is cmd. When a user clicks on the commandButton control component, the customer must communicate with the server that an actionEvent was triggered by this specific commandButton control. In terms of requestParameter, information is mapped with the key using the format event. + id, where id is the ID of the component. The key to map to the commandComponent requestParameter would therefore be the XML string that is stored as a value of the event.cmd key.

This part of the documentation speaks of how events are passed to the server. Because an event is placed into the foreground of requestParameter (which is a java.util.map) each of your events overrides that you queued before. You will see then that the last of them.

Timo

Tags: Java

Similar Questions

  • Why Apple does not provide a 10 W charger with the air of the iPad 2 when the barn of the computer and hundreds of people on the web say he needs a 12 W charger because Apple has changed their software and 10 W very slow iPad charges.

    Why Apple does not provide a 10W for I pad air 2 charger when the barn of the computer and hundreds of people on the web say that the 10 W does not work and it takes a 12 W charger.  Burning of the computer told me that Apple has changed their software on the iPad and now requires a 12 W charger.

    So you're claiming Apple is selling iPads with a charger that doesn't work?

    A charger 10W works perfectly well. A 12W charger can be slightly faster to load under certain conditions.

  • "This website does not provide identity information" during video playback.

    Hello, I have sign of insecurity connection during playback of youtube videos, either on facebook or youtube (for other sites, I don't know yet). When I put the pointer at him, he says "this website does not provide identity information. Why is this happening?

    When you're on https://youtube.com and start playing a video, it will be probably recovered by a non-secure http://-connection (because of pressure on the resources of other servers). even if a single element on the page (the video in this particular case) is not loaded via a secure connection that will be reflected in the indicator of site security and that's why you get the message.

  • I am not able to connect to my facebook account and the error message reads "this website does not provide information on property." Help, please

    I am not able to connect to my facebook account and the error message reads "this website does not provide information on property." Help, please

    only title bar opens and nothing else... Please help

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Also check the cookie exceptions.

  • Security - identity of Web Site - owner (this website does not provide ownership information)

    Hello!

    I have a website (www.lundbeckconsulting.no) with a valid SSL certificate, but Firefox says "this website does not provide information on property. Then. How can I provide property information?

    For the most part, secure site no longer have it. Don't worry about this.

  • Printer all-in-one HP 5520: document in the queue does not print

    Printer all-in-one HP 5520: Document in the queue does not print

    Hi Anita,.

    Welcome to the Microsoft community where you can find all the answers related to windows.

    According to the description, you are having problems with printing.

    1. do you get an error message when you try to print?

    2. is the problem with offline or online printing mode?

    Perform the steps in the link and check.

    Why can I not print?

    Meet us if you encounter problems while printing or any other problem of Windows, and we would be happy to help you.

    Good day!

    Hope this information helps.

  • Why microsoft does not provide the product key for windows 8.1

    I have genuine windows 8 so if Microsoft gives the free update to windows 8.1 store so why he does not provide the product key for windows 8.1 so that we can update to it through disk offline

    If you want to install Windows 8.1 clean, but have only a product key Windows 8, you must install Windows 8.1 with a placeholder key - keys of the placeholder will be not - activate and change your product key for Windows 8 key.

    The placeholder keys are:

    8.1 Windows placeholder - core 334NH-RXG76-64THK-C7CKG-D3VPT
    8.1 Windows placeholder - pro XHQ8N-C3MCJ-RQXB6-WCHYG-C9WKB

  • serial for Illustrator CS6 Canada-French number does not provide an English version: what do I do?

    serial for Illustrator CS6 Canada-French number does not provide an English version: what do I do?

    If you need to change the language of what you bought, you can ask for an Exchange if you follow the instructions on the following link:

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Order-Product-Platform-Language-swap.htm

  • Alienware 17 R2 in brick after that Dell does not provide support

    Hi all

    After having had several contacts with the Alienware support by phone about a is not fan of work that I have posted my question in this forum on 29 November. Alienware support did not provide a potential solution since 3 days ago said fan problem due to my system to block during a BIOS flash. Now my system seems to have damaged the BIOS and does not start even more.

    I'm extremely dissatisfied with dell technical support. How is it possible that after nearly two months no service has been provided, even if my product is still under warranty?

    If anyone has an idea how to fix damaged BIOS on an Alienware 17 R2 it would be really appreciated.

    I had a similar problem. The solution is here:

    You do not need actually to plug the battery, you can also leave it can work to dry, and then go ahead with the procedure...

    I hope this helps.

    PS: you need the right BIOS file of course.

  • Update of root certificate does not (error CAPI2 event ID 60)

    Hello

    I recently did a clean install of Windows 7 SP1 on a new system.
    I noticed that there are sites including https / SSL certificates do not seem valid where I don't expect it (for example BBC laboratories), using the two Chrome and IE.
    After some searching on the forum of other messages, I followed it down to a problem with Windows 7, do not automatically update root certificates installed. Specifically, using MMC event logging, CAPI2 event ID 60 (store) returns 5 "access denied." This causes then event ID 11 and 30 to not like the certificate chain fails to build and check.
    Other points to note:
    • Normal Windows updates work fine
    • Most of the sites using https / SSL works fine (i.e. a root certificates are installed with success - if those provided with Windows or have been updated since the installation I don't know)
    • I tried to disable all my firewall / antivirus programs where they prevented updates, no effect
    Anyone know a fix for this - I don't really want to having to perform a complete reinstallation :(
    Thank you!

    Thanks sirot,.

    Unfortunately, this does not work.
    In the end I just did a re-complete installation of Windows which seems to have solved the problem.
  • my calendar does not show the events back - but they are on my Macbook Pro

    My iPhone calendar does not display the back events before the current month - they are deleted or hidden? - but they still exist on my MacBook Pro.  How can I restore the history in the iPhone calendar?

    Try the settings > Mail, contacts, calendars > calendars > synchronization > all events - on the phone.

  • FCPX does not open recent events following updated the OS. Where are they?

    Hey guys... I just did a clean install on the operating system, (although always with Yosemite), after going with a hard drive in addition to the solid state. I had to - my Apple Quad Core Intel Xeon Pro (early 2009) was running slow, it was impossible to get anything done. It is faster now and who is therefore the good news. I'm on 10.10.5. The Processer is 2 x 2.93 GHz. memory is 17 GB. 1066 MHz DDR3 ECC. Graphics card is NVIDIA GeForce GT 120 512 MB.

    Final Cut Pro X (version 10.2.3) will not find or show me any of the recent events and projects. I'm nervous because we are talking about a special project that was a year in the making. I would not have expected this much trouble and I know there's a protocol with the Apple software, but still, it's maddening. I moved the RAW files, but no matter where I point the app to look at, it's problematic. He is just a much older event with sporadic files. I tried to reissue of links and different opening, FC and the browser does not. I have dialog boxes telling me I don't have permission, or to save the single file, he sees in another place. It's the proverbial rabbit hole.

    So, any help you can offer would be greatly appreciated. I really need to get back to work!

    Keith

    What version point of? It is pre - 10.1? Major changes in the application. You need to update the projects and events.

    http://www.fcpxbook.com/updates/101/101libraries.html

  • LabVIEW digital control does not raise an event changed value when the button entry is hit

    I used to be able to type a value in a numeric control of LabVIEW, then press 'Enter' to trigger an event "changed value".  Then at some point, this no longer works.  I have to click elsewhere to trigger the event of value has changed.  The up and down arrow keys work always, but just typing a number then press enter does not work.  Is this a configuration settings got accidentally changed?  Help, please!


  • Windows Live Calendar does not show daily events

    Original title: calendar does not display the daily events

    Windows live calendar shows only a small icon on Sunday.  The events are listed in the details, but he no longer appear on every day.  Tried rebooting, see more, etc.  How can I get the events to show every day again?

    Hi juliemortimer,

    For more specialist on this question help, post your query on the Windows Live Forum.

    Windows Live Forum - http://windowslivehelp.com/product.aspx?productid=15

  • How to send when the access Internet (SES) provider does not provide an SMTP server?

    Help!

    I just changed provider, to find that my new provider does not have a server address to use for outgoing e-mail. I am currently using Windows Live Mail on Windows 7. I don't seem to have any kind of Outlook on my computer. I have the suite Office home/student who does not have Outlook in any form. I have my own e-mail address. Can anyone offer any help or advice on how I can begin to send e-mails. I can receive emails straight.

    [Original title: e-mail accounts.]

Maybe you are looking for