Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    769

    That's one way to handle it. But all I'm...

    That's one way to handle it.

    But all I'm getting from the annotation is the request parameter mapping to method argument.

    No way to map the exception to a view on a per controller level?
  2. Replies
    3
    Views
    769

    @RequestParam custom message

    If I use the @RequestParam in an annotated method.
    For example



    @RequestMapping(method = RequestMethod.GET)
    public String showSomething(@RequestParam("id") Integer id) {
    ...
    }
  3. Replies
    7
    Views
    1,763

    I'm happy with what I've got, I'm moving to 2.5...

    I'm happy with what I've got, I'm moving to 2.5 soon anyway so no need. Thanks for array tip.
    See you in the forums. :)
  4. Replies
    7
    Views
    1,763

    I'm still on 2.0.x.

    I'm still on 2.0.x.
  5. Replies
    7
    Views
    1,763

    That would save me using the helper class. But I...

    That would save me using the helper class. But I would still have access an array. I will use your suggestion to decrease code clutter.

    I would have thought if the form:select is attributed with...
  6. Replies
    7
    Views
    1,763

    form:select bind value

    The binding value from a form:select tag is a comma separated string, even if the form:select tag is configured to be multiple=false.

    Binding from my form:select tag sets my form with a value like...
  7. I found my error. In the exception handler I...

    I found my error.

    In the exception handler I was mapping to a webflow type view. That is, using the externalRedirect signal. But SimpleMappingExceptionResolver does not know what to make of...
  8. I have serveral end states and they all do the...

    I have serveral end states and they all do the same thing.

    My flow executes an end-state with a externalRedirect and the back button is pressed. I get the following warning message.

    No mapping...
  9. This is my end state definition.

    This is my end state definition.

    <end-state id="signIn" view="externalRedirect:/account/app/Login" />
  10. PageNotFound WARN, with end-state and back button

    I have an end-state with a view. Specifically a view that is an externalRedirect.

    If the end-state occurs, and the externalRedirect is executed the page is show correctly. However, if the back...
  11. Replies
    2
    Views
    3,181

    Exposing Methods

    In the springframework.scheduling.quartz.CronTriggerBean there are get/setCronExpression which takes a String. I would like to expose these via JMX so that the cron expression can be changed at...
  12. Replies
    1
    Views
    958

    formBackingObject calls

    I have a SimpleFormController. When I submit my form, the formBackingObject method is called before the onSubmit method. Why?

    Have I wired something up wrong?
    Is there anyway I can stop this...
  13. Replies
    5
    Views
    744

    That is what happens, that much is clear. I just...

    That is what happens, that much is clear. I just wonder why the case matters.
  14. Replies
    5
    Views
    744

    But I'm using the Class Name Handler so I don't...

    But I'm using the Class Name Handler so I don't have create this type of direct mapping.


    <bean
    class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" />
  15. Replies
    5
    Views
    744

    Case sensitivity question

    My Controller.


    <bean name="myTestController" class="farr.web.controller.MyTestController">
    <property name="formView" value="myTestView"></property>
    <property name="successView"...
  16. Replies
    8
    Views
    2,496

    I'm setting a time zone preference. My users...

    I'm setting a time zone preference.

    My users can set a time zone preference for a clock. If the request does not have the time zone cookie, then I would like to set a default time zone in a...
  17. Replies
    8
    Views
    2,496

    Add cookie - SimpleFormController

    I'm using the SimpleFormController. After the page is requested, and I perform my formBackingObject, I would like to add a cookie (with my Spring CookieGenerator of course.) However, addCookie...
  18. Replies
    1
    Views
    2,168

    response.sendError

    How can I send a 400 or similar error code from a controller. It's return value is ModelAndView, or I have to throw an Exception.

    I've lost the ability to do, for example,...
  19. Replies
    2
    Views
    3,971

    call start on dynamic mbean

    I've create a dynamic mbean and I export it with spring into Jboss


    <bean id="exporter"
    class="org.springframework.jmx.export.MBeanExporter"
    lazy-init="false">
    <property name="beans">
    ...
  20. Replies
    1
    Views
    1,041

    convertAndSend and asynchronous consumer

    I'm using convertAndSend on my producer class to add a property to my message. But in my handleMessage method the Map only contains the message body and I cannot inspect my property.

    What do I...
Results 1 to 20 of 22