U4-705 - AbstractDataEditor needs some refactoring

Created by Ove Andersen 28 Aug 2012, 08:52:06 Updated by Sebastiaan Janssen 28 Aug 2012, 09:02:33

Subtask of: U4-136

When creating a custom datatype using the AbstractDataEditor class, the properties "Id" and "DataTypeName" must be implemented for the datatype to work. Those Properties should therefore be changed to abstract to ensure correct use.

Also, a common problem with custom datatypes is control ID persistence and namespacing. This is partly because the AbstractDataEditorControl itself does not generate an ID namespace. AbstractDataEditorControl should therefore inherit INamingContainer to ensure unique, persistent ID's for all child controls of the datatype.

Note: These changes are not breaking in any way.

Comments

Ove Andersen 28 Aug 2012, 08:52:52

Fixed in fork http://umbraco.codeplex.com/SourceControl/network/forks/Azzlack/AbstractDataEditorFix


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: False

Fix Submitted: Pull request

Affected versions: 4.8.0, 4.9.0

Due in version: 4.9.0

Sprint:

Story Points:

Cycle: