From a57202deee6425678114230db79f47909fd719bb Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 21 Feb 2018 19:17:00 +0100 Subject: [PATCH] TheCoder4eu/BootsFaces-OSP#916 added the "event" parameter for Firefox compatibility --- src/main/webapp/forms/RemoteCommand.xhtml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/forms/RemoteCommand.xhtml b/src/main/webapp/forms/RemoteCommand.xhtml index 72975563..3f03adcf 100644 --- a/src/main/webapp/forms/RemoteCommand.xhtml +++ b/src/main/webapp/forms/RemoteCommand.xhtml @@ -39,7 +39,7 @@ class="brush: xml; toolbar: false;gutter: false; first-line: 1"> - +
@@ -79,7 +79,7 @@ - +
You've triggered the remoteCommand #{remoteCommandBean.counter} times.
@@ -95,6 +95,12 @@
  • <b:remoteCommand name="setCounter" parameters="initialValue,step" /> generates the JavaScript function setCounter(initialValue,step).
  • +

    Implicit parameter "event"

    +

    The last parameter is always the event. This parameter is added automatically to the parameter list. It's necessary to + call an AJAX request and it's useful in many other situations. It's a good idea to pass the event when you're calling + the function, even though the AJAX engine usually also works without it. In this case, the event passed to the AJAX engine is + undefined, which may or may not cause problems.

    + @@ -102,8 +108,8 @@