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

1
  • 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. Jan 5, 2014 at 10:42

1 Answer 1

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"/>
3
  • thanks, What should be in rerenderAction() function.??
    – Arun SFDC
    Dec 30, 2013 at 7:47
  • Nothing. your rerendAction() is your actionFunction itself which will rerend your pageBlock.
    – brovasi
    Dec 30, 2013 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, 2013 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.