Posted by: fcepeda on: November 6, 2008
Aware of the application context in the service layer.
Last night, I spent a few hours understanding how to load a file from a class in the service layer of my webapp that did not have access to the application context. I started using DefaultResourceLoader class to load the file with:
DefaultResourceLoader loader = new DefaultResourceLoader();
File file [...]
Posted by: fcepeda on: September 16, 2008
These last two weeks I’ve been re-working on dynamically binding a list of objects using SpringMVC. My goal is not to loose the elements in the collections when an error happens in the submission of the form. Right now I am adding and deleting collection elements using jQuery, and DWR excellent javascript libraries by the [...]
Posted by: fcepeda on: February 12, 2008
Doubt:
I develop a java web application that uses a lot of type objects. For example, Object Visit has a property state that could be Programmed, Done, Cancelled, etc… The current solution for this is to have a table in the DB representing the state of the visit and a FK from the table visit to [...]