Share

spring-json

Tracker: Feature Requests

5 Configuration options for JSON error attributes - ID: 2710419
Last Update: Comment added ( sf-robot )

In v1.1 JsonView maps the spring validation errors to JSON using the same
attribute names (e.g. fielderrors). It would be nice to be able to specify
the mapping from spring's names to JSON names, as some frameworks like
ExtJS provide out-of-the-box functionality to map responses to fields.
ExtJs for instance expects the validation errors to be in a json hash
called 'errors'.

Thus for v1.1: Add setters to JsonView for specifying the name under which
to store the validation errors (e.g. 'errors' instead of 'fielderrors')

Thus for trunk (as of writing): Add the same setter functionality to
StandartErrorConverter


zefixlluja ( zefixlluja ) - 2009-03-24 21:04

5

Closed

None

Nobody/Anonymous

api

Next Release

Public


Comments ( 3 )

Date: 2009-04-29 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-04-08 07:48
Sender: kaiulrichProject Admin

see Featurerequest 2743327


Date: 2009-04-07 10:03
Sender: nobody

The attatched StandartErrorConverter source is going to be added to
spring-json v1.2 as an own JsonErrorConverter and can be injected to the
JsonView


Attached File ( 1 )

Filename Description Download
StandartErrorConverter.java Modified StandartErrorConverter (based on trunk rev451) Download

Changes ( 6 )

Field Old Value Date By
status_id Pending 2009-04-29 02:20 sf-robot
allow_comments 1 2009-04-29 02:20 sf-robot
close_date 2009-04-14 14:35 2009-04-29 02:20 sf-robot
status_id Open 2009-04-14 14:35 kaiulrich
close_date - 2009-04-14 14:35 kaiulrich
File Added 319413: StandartErrorConverter.java 2009-03-24 21:12 zefixlluja