I think he was saying the spring dev team were treating developers using spring as dumb. I think he's right.
Doesn't mean it's right, in fact what it means is that you can't extend a class in...
Type: Posts; User: Edward Kenworthy; Keyword(s):
I think he was saying the spring dev team were treating developers using spring as dumb. I think he's right.
Doesn't mean it's right, in fact what it means is that you can't extend a class in...
Unfortunately not. "The problem is that the showPage method simply calls getPages() and decides for itself which page to show next!" so getViewName() doesn't get called.
Thanks all, given me some things to think about.
I've don't use _targetX as that would mean encoding the flow in the page.
As to the controller being a singleton, forgot about that but it's a...
There are a number of methods:
protected int getInitialPage(HttpServletRequest request)
protected String getViewName(HttpServletRequest request, Object command, int page)
protected int...
addJob.setNoDeparture(new Boolean(Boolean.FALSE.booleanValue()));
What's wrong with "addJob.setNoDeparture(Boolean.False);"?
Even better just use a boolean so "addJob.setNoDeparture(false);"...
I've tried searching the forum but "example" is excluded as a common word from searches: how stupid is that?
...are very disappointing when it comes to covering the web aspects. In the case of Rod Johnson's it seems to simply regurgiate the limited material from the spring manual (which is pretty poor but...
Any chance of a response?
I need to set up a flow of pages like this:
page 1: select 1 or more items.
pages 2-n: display/edit each of the items (1 per page) selected on page 1.
As you work through the pages answering...
This works in 1.1.1 but not in 1.2.4; is there somewhere the changes are documented along with recommended chaanges to client code?
return...
I've read the documentation, including the faq and the starting steps but I can't find the answer to my quest which is: how do I install acegi?
This is complicated by the fact I've been using the...
I think you're missing the point. HibernateTemplate *should* implement an interface (not an abstract base class, that's different) and as other posters have pointed out, it does: HibernateOperations....
Am aware of that: it's an optional .jar.
I was using it as an opportunity to highlight where Spring uses a concrete class (setHibernateTemplate()) rather than an interface which surprised me given...
Still a problem: HibernateDaoSupport provides a setHibernateTemplate() method, not a setHibernateOperations() method.
Kind of reduces the usefulness of having an interface.
Oops.
Hmmm ... as far as I know this has been around for a long time.[/quote]
Quite right, it's in the version I'm using. What confused me was the documentation you pointed me to said it had been...
Link's broken.
That's only available in an unreleased (1.2) version of the Spring framework...
I'm unit testing my application and am using EasyMock. I'd like to mock HibernateTemplate but it turns out that it isn't an interface (which came as quite a surprise given Spring's emphasis on using...
I've got a form that lists things. A user can search these things in which case a new page (the same jsp) is shown with the matches.
I've implemented this by extending SimpleFormController but the...
perfect, thankyou.
Well what can I say: it worked!
Thanks very much.
Hi Olivier
Maybe it is better style: but it works perfectly on another page: I'll try what you suggest anyway: maybe it'll turn out to be a "feature" ;-)
Edward
Yes that#s the easy bit: the bit I can't work out is how do I do the equivalent of: myStringArray[object.index] ?
I would say in your DAO: that's where I intend putting it: when I upgrade to spring 1.1.2 that is :-)
Hmm. Funny I can't see an initialize method on HibernateTemplate nor a lock method on Session. What version of hibernate and spring are you using?