Object defaultBlankLabel() { Messages containerMessages = resources.getContainerMessages(); String key = resources.getId() + "-blanklabel"; if (containerMessages.contains(key)) return containerMessages.get(key); return null; }
@SuppressWarnings("unchecked") SelectModel defaultModel() { Class valueType = resources.getBoundType("value"); if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, resources.getContainerMessages()); return null; }