Is it possible to build a Widget that could handle its ajax requests alone. without the need to write controller actions to handle those requests ? I think the answer is no.
According to the APIs,"A widget is a self-contained component that may generate presentation based on model data. It is a micro-controller that embeds into the controller-managed views. Compared with controller, a widget has neither actions nor filters. "
My point is :
How could the widget be some sort of controllers if it couldn’t deal with user interactions ? in the other hand, how could a widget be self-contained if we need to write some code outside to treat ajax requests.
What do you think ?