Blog
Custom Date Formatting with Spring Data Binding
Submitted by Aaron Longwell on Mon, 2005-06-13 16:38.
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception
{
super.initBinder(request, binder);
binder.registerCustomEditor(Date.class,
"estimatedCompletionDate",
new CustomDateEditor(new SimpleDateFormat( "M/d/yy"), true)
);
}
Data Binding to Multiple Records in Spring (with Velocity)
Submitted by Aaron Longwell on Mon, 2005-06-13 14:54.A client came to me recently asking for modifications to their web application. The application has a many to one relationship; we'll call it the "one" side a Studio, and the "many" side's elements "Films". Updated information for films (box office numbers, tickets sold, etc) comes in batches. Searching, selecting and editing Films one at a time is inefficient, so the client requested batch editing ability.
We started from the user's perspective and decided a spreadsheet-style interface would be most efficient. Users will perform a search to get a list of Films, then edit them in the spreadsheet interface. This required data binding to multiple database records simultaneously.
