The main purpose of this blog is for me to build up snippets of information I build up over time and want to recall whereever I may need to. An online log book really. There may be inaccuracies in my blog entries too, but I will update each entry as my understanding on subjects evolve.
Thursday, 16 December 2010
iText beware!!!!
Even though it advertises itself as 'free' and 'open source'. If you use this library for commercial use you have to pay for it (and it is not cheap).
Friday, 3 December 2010
Spring MVC JSR 303 Empty Strings
/**
* Ensures empty strings come in as NULL's
*
* @param binder
*/
protected void initBinder(final WebDataBinder binder) {
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
binder.registerCustomEditor(Date.class, new StringTrimmerEditor(true));
}
* Ensures empty strings come in as NULL's
*
* @param binder
*/
protected void initBinder(final WebDataBinder binder) {
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
binder.registerCustomEditor(Date.class, new StringTrimmerEditor(true));
}
Subscribe to:
Posts (Atom)