Jan 29th, 2009, 02:07 PM
Spring +Tiles2 call second controller
I've spent two evenings trying to figure out this, but cant seem to find a solution.
Basically, I want to use Tiles2 to create a modular website where I can include different parts on different pages. The problem arise when these parts need data from a controller.
If I call for example mysite/info, and the info page besides its own information includes a news page which needs stuff from the database, it feels "wrong" to have to care about this in the Controller that produces data for the info page. The news module can be included in different places and should in my opinion have its own controller.
But I cant find any way to call this controller when the news page is loaded by tiles... is this possible in any way?