Tapestry
  1. Tapestry
  2. TAPESTRY-1864

Code sample in documentation on how to add a new property editor incorrect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: Documentation
    • Labels:
      None

      Description

      The documentation in how to add a new property editor in Tapestry 5 Core -> BeanEditForm documentation has a code sample which reads

      public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)
      {
      configuration.put(BigDecimal.class, "currency");
      }

      but should be

      public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)
      {
      configuration.add(BigDecimal.class, "currency");
      }

      "put" replaced with "add".

        Activity

        Christoph Jäger created issue -
        Christoph Jäger made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Trivial [ 5 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.0.7 [ 12312802 ]
        Mark Thomas made changes -
        Workflow jira [ 12415954 ] Default workflow, editable Closed status [ 12568336 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568336 ] jira [ 12591398 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        16d 15h 29m 1 Howard M. Lewis Ship 13/Nov/07 23:09

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Christoph Jäger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development