3

I have a requirement where I need to render component from visualforce remoting.

If I would have used actionsupport instead of visualforce remoting, I can use rerender attribute to render certain pageblock. I am wondering how to render pageblock on click of javascrip remoting value

  • Can you elaborate on your solution design ? To me it is strange that 1 server-client round trip should fire off another one to get the result you want. – Samuel De Rycke Jan 5 '14 at 10:42
2

Create an actionFunction without action which only rerends your pageBlock and called it from your javascript Remoting.

Visualforce.remoting.Manager.invokeAction(
            '{!$RemoteAction.MyController.doSomething}',
            recordId,
            function(result, event)
            {
                rerendAction();
            });

<apex:actionFunction name="rerendAction" rerender="myblockToRerend"/>
  • thanks, What should be in rerenderAction() function.?? – Arun SFDC Dec 30 '13 at 7:47
  • Nothing. your rerendAction() is your actionFunction itself which will rerend your pageBlock. – Cloud Ninja Dec 30 '13 at 7:50
  • Thanks ... can u help me in this which I am findint difficulty after rendering pageblock salesforce.stackexchange.com/questions/23244/… – Arun SFDC Dec 31 '13 at 8:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.