Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is apex:commandButton with apex:actionSupport?

Asked by Clare Matthews Jun 5, 2023 1.1K views 2 answers
Share

About this question

So I'm currently working off the example for apex:actionSupport given in the VF dev docs. All is fine with the example. I am now looking to have a button click initiate the refresh of the counter variable. I changed the VF page to the following:

         
When I hit the command button I'm seeing that the counter variable increments and displays for a couple ms but then gets reverted back. I believe this might have something to do with order of getters/setters interacting with the AJAX refresh? I could be wrong, but I'm looking for an explanation of why this behaviour occurs ( as I'm assuming this is working as designed).

Your answer

2 Answers

Andreeone23 Latest answer

Answered on Dec 31, 2024

 If the getter for the counter variable is recalculating or resetting the value during the page Retro Bowl College lifecycle, it could revert the incremented value.

Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.