You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Barry Books (JIRA)" <ji...@apache.org> on 2016/02/26 20:24:18 UTC
[jira] [Updated] (TAP5-2532) Add Object editor to
PropertyEditBlocks
[ https://issues.apache.org/jira/browse/TAP5-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Barry Books updated TAP5-2532:
------------------------------
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
was:
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
> Add Object editor to PropertyEditBlocks
> ---------------------------------------
>
> Key: TAP5-2532
> URL: https://issues.apache.org/jira/browse/TAP5-2532
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.4
> Reporter: Barry Books
> Priority: Minor
> Labels: features, patch
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)