Class FacesFunctions


  • public class FacesFunctions
    extends Object
    Static methods that can be used within XHTML pages, e.g. xi:escapeHTML('<strong>').
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • FacesFunctions

        public FacesFunctions()
    • Method Detail

      • enumConstant

        public static Enum<?> enumConstant​(String enumClass,
                                           String name)
        Gets the enum constant of the specified enum class with the specified name.
        Parameters:
        enumClass - The fully qualified enum class name.
        name - The name of the enum constant.
        Returns:
        The enum constant.
      • escapeHTML

        public static String escapeHTML​(String value)
        Parameters:
        value - Value to escape.
        Returns:
        The value with HTML escaping applied.
      • toJsonString

        public static String toJsonString​(Object value)
        Parameters:
        value - A value to stringify.
        Returns:
        A JSON string from the given object.