You need to sign in to do that
Don't have an account?
Semira@gmail.com
When to use actionRegion, ActionSupport and especially ActionFuction
Okay, so I have been working with VF pages for a while now. I understand that ActionRegion is used when you need to render another part of the pageblocksection without having to fill in any required field. So few questions are:
1. Are actionSupport always needed for actionRegion? Why?
2. What is actionSupport? or more specifically when would you use that without actionRegion. Give me a logic.
3. What is actionFuction? When would you use it and Why vs. using actionRegion or support?
4. Does actionFuction always need JavaScript and why? As in <script></script> using this. When would you not use that?
I have read and re-read the Salesforce library and trying to differenciate when to use what but fail to understand it. Please if you can, tell me when NOT to use those. I think that would help a lot.
1. Are actionSupport always needed for actionRegion? Why?
2. What is actionSupport? or more specifically when would you use that without actionRegion. Give me a logic.
3. What is actionFuction? When would you use it and Why vs. using actionRegion or support?
4. Does actionFuction always need JavaScript and why? As in <script></script> using this. When would you not use that?
I have read and re-read the Salesforce library and trying to differenciate when to use what but fail to understand it. Please if you can, tell me when NOT to use those. I think that would help a lot.
http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
All Answers
http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
If you are familiar with some other web language then:
1) actionSupport is like doing an ajax quey when a event happen to a visualforce component and tags component like "onchange", "mouseover" etc
2) actionRegion is used to specifiy which part of a apex:form need to be part of controller state.
3) actionFunction is used when there is a complex javascript implementation and you do not want to perform action by commandbutton or commandlink etc.
4) actionFunction is built ot call by javascript because there is no direct input when using actionfunction. If you have direct input like commandbutton etc then actionfunction is not required.
Hope it helps!
http://dattarajsfdc.wordpress.com/