Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Roo: How to Get Roo to Use a Custom Banner When Generating Web Pages

 
Tumaini Kilimba
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
I am currently experimenting with Roo, and one thing I would like to change is the banner that Roo creates on the Roo-generated web interface, I would like to use a custom banner. I know I can do this by going to the '**webapp/images**' folder of the generated Roo project and replace the banner image with one of my own, but I want to know if I can make Roo *GENERATE* the web application with my banner from the start (Roo must get this image from somewhere on my local file system, if I knew where, is it possible to just replace it?), rather than me having to go and fiddle with image files in the generated project...

Any help appreciated.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can change the template that gets created for the header and point it to a different image.

Personally, I wouldn't try to go into the Roo code and change that, because what happens when you upgrade to a newer version of Roo, because you changed stuff in Roo, it will be overwritten with the new stuff.

A simple template change is in one place and done very quickly.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic