---
title: "Adding a new Theme to a Spring Roo Project"
date: 2011-02-11T07:43:57+00:00
author: "poornerd"
canonical: https://www.poornerd.com/2011/02/11/adding-a-new-theme-to-a-spring-roo-project/
source: Raw Markdown twin of the HTML article; content is the original source.
---
Yes it would be good idea for a simple addon, but until someone (or myself) get around to writing one, here is the solution for the impatient:

  1. go to **/src/main/webapp/WEB-INF/classes** and duplicate the **standard.properties** as your new theme &#8211; for example: **new.properties**
  2. Edit the **/src/main/webapp/WEB-INF/i18n/messages.properties** and the name of your Theme: <pre class="brush: plain; title: ; notranslate" title="">global_theme_new=My New Theme</pre>

  3. Next edit **/src/main/webapp/WEB-INF/tags/util/theme.tagx** and add your new theme (before the last <pre class="brush: plain; title: ; notranslate" title="">&lt;/span&gt;</pre>
    
    .  For Example:</li> </ol> 
    
    <pre class="brush: plain; title: ; notranslate" title="">&lt;c:out value=" | " /&gt;
      &lt;spring:url var="url_theme3" value=""&gt;
        &lt;spring:param name="theme" value="new" /&gt;
        &lt;c:if test="${not empty param.page}"&gt;
          &lt;spring:param name="page" value="${param.page}" /&gt;
        &lt;/c:if&gt;
        &lt;c:if test="${not empty param.size}"&gt;
          &lt;spring:param name="size" value="${param.size}" /&gt;
        &lt;/c:if&gt;
      &lt;/spring:url&gt;
      &lt;spring:message code="global_theme_new" var="theme_new" /&gt;
      &lt;a href="${url_theme3}" title="${theme_new}"&gt;${theme_new}&lt;/a&gt;
</pre>
