Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1864

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: