Results 1 to 2 of 2

Thread: internationalization: result.reject not interpolated on json view

  1. #1
    Join Date
    Jan 2008
    Posts
    248

    Default internationalization: result.reject not interpolated on json view

    Hi,

    I have a problem getting

    PHP Code:
    @RequestMapping(value="/send",method=RequestMethod.POST)
        public @
    ResponseBody Map<String, ? extends ObjectsendMessage(
                
    MessageVO vo,
                
    BindingResult result,
                
    ModelMap model,
                
    HttpServletRequest requestthrows Exception {
                    
    result.reject("my.error");
            return 
    processMessage(voresultmodelrequest);
        } 
    to be interpolated on my jackson json views. It works fine on normal HTML views but on json views, interpolation does not happen.

    Any suggestions where to start looking?

    Cheers,
    Marc

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    And why or better HOW should it do that? It is JSON if you want it translated you have to put the value into the result currently only the key (my.error.invalid or whatever the key is going to be) is going to be added.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •