I switched to Render and Action and still have the same problem with 3.1.1.RELEASE.
Type: Posts; User: trekmbikes; Keyword(s):
I switched to Render and Action and still have the same problem with 3.1.1.RELEASE.
As noted in the other thread, this issue still isn't fixed as of 3.1.1.RELEASE. My problem is that I need to populate some reference data in the error method which relies on data in the command...
So when the command and binding result params exist in the method signature, spring retrieves and populates the command object correctly from the session but "resets" the BindingResult param - like...
Thanks for posting that it worked in Tomcat 7 and not 6, I'm sure that would have taken me a couple hours to track down.
Per...
Did you find an answer for this? Can you post example code or a URL?
I'm trying to bind a collection of String IDs to a set of populated domain objects in my command class.
thanks :)
https://jira.springsource.org/browse/SPR-6902
This is fixed in 3.1M1 - I just tested it.
Did you ever find a solution to this problem? I also need to throttle inbound requests.
how did you add the Namespace to the XPath expression
Thanks for the reply Luke, I see you're the author of a bunch of these classes.
Wouldn't you agree it's a common use case?
1 - user's session times out
2 - they are redirected to login with the...
I'm using the following config:
<http auto-config="false" use-expressions="true" entry-point-ref="loginUrlAuthenticationEntryPoint">
<session-management...
Did you ever figure this out? They are both private and nobody calls the setters as far as I can tell so do we need to link them in the XML?
Is there an easy way to disable scheduled tasks, for instance when you're only running an integration test? I have configured some using the @Scheduled annotation.
I was able to get some results using the following:
web.xml:
<listener>
<listener-class>org.apache.tiles.web.startup.TilesListener</listener-class>
</listener>
<context-param>
Has anyone written a TilesConfigurer / TilesView that works with apache's latest version?
I hope this gets pushed to one of the Spring 2.1 releases...
For all the properties that I used relative paths (like "WEB-INF/applicationContext.xml"), I changed to absolute paths using a property (like "${homedir}/WEB-INF/applicationContext.xml"). Then I just...
I use a property placeholder configurer in my applicationContext.xml as follows:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
...
I have a property defined as List<List<String>> and I'm registering a custom property editor called CustomNestedListEditor on it:
public class CustomNestedListEditor extends...
I have a property
private List<BigDecimal> amounts; in my Command object. My JSP generates form inputs like
<input ... name="amounts[0]">
If I had a List of Strings, there wouldn't be a...
Which function should I be overriding to change my command object when moving between pages 1 and 2 of my wizard form controller?
The inputs on the second wizard page are dynamic and dependent on...
Lili,
I assume you set singleSessionMode set to false so that your DAOs can open their own sessions, make changes and close them. Since you're using the filter, you need to flush the session...
By the way, since I DO use Spring's local transaction support, I use the OpenSessionInView interceptor. This is an interceptor that runs once per http request, and it binds a new session to the...
I'm leaning towards no. I know Hibernate has the notion of Transactions, and one session can incorporate multiple transactions. Also Spring has its own notion of transactions, and Spring uses the...
correction: the OD-DB in webapp/WEB-INF/web.xml should be "MY-DB"
You will also need to satisfy the imports on the Dao class.
Lili,
Here's all the code you need:
Tomcat context file (either in tomcat/conf/Catalina/localhost/ROOT.xml or in tomcat/conf/server.xml inside the <context tag> that you're using:
...
I just got this to work. Put this method in your SimpleFormController class:
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder)
throws Exception {
...