+ Start a Discussion
Semira@gmail.comSemira@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. 
Best Answer chosen by Semira@gmail.com
Ramu_SFDCRamu_SFDC
The following article might answer few of your questions if not all

http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html

All Answers

Ramu_SFDCRamu_SFDC
The following article might answer few of your questions if not all

http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
This was selected as the best answer
AshwaniAshwani
actionRegion, ActionSupport and ActionFunction are build over Ajax call-out. 

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!
Semira@gmail.comSemira@gmail.com
Thank you both. Now that I understand these a little better, what I was trying to achieve is not going to happen or more work than I though. Sigh!
Akshay DeshmukhAkshay Deshmukh
you can check my post at following link for action:region tag
http://dattarajsfdc.wordpress.com/