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

Add Object editor to PropertyEditBlocks

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.5.0
    • Component/s: tapestry-core
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: