I've got a use case where the standard data binding and validation provided by Spring MVC 3.x (@Valid @ModelAttribute SomeObject someObject, BindingResult result) isn't sufficient.
Once I do the...
Type: Posts; User: jchase; Keyword(s):
I've got a use case where the standard data binding and validation provided by Spring MVC 3.x (@Valid @ModelAttribute SomeObject someObject, BindingResult result) isn't sufficient.
Once I do the...
I'm floundering right now, so I'd really appreciate any help. Here's the scenario:
I have two apps, app A and app B. They both run under the same domain name. A and B run on two different...
I've filed a bug in JIRA. SPR-3954
http://opensource.atlassian.com/projects/spring/browse/SPR-3954
I'm unable to get the Spring MVC JSP taglib <form:errors /> tag to work when using it via FreeMarker.
In my FreeMarker page:
<@form.form>
<@form.input path="foobar" /> <#-- .input...
B/c of the pain I've been having with this, I've gone ahead and moved transaction demarcation to the service level, using Spring's <tx:advice />.
Now that transactions commit upon completion of...
It appears I spoke too soon -
I've fixed the problems with the Session not being flushed before the redirect view was rendered, but now I've run into a different problem - the current transaction...
I double checked using some log messages, and I can see what I described happening.
The sequence of events is:
1 form controller returns a redirect view ("redirect:/index.html")
2 redirect view...
After thinking about it a few minutes, I realized I could write an HandlerInterceptor to take care of it...
My Spring MVC web set up uses OpenSessionInViewFilter (OSIVF) and a custom OpenTransactionInViewFilter as well. This means that the transaction is not closed until the view has rendered, and...
IronKnight - this url should work to resolve the image:
http://www.flickr.com/photo_zoom.gne?id=89101625&size=l
Thanks for the suggestion - I was thinking of something similar to OSIVF but for transactions, but wasn't sure how to use Spring to do it. Your mention of TransactionTemplate set me in the right...
Before you ask - I don't have any control over this decision - this is what the higher ups want to do, and I need to find a way to make it work :).
We've got a DAO layer written that uses...
The Expert Spring MVC book has some pretty good diagrams that document the flow of form submissions. Can't remember what other diagrams it contains...but definitely a worthwhile investment if you're...
Thanks for the heads up - your advice did it!
Just to state it again, I removed the following from my entityManagerFactory bean:
<property name="loadTimeWeaver">
<bean
...
One solution would be to maintain two sets of tables (2 acl_object_identity and 2 acl_permission tables). One set could be used for User-based authorization, and the other could be used for...
Does the basic ACL package support the notion of Groups of Users?
i.e. is it possible to grant access to a domain object based on the Group a User is a member of?
In this context, Group has...
I'm trying to upgrade from Spring 2.0rc3 to Spring 2.0final and I'm having trouble with regard to the Hibernate 3 + JPA setup. This is occuring during unit tests - i.e. this is not running in a...
Thanks Rick - I'll be looking forward to seeing it sometime in the cloudy future:D.
Jon
When creating a custom schema to be parsed by Spring, how does one go about having elements with child elements parsed completely?
Example:
<spring:beans
...
It's very possible:).
1) Make sure your tool implements org.apache.velocity.tools.view.tools.ViewTool
2) Implement ViewTool's public void init(Object obj) method something like so:
...
Say during the rendering of a view an exception is thrown. Shouldn't the DispatcherServlet catch it and use its HandlerExceptionResolvers to handle it? It appears (both in practice and from looking...
ronaldpieterse:
Would you care to post the code you've developed if possible? I'm going to be doing something very similar in the near future, and it'd be great to have something to start...
Just wondering if anyone has found this class yet.
This is probably most easily answered by one of the Expert Spring MVC authors, but it's not a Web question...
On page 281 of Expert Spring MVC, mention is made of the ErrorsVerifier class that is...
Is there any built in facility in Spring MVC to map parts of the requesting URL (not just the query string) to parameters? If it exists, I haven't seen it, but I figured I'd ask before embarking on...