1

I have a VF page where remote action javascript and record chatter enabled. In chatter we have added publisher action using VF page. When I keep both VF Remote and publisher actions together in page remote action error is happening called classname not found. If I remove the publisher action from page layout then the remote action is working fine. Anybody face this issue before? Is it a salesforce bug?

VF code

 <apex:page id="pg"  standardController="Decision__c" docType="html-5.0" extensions="DecisionView" title="Finger Tip" tabStyle="Decision__c">
 <chatter:feedWithFollowers  entityId="{!$CurrentPage.parameters.Id}" id="chatter"/>   
  <a href="" onclick="test1()">Click</a>
  <script>
        function test1(){ DecisionView.Test(function(result,event){alert(2)})}

  </script>
</apex:page>

Controller

 public class DecisionView{

   @remoteAction
    public static void Test(){
    }
  }
  • 3
    could you post some code ? – anmrk Apr 8 '14 at 8:43
  • Posted the code in siple form – Shebin Mathew Apr 8 '14 at 9:49
  • 1
    change your controller and method scope to global. – anmrk Apr 8 '14 at 9:52
  • I did but its not resolved – Shebin Mathew Apr 8 '14 at 10:16
  • Visualforce.remoting.Manager.invokeAction( '{!$RemoteAction.DecisionView.Test}',function(result,event){alert(2)} ); is working – Shebin Mathew Apr 8 '14 at 10:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.