Uploaded image for project: '[Read Only] - Hippo Wicket ExtJS'
  1. [Read Only] - Hippo Wicket ExtJS
  2. WICKETEXTJS-34

JSON store should provide mechanism to return error message when creating and updating records

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The ExtJsonStore's createRecord and updateRecord methods should provide a convenient way to return an error to the client when creating or updating fails for some reason.

      Currently, both methods either return the created/updated record as a JSON object, or throw a JSON exception (which leads to a WicketRuntimeException). The response can be customized by overriding createResponse(), but this is decoupled from the createRecord/updateRecord method calls.

      Instead, the create/update methods should be able to throw an exception, which automatically leads to an error response.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              mdenburger Mathijs den Burger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: