Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2349

JSONObject (& JSONArray) should not be final, to allow json-based type safety that interacts well with Tapestry

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 5.4
    • Fix Version/s: None
    • Component/s: tapestry-json
    • Labels:

      Description

      For example, one might want to make a special type to communicate with the client-side page:

      class AlertMessage extends JSONObject
      {
          AlertMessage() { put("type", "alert"); }
      
          public void withMessage(String message)
          {
              put("message", message);
          }
      }
      

      ...such would minimize the proliferation of the field name strings, allow passing custom json-backed types to various pages & services, etc.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rhailey Robert Hailey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: