[BLOSSOM-46] Add dynamic tab creation for DialogFactory. Created: 13/Jul/11  Updated: 04/Apr/14  Resolved: 04/Apr/14

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

Type: New Feature Priority: Major
Reporter: Danilo Ghirardelli Assignee: Tobias Mattsson
Resolution: Duplicate Votes: 0
Labels: dialog, factory, tab
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates BLOSSOM-47 Post create callbacks for template, a... Closed
Template:
Acceptance criteria:
Empty

 Description   

@DialogFactory works great if you know exactly how many tabs you are going to set in you dialog, but in @Template you have the little extra that you can define everything (even the number of tabs, that are dynamically created) in the method annotated with @DialogFactory.
There should be a way to do the same even with classes annotated with the @DialogFactory, outside @Template. Hypothesis:

@DialogFactories
public class MyDialogFactories {
@DialogFactory
public void bannerDialog(...) {}
}

IMHO the cleanest way should be to have an annotation at class level (which works for paragraphs and as standalone) and an annotation at level method for initialization (which works on templates, paragraphs and classes annotated with the other annotation).


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