Search:

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

Search: Search took 0.02 seconds.

  1. Migrating from OpenSessionInViewInterceptor to TransactionManager

    I have an old Spring-based application that has been upgraded over the years to Spring 2.5.6 (it also uses Hibernate 3). I have a bunch of old DAO classes that extend HibernateDaoSupport. Now I'm...
  2. Passing info to a SOAP endpoint through the URI

    I have a SOAP web service that I've implemented using the MessageDispatcherServlet and PayloadRootQNameEndpointMapping to load the proper endpoint based on the name of the root element. That all...
  3. Replies
    2
    Views
    1,152

    I did find a related binding problem that's...

    I did find a related binding problem that's caused by StringArrayPropertyEditor, which I posted about here:

    http://forum.springframework.org/showthread.php?t=15400
  4. Unregistering StringArrayPropertyEditor for command binding

    I have a bean that can sometimes take a list of values, or sometimes a single value. It's declared like this:


    String[] vals;

    public String[] getVals() { return this.vals; }
    public void...
  5. Replies
    2
    Views
    1,152

    Turns out this was a problem with my unit test.

    Turns out this was a problem with my unit test.
  6. Replies
    22
    Views
    3,934

    You could put a static method in a class (blech)...

    You could put a static method in a class (blech) or you could include a bean that contains the method in your controllers using dependency injection, then call that method from within your...
  7. Replies
    22
    Views
    3,934

    Have you considered making one root controller...

    Have you considered making one root controller that you extend? Then just include that code in a protected method in the root class that you extend for your own controllers.
  8. You could do it that way, but I'm not sure what...

    You could do it that way, but I'm not sure what avoiding the free advantages of the binding and validation process gets you. The binding and validation process (which copies values from the incoming...
  9. I don't know if this is the best practice, but if...

    I don't know if this is the best practice, but if I have a form that extends another form, I just write a validator that extends the other validator and calls "super.validate()".

    In this case, you...
  10. Replies
    2
    Views
    1,152

    Binding multivalue fields to a command object

    I've searched the form and haven't found an answer to this question.

    Let's say that a SimpleFormController receives a POST that looks like this:

    foo=value1
    bar=value2
    bar=value3
    bar=value4...
  11. Figured it out on my own. I should be calling...

    Figured it out on my own.

    I should be calling aSession.createQuery() rather than getHibernateTemplate().createQuery() and creating the second session there.
  12. unclosed connection, forgot to call close() on your session?

    I have some classes that extend HibernateDaoSupport. When I run certain types of queries using inner classes like this:


    public List findBySomething(final Something aSomething)
    {
    ...
  13. Replies
    6
    Views
    1,931

    If you're using a redirect, any information you...

    If you're using a redirect, any information you want to send to the view has to be included as a request parameter.
  14. Replies
    0
    Views
    1,144

    Accessing BindException within a custom view

    I've implemented a custom view that extends the AbstractView class, and I need to be able to access the BindException from that view in cases where there are validation errors. (I'm implementing a...
  15. Replies
    3
    Views
    3,908

    Never mind, I assume you're talking about...

    Never mind, I assume you're talking about AbstractView or InternalResourceView.
  16. Replies
    3
    Views
    3,908

    Sounds perfect, which classes are those? ...

    Sounds perfect, which classes are those?

    (I've been looking through the javadoc and I can't find anything that's obviously a superclass for an XML view.)
  17. Replies
    3
    Views
    3,908

    View layer for REST-based Web Services

    What is the preferred view layer for REST web services implemented using Spring MVC? I sort of hacked it to use a servlet that generates XML as the view layer in one application, but there are some...
  18. Replies
    1
    Views
    2,358

    Quartz OutOfMemoryException

    I have a scheduled task that I've set up that works on all of my servers but one. Here's the stack trace. Anyone know how to go about troubleshooting this?



    INFO JobRunShell.java(181)...
  19. Replies
    10
    Views
    9,150

    It sounds like something is set up wrong. If...

    It sounds like something is set up wrong. If you're using "ref bean" then the XML content handler shouldn't even try to resolve those references -- it should be handled at the next level up, after...
  20. Replies
    10
    Views
    9,150

    It definitely works. You can reference beans from...

    It definitely works. You can reference beans from one file to another. You need to use "ref bean" instead of "ref local" and I think you also need to give your beans ids instead of names.
  21. Thread: creating a bean

    by rafeco
    Replies
    2
    Views
    1,689

    Using constructor-arg elements, as explained...

    Using constructor-arg elements, as explained here:

    http://www.springframework.org/docs/reference/beans.html#beans-factory-collaborators
  22. Replies
    13
    Views
    12,694

    When I try to use the technique mentioned here,...

    When I try to use the technique mentioned here, as follows:


    <input type="hidden" name="_<c&#58;out value="$&#123;status.expression&#125;"/>" value="visible" />
    <input type="checkbox" name="<c&#58;out...
  23. Replies
    1
    Views
    1,644

    I don't put anything other than basic sanity...

    I don't put anything other than basic sanity checking in a validator. Anything that would classify as business logic goes in a class that's called by the method that processes the form (like...
  24. Passing in initial values to a form controller

    What's the best design practice for passing initial values into a form? For example, let's say I have a page that contains a list of links that have the following URLs:

    foo.htm?id=1
    foo.htm?id=2...
  25. Replies
    9
    Views
    7,100

    I've used both. If you want a bunch of...

    I've used both.

    If you want a bunch of taglibs that generate form fields and so forth, Struts is probably the better choice.

    I think Spring MVC takes a cleaner approach than Struts.

    In any...
Results 1 to 25 of 25