Great, I'll check these things out, thanks.
Type: Posts; User: jlee; Keyword(s):
Great, I'll check these things out, thanks.
I think these guys have a pretty good start on something similar.
http://www.opensails.org/
Hi all,
I wanted to get some opinions on development and reloading of a web app context. So far I've developed apps for clients and myself where it get's very tedious to have to reload the web app...
This is absolutely correct. I think this is the issue I was overlooking. So I guess it's back to a little refactoring. Thx!
I've been reading some of the various posts and the test chapter in the Spring docs and am looking for the right way to test controllers. I should add that I'm not just testing the basics of the...
Well, that's because setValue gets a String[]. You'll have to then take each String, lookup you object (usually the String is a id of some sort) and then add that to a new Set. The fact that you're...
Hi Gunther,
One feature Spring touts at the data layer is unified exception handling. From the HibernateTemplate in the Spring javadoc:
'[HibernateTemplate is a ]Helper class that simplifies...
I *think* your problem lies here in your controller custom editor registration:
binder.registerCustomEditor(Autor.class, new AutorSupport());
When it should be:
I think I might see why. If your SELECT box is multiple, then the property editor setAsText will not be called as the setValue method is the one that can accept a String[], which is what is passed on...
Actually I got all this working by extending a Spring CustomCollectionEditor. In my object, Spring calls the overridden setValue method and then passes me in a String[] that has all the multiple...
Matt, thanks, tried setting singleSession to false and read up and down thru both the interceptor and filter; no go. I decided to try just the filter for now.
web.xml
<filter>
...
Getting a LazyInitializationException on my pages:
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize
a collection - no session or session was closed
at...
I think this starts me in the right direction. Wasn't really thinking of property editors when I probably should have.
I'm starting to refactor my app after its 1.0 release. One thing I'm trying to do is simplify and cut down on code. When I started the project, it was initially done using Struts, but about a quarter...