@RemoteAction Scope | Visualforce Page | Non-Global Component | Global Component | iframe | Access Across Packages |
---|---|---|---|---|---|
Global Remote Method | Allowed | Allowed | Allowed | Allowed | Allowed |
Public Remote Method | Allowed | Allowed | Error | Error | Packages must share the same namespace. Method must have the @namespaceAccessible annotation. |
Top Level Container | ||||
---|---|---|---|---|
@RemoteAction Accessed From | Visualforce Page | Non-Global Component | Global Component | iframe |
Global Component | Allowed | Allowed | Allowed | Allowed |
Non-Global Component | Allowed | Allowed | Allowed only if non-global component doesn't include public remote methods. | Allowed only if non-global component doesn't include public remote methods. |
<apex:include> <apex:composition> | Allowed within the same namespace; error if namespaces are different, and the included page or its child hierarchy contains public remote methods. | n/a | n/a | Error |