• Post Reply Bookmark Topic Watch Topic
  • New Topic

design query for website using spring and velocity for views  RSS feed

 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The website in question will have a base .vm(velcoity), which will contain child views each of which handling different views, viz. banners, lists, promotions etc.

I have a confusion here, from what I can see I have the following option

1) Impletement a controller for each view. Thus i end up with a BaseController for the top level index.vm and then BannerController, ListController, UserController etc. I then ensure populating of all views when the site loads by further implementing DWR calls or something similar to the controllers.

Is there a way to use just one BaseController instead of this army of controllers that I'll have to implement? I am also not sure on how the get the composite view pattern implemented using velovity. becuase my child views will be rendered only if the model has been passed to the .vm being parsed. I am a bit confused in which way to go. Due to restrictions on the environment where the application will actually run I have to make do with velocity, java script and the like. Please help.

If at all there is a better way please let me know.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!