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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.0.6
    • 5.0.7
    • Documentation
    • 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

            hlship Howard Lewis Ship
            cja Christoph Jäger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: