Class RenderDataUtil

java.lang.Object
org.codelibs.fess.util.RenderDataUtil

public class RenderDataUtil extends Object
Utility class for managing render data in web responses. This class provides methods to register values in RenderData objects with proper handling of Entity objects and Collections that may contain Entity objects.
  • Method Details

    • register

      public static void register(org.lastaflute.web.response.render.RenderData data, String key, Object value)
      Registers a value in the render data with the specified key. If the value is an Entity object, it will be converted to a Map using BeanUtil. If the value is a Collection containing Entity objects, each Entity will be converted to a Map. For other types of values, they are registered directly.
      Parameters:
      data - the RenderData object to register the value in
      key - the key to associate with the value
      value - the value to register; can be null, Entity, Collection, or any other object