Announcement Announcement Module
Collapse
No announcement yet.
MVC Binding Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MVC Binding

    Is it possible to bind a value to a Map (which is directly on the request, and not on a backing object)?

    I have implemented the code from this JIRA, and am able to access values from that map.

    However, if I attempt to bind to a value in this map, I receive the following stacktrace:

    Code:
    java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'flashScope' available as request attribute
    at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:141)
    at org.springframework.web.servlet.support.RequestContext.getBindStatus(RequestContext.java:720)bean name 'flashScope' available as request attribute...
    Note, I am using velocity, so my bind statement is as follows:
    Code:
    #springBind("flashScope['someValueIPlacedOnFS'])
    I'm able to print out values from items I place on FlashScope, I just can't use the short cuts (i.e. #springFormInput and the other macros included for velocity usage).
Working...
X