The ModelAndView object is specially prepared in Spring's code (the property editors are attached to it). By creating an instance yourself you get a "clean" one without the property editors.
Joerg
Type: Posts; User: Jörg Heinicke; Keyword(s):
The ModelAndView object is specially prepared in Spring's code (the property editors are attached to it). By creating an instance yourself you get a "clean" one without the property editors.
Joerg
If you have to write this rather than simply using the form tag library something is definitely wrong. If you set up the custom editor correctly you likely overwrote the wrong method in your...
Make sure the CustomDateEditor is used when rendering the page. In that case Date.toString() wouldn't be called.
Up to 2.5 nothing had changed. I don't know about more recently but I don't think so. The MAC has been treated quite poorly I guess.
Joerg
You're right, I forgot about forwarding. Forwarding is a server-side redirect so that the limitations don't apply and even request attributes should work since it is the same request.
Joerg
That was probably not the reason. It only switches between JDK dynamic proxies and CGLib proxies.
Joerg
Oh, wow! I would not have noticed that one. I was about to write that I actually like what I'm seeing, meaning it should work. That was a good spotting! :)
@Override on referenceData() would have...
Yes, you are completely right - but that's exactly what's happening. The redirect is a directive to the browser to access the mentioned URL. An URL can only be a string. And it is a new request....
Bug from what I understand his edit action only triggers the form view of that controller. The page that shows both edit and delete links/buttons is not handled by that controller. So I don't see the...
If I understand the question correctly that's what referenceData() is for.
Joerg
What about just setting the time values to 0? Have a look at Date's Javadoc. You are supposed to do this using a Calendar object as mentioned on the setHours(), etc. methods.
Formatting and...
If you really need to do something like this create your own Java class where you do the actual operation. You can instantiate your Java class as usual in the context.
Joerg
But why that at all? Edit and delete should be pretty obviously handled by two different controllers. You can either have different URLs for both actions or create a ParameterHandlerMapping where you...
Why is that? As long as the AJAX requests return actual markup it should be fine, shouldn't it?
Joerg
Just stopping the upload by closing the browser, clicking a link during upload or whatever will cause these errors. Maybe users are just not patient enough or your upload is too slow in general?
...
Yes, that's postponed to 3.0 M1 (at least).
Joerg
Should be getParameter("myObject").
This can't work since it is a different request you are handling in controller 2.
Joerg
What's to_date(..)? Could it just be 'mm/dd/yyyy' vs. "MM/dd/yyyy"?
Joerg
How exactly are you doing this?
Joerg
Never thought about this, but that's actually true. It's only the proxy that implements ScopedObject. I just never had the case that I want to scope a bean without injecting and so proxying it.
...
That's really not the best solution since it creates a new session. You can run into LazyInitializationExceptions with this setup.
Joerg
The error message should be pretty clear. The class you are going to proxy using CGLib has to provide a default constructor. Alternatively switch to JDK dynamic proxies (if that's configurable for...
It should come with JOTM.
Joerg
Yes, it should follow Java semantics.
That's what actually is happening? I'd debug what the code what it actually does on merging the sets. Maybe it adds all beans from the parent set to the...
That's actually a duplicate.
Joerg