Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Page pre-controller is getting called on form submit
System
Hi
I have implemented a controller call on a form submit. Weirdly a page pre-controller configured on the same page is also getting called on the form submit. is this normal or am i missing something? if it is then is there a way to avoid the pre-controller call.
Regards
Mohit
Find more posts tagged with
Comments
AlexC
That is correct behavior. When a page is viewed, site controller for that site is executed first, then page controller for that page, then component controllers if a component needs to be rendered, or component that is not cached or component that is the target of a submit. Post page controller and post site controllers are executed as well after the client receives the page.
vpatel
As Alex pointed out, that is the correct behavior. Not knowing exact details and assuming dont want the entire page to refresh: consider using AJAX to refresh just the component and not the entire page.
My $0.02!