1

I'm currently developping an application with Spring 3 and Tiles 2.

I have a question regarding Tiles and the dynamic contents.

I would like to have a "header" template, that contains a menu that is populated with database information.

As the menu is available through the application, i would like not to put the information in the request controller.

Do you have any information ?

Thanks

oveka
  • 57
  • 5

2 Answers2

0

The solution was to use a ViewPreparer on the menu definition.

oveka
  • 57
  • 5
0

Check out this tutorial that can help you with

  • spring to tiles integration,
  • definitions with wildcards,
  • implementing a fallback pattern using the OptionsRenderer, and
  • definitions composition.

http://tech.finn.no/the-ultimate-view-tiles-3/

mck
  • 1,152
  • 10
  • 10