[MGNLUI-1267] HierarchicalJcrContainer should be provided by IOC - Filtered properties should be changeable Created: 29/Apr/13 Updated: 26/Jun/13 Resolved: 26/Jun/13 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | app framework, content app, framework, tree/list |
| Affects Version/s: | 5.0 |
| Fix Version/s: | 5.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Ringele | Assignee: | Unassigned |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | ioc | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
The use case (see print screens):
Not the next step I tried to achieve, the use case I can't implement:
The problem: The problem there is, that the class info.magnolia.ui.workbench.tree.TreeViewImpl allocated the Container not by IOC, but by 'new'. Ok, lets override the receiving class of the container and override this one, just allocating there my Container class in: info.magnolia.ui.workbench.tree.TreeViewImpl.buildTreeTable(Container, WorkbenchDefinition, ComponentProvider) -> Cant do it without copying the complete TreeViewImpl class just to change that line of code this.container = new HierarchicalJcrContainer(workbench); |
| Comments |
| Comment by Christian Ringele [ 29/Apr/13 ] |
|
By the way, the impl is located in: |
| Comment by Tobias Mattsson [ 26/Jun/13 ] |
|
It is now possible to use a custom container by extending TreePresenter and overriding the createContainer() method. For an example see how this is done in the security app. |