Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Created January 17, 2013 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatduckk/4559305 to your computer and use it in GitHub Desktop.
Save phatduckk/4559305 to your computer and use it in GitHub Desktop.
public class StringSomethingTypeConverter extends JeraffTypeConverter<String> {
@Override
public String convert(String input, Class<? extends String> targetType, Collection<ValidationError> errors) {
if (StringUtils.isBlank(input)) {
boolean paramSent = getBean().getContext().getRequest().getParameterMap().containsKey(FIELD_NAME)
if (paramSent) {
} else {
}
} else {
return input;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment