public class

ThemeTag

extends MessageTag
java.lang.Object
   ↳ TagSupport
     ↳ org.springframework.web.servlet.tags.RequestContextAwareTag
       ↳ org.springframework.web.servlet.tags.HtmlEscapingAwareTag
         ↳ org.springframework.web.servlet.tags.MessageTag
           ↳ org.springframework.web.servlet.tags.ThemeTag

Class Overview

Custom tag to look up a theme message in the scope of this page. Messages are looked up using the ApplicationContext's ThemeSource, and thus should support internationalization.

Regards a HTML escaping setting, either on this tag instance, the page level, or the web.xml level.

If "code" isn't set or cannot be resolved, "text" will be used as default message.

Summary

[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.MessageTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
[Expand]
Inherited Fields
From class org.springframework.web.servlet.tags.RequestContextAwareTag
Public Constructors
ThemeTag()
Protected Methods
MessageSource getMessageSource()
Use the theme MessageSource for theme message resolution.
String getNoSuchMessageExceptionDescription(NoSuchMessageException ex)
Return exception message that indicates the current theme.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.MessageTag
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
From class java.lang.Object

Public Constructors

public ThemeTag ()

Protected Methods

protected MessageSource getMessageSource ()

Use the theme MessageSource for theme message resolution.

protected String getNoSuchMessageExceptionDescription (NoSuchMessageException ex)

Return exception message that indicates the current theme.