Hi there,
I would like to know if there is any way of supplying a parameter converter to a SqlQuery subclass (actually a MappingSqlQueryWithParameters subclass) so that I don't have to convert an...
Type: Posts; User: kenevel; Keyword(s):
Hi there,
I would like to know if there is any way of supplying a parameter converter to a SqlQuery subclass (actually a MappingSqlQueryWithParameters subclass) so that I don't have to convert an...
Hi Costin,
Thanks for your reply. I'm unfortunately too busy to take on another project (in addition to the ones I'm working on already ;¬). I've had a chat with a guy at work who seems keen but...
Right gents,
The problem with the approach of extending a generics-backed interface is that when the cache-module's annotations-reader tries to recover the method annotations, it's not trying to...
Hi there,
I'm trying to get the spring modules cache to work with my DAO classes, which are based on a generics-driven base class. I was wondering whether anyone else has had problems with this...
Hi mate,
I'm afraid I'm not going to offer any further solution to your problem - in fact, I think that the the wrapper listener you've proposed is a good way to solve this particular problem.
...
I think the closest you're going to get to this is to use an interceptor registered on your UrlHandlerMapping.
One note of caution, though: this sounds like a really perverse design pattern, IMO....
You should simply return a ModelAndView containing the view name of the form view, surely? Is there more to your question than that?
Mike
Lazy loading is a problem that permeates pretty much all Hibernate development. The chances are that the unexplainable lazy-loading exceptions that your JSP developers are experiencing are in fact to...
Read this again!
You could either use ThreadLocal storage for the user credentials (be extra sure to make sure these are removed at the end of the request - also be aware that this isn't really a great way of doing...
This is fairly simple, you just need to write them into the body of the JSP:
var messageResolver = new Array();
messageResolver["login.error"] = "<spring:message...
Hi mate, how is any framework supposed to know which phone number is which if you just store them in a set?
I suppose if you're using hibernate and have a collection of phone numbers mapped as...
Similarly, +1 for JSON-RPC, see my earlier post at http://forum.springframework.org/showpost.php?p=43707&postcount=3
Pretty much. I seem to recall there being an overloaded method which allows you to specify a default message, so you could hard-code your messages that way.
Problems like this usually result from initBinder not being called, and the Errors instance not being bound to the form. I could tell you how do ensure this happens in Spring Webflow, but it's been a...
Of course you can start a sub-flow in a pop-up - it's just a new window with a new request in it.
However, getting it to be modal will require some real magic, I'm not sure any browsers will let...
Bob,
Why not have two fields? One written as text into the HTML with the asterisks obscuring the CC number, and a text-input field for entering a new number. Use a couple of radio buttons for...
Can you give another example then because I'm having a hard time trying to imagine what you want to do!
Surely this is done using an input type="password" tag?
Consider whether you really want to write someone's password into an HTML page - these can be cached which would allow someone else to read...
I would write some sort of custom tag which could sit inside your <c:forEach ...> loop and do the necessary processing. As for the ServletRequestDataBinder, do read the docs as I'm certain that good...
It is possible to build web-applications without ever having to specify whether http:// or https:// should be used - you simply have to have two Apache virtual-hosts, one configured to redirect any...
Hi Ollie,
Have you thought of using Tiles with Spring MVC? It allows you to specify logical JSP names, and the templating takes care of the headers, footers, menus etc...
Mike
Err... not sure about that as you'll need something which can reach the ServletContext object in order to obtain a reference to the ApplicationContext. Fortunately you can do this .perform()
...
No, you define your tiles-controller in the tiles-definition XML file as usual. By defining it here you cannot use dependency injection at the tiles-controller creation-time.
...
...
Hi Jörgen,
Interesting question, as presumably the other frame should change in response to POSTing the form data. I think going to have to POST the form and then somehow (re)load the...