Class SplibThymeleafMessageUtil

java.lang.Object
jp.ecuacion.splib.web.util.SplibThymeleafMessageUtil

@Component("msgUtil") public class SplibThymeleafMessageUtil extends Object
Provides localized messages called from thymeleaf.

This calls PropertyFileUtil. The existence of the class doesn't prevent you to use #{...}.

  • Constructor Details

    • SplibThymeleafMessageUtil

      public SplibThymeleafMessageUtil()
      Constructs a new instance.
  • Method Details

    • get

      public String get(Locale locale, String id, String... args)
      Gets message or itemName from the specified id.
      Parameters:
      locale - locale
      id - id
      Returns:
      String