예제 #1
0
 public static boolean shouldRenderAttribute(final String attributeName, final Object value) {
   if (isDefaultAttributeValue(value)) {
     return false;
   }
   if (JsfConstants.COLSPAN_ATTR.equals(attributeName)) {
     final Integer integerValue = IntegerConversionUtil.toInteger(value);
     if (integerValue == null) {
       return false;
     }
     if (integerValue.intValue() <= 1) {
       return false;
     }
   }
   if (JsfConstants.ESCAPE_ATTR.equals(attributeName)) {
     return false;
   }
   if (JsfConstants.ID_ATTR.equals(attributeName)) {
     return shouldRenderIdAttribute(value.toString());
   }
   return true;
 }