I have a menu.html file and a menucontroller.java class that has controller methods for the menu.
Now I want to include that menu as a fragment in several other html pages.
But when I do that, seems the controller methods of the menu never get called.
So, binding doesn't work and I get this error:
Neither BindingResult nor plain target object for bean name 'mybindingobject' available as request attribute
So my question is:
Isn't it possible to have controller methods for a fragment file?
If that's the case, how to implement server side methods for fragments?