Class MessagesBean

java.lang.Object
io.goobi.viewer.managedbeans.MessagesBean

@Named @RequestScoped public class MessagesBean extends Object
JSF request-scoped backing bean providing utility methods for message key generation, translation lookup, HTML sanitization, and message parameter substitution for use in Facelets templates.
  • Constructor Details

    • MessagesBean

      public MessagesBean()
  • Method Details

    • createMessageKey

      public String createMessageKey(String... strings)
    • cleanHtml

      public String cleanHtml(String html)
    • addMessageParams

      public String addMessageParams(String msg, String... params)
      Parameters:
      msg - message template containing {0}, {1}, ... placeholders
      params - values to substitute into the template
      Returns:
      msg with params