Class FormatAwareDecorator

java.lang.Object
org.kuali.rice.kns.web.ui.FormatAwareDecorator
All Implemented Interfaces:
org.displaytag.decorator.DisplaytagColumnDecorator

@Deprecated public class FormatAwareDecorator extends Object implements org.displaytag.decorator.DisplaytagColumnDecorator
Deprecated.
KNS Struts deprecated, use KRAD and the Spring MVC framework.
See Also:
  • Constructor Details

    • FormatAwareDecorator

      public FormatAwareDecorator()
      Deprecated.
  • Method Details

    • decorate

      public Object decorate(Object cellValue, javax.servlet.jsp.PageContext pageContext, org.displaytag.properties.MediaTypeEnum mediaType) throws org.displaytag.exception.DecoratorException
      Deprecated.
      Empty values don't show up properly in HTML. So, the String " " is substituted for an empty or null value of cellValue if mediaType is MediaTypeEnum.HTML. If mediaType is not
      invalid reference
      MediaTypeEnum.HTML
      and cellValue is not null, then CellComparatorHelper.getSanitizedValue(cellValue.toString()) is returned.
      Specified by:
      decorate in interface org.displaytag.decorator.DisplaytagColumnDecorator
      Parameters:
      cellValue -
      pageContext -
      mediaType -
      Throws:
      org.displaytag.exception.DecoratorException