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

        There are no comments yet on this issue.

          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