Search:

Type: Posts; User: trekmbikes; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. I switched to Render and Action and still have...

    I switched to Render and Action and still have the same problem with 3.1.1.RELEASE.
  2. Replies
    7
    Views
    1,767

    As noted in the other thread, this issue still...

    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...
  3. So when the command and binding result params...

    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...
  4. Thanks

    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...
  5. Having same problem

    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 :)
  6. Replies
    9
    Views
    22,424

    update

    https://jira.springsource.org/browse/SPR-6902

    This is fixed in 3.1M1 - I just tested it.
  7. Did you ever find a solution to this problem? I...

    Did you ever find a solution to this problem? I also need to throttle inbound requests.
  8. Replies
    4
    Views
    4,898

    how did you add the Namespace to the XPath...

    how did you add the Namespace to the XPath expression
  9. common

    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...
  10. requestCache null when using session-management -> invalid-session-url

    I'm using the following config:



    <http auto-config="false" use-expressions="true" entry-point-ref="loginUrlAuthenticationEntryPoint">
    <session-management...
  11. well

    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?
  12. Replies
    1
    Views
    1,541

    Disable scheduled tasks

    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.
  13. Replies
    9
    Views
    6,087

    update

    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>
  14. Replies
    9
    Views
    6,087

    TilesConfigurer

    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...
  15. solution

    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...
  16. PropertyPlaceholderConfigurer JUnit relative resource path

    I use a property placeholder configurer in my applicationContext.xml as follows:



    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    ...
  17. PropertyEditor fails for a List variable that contains Lists

    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...
  18. how do I bind a list of BigDecimal objects

    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...
  19. change command object when moving between wizard pages

    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...
  20. Replies
    13
    Views
    4,351

    Lili, I assume you set singleSessionMode set...

    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...
  21. Replies
    13
    Views
    4,351

    one more thing

    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...
  22. Replies
    13
    Views
    4,351

    I'm leaning towards no. I know Hibernate has 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...
  23. Replies
    13
    Views
    4,351

    correction: the OD-DB in webapp/WEB-INF/web.xml...

    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.
  24. Replies
    13
    Views
    4,351

    Lili, Here's all the code you need: Tomcat...

    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:


    ...
  25. Replies
    4
    Views
    2,976

    I just got this to work. Put this method in your...

    I just got this to work. Put this method in your SimpleFormController class:


    protected void initBinder&#40;HttpServletRequest request, ServletRequestDataBinder binder&#41;
    throws Exception &#123;
    ...
Results 1 to 25 of 33
Page 1 of 2 1 2