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

Add Object editor to PropertyEditBlocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4
    • 5.5.0
    • tapestry-core

    Description

      Create an object edit block in PropertyEditBlocks so BeanEditor can edit an Object like

      class Person {
      Name name;
      Address address;

      ...
      }

      by just contributing the following

      public static void contributeDefaultDataTypeAnalyzer(@SuppressWarnings("rawtypes") MappedConfiguration<Class, String> configuration)

      { configuration.add(Name.class, "name"); configuration.add(Address.class, "address"); }

      @Contribute(BeanBlockSource.class)
      public static void provideDefaultBeanBlocks(Configuration<BeanBlockContribution> configuration)

      { configuration.add( new EditBlockContribution("Name", "PropertyEditBlocks", "Object")); configuration.add( new EditBlockContribution("Address", "PropertyEditBlocks", "Object")); }

      Patch to follow

      Attachments

        Activity

          People

            Unassigned Unassigned
            trsvax Barry Books
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: