Is there a possibility (via primefaces or js or whatever) to check that my p:remoteCommand
was called by a specific component and condition the action executed depending on that caller component ?
Asked
Active
Viewed 42 times
1

Selaron
- 6,105
- 4
- 31
- 39

Sinda MOKADDEM
- 796
- 2
- 12
- 35
-
1It's not called by a component but by Javascript – Jasper de Vries Dec 20 '19 at 16:26
-
I mean the component that called the remoteCommand via js. For example : `here`, in this case, I would like to capture that the caller was the `` component. – Sinda MOKADDEM Dec 20 '19 at 16:33
-
Sure, use `this` – Kukeltje Dec 20 '19 at 17:16
-
But I want to get the caller id from within the remoteCommand not the component – Sinda MOKADDEM Dec 23 '19 at 10:11
-
1Just pass the caller ID as a parameter to your remoteCommand: https://stackoverflow.com/questions/7221495/pass-parameter-to-premotecommand-from-javascript – Melloware Dec 23 '19 at 11:51
-
@Melloware: you may mark questions as a duplicate if you think it is... – Kukeltje Dec 23 '19 at 19:14
-
I usually don't have confidence to mark duplicate until someone else does. But I added my vote to your duplicate. :) – Melloware Dec 23 '19 at 21:07