[BLOSSOM-107] Areas without @TabFactory methods are not displayed Created: 19/Apr/13  Updated: 04/Apr/14  Resolved: 04/Apr/14

Status: Closed
Project: Blossom
Component/s: None
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Tobias Mattsson
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

This area is not displayed:

    @Controller
    @Area("main")
    @AvailableComponentClasses({TextComponent.class})
    public static class MainArea {

        @RequestMapping("/mainTemplate/main")
        public String render() {
            return "areas/mainArea.ftl";
        }
    }

Only by adding a @TabFactory method is it shown:

    @Controller
    @Area("main")
    @AvailableComponentClasses({TextComponent.class})
    public static class MainArea {

        @TabFactory("Content")
        public void contentTab(TabBuilder tab) {
        }

        @RequestMapping("/mainTemplate/main")
        public String render() {
            return "areas/mainArea.ftl";
        }
    }

Either the area is not added to the template definition at export time or it isn't rendered by Magnolia.



 Comments   
Comment by Tobias Mattsson [ 04/Apr/14 ]

Can no longer reproduce the problem, it has likely been fixed in the page editor since this issue was created. Tested with 4.5.12 now.

Generated at Sun Feb 11 23:30:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.