Is re-rendering supported in the Salesforce1 app?

Since most navigation is done via javascript it seems that links etc. using onclick do not work after being re-rendered, and it is standard practice for browsers to execute any injected javascript in the name of security.

That said, if I use rerender without a target (i.e. I want to refresh the whole page) then nothing actually gets redrawn. Is there a known-working method for dealing with this situation other than converting everything to use remote actions/objects?

  • 9
    You want to avoid re-rendering if at all possible in a mobile app. It's very data intensive and slow. Check out the slide deck from Wednesday's webinar titled Visualforce in Salesforce1: Optimizing your User Interface for Mobile slideshare.net/developerforce/…. The video will be on YouTube eventually.
    – crmprogdev
    May 16 '14 at 16:33
  • 2
    You seem to be asking in relation to VisualForce embedded in Salesforce1. In which nothing should really be different in regards to the VF portions. Are you still having issues here? Can you reproduce them outside of S1?
    – Kris Gray
    Apr 27 '15 at 19:30
  • 1
    Should we close this question till you see it again and can give me a bit more info?
    – Kris Gray
    Apr 28 '15 at 0:03
  • 2
    I'll try and recreate it later on today. The number of upvotes would suggest that quite a few people have seen this issue.
    – Matt Lacey
    Apr 28 '15 at 1:09
  • 1
    Hows that repro coming? :)
    – Kris Gray
    Jul 5 '15 at 3:57

I think the best you can actually do is to recreate a subcomponent with updated attributes dynamically as Doug Chasman describes in his answer here

How to set up views and navigation in Lightning?

    $A.createComponent(this, { parameter: component.get("v.updatedValue" }, 
        function(view) {
           var content = component.find("auraIdToBeUpdated");
           content.set("v.body", view);

Re-creation is defacto a rerender.

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.