[BLOSSOM-243] BlossomFormDialogPresenter should implement ElementAwareFormDialogPresenter Created: 08/Jun/17  Updated: 05/Jun/18  Resolved: 05/Jun/18

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

Type: Bug Priority: Critical
Reporter: Jürgen Ulrich Assignee: Unassigned
Resolution: Not an issue Votes: 3
Labels: component, personalization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
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   

As the release notes of Magnolia 5.5.4 describes, Blossom can be used together with personalization.
After upgrading to 5.5.4 we get an ClassCastException in EditVariantAction.java in line 82.

info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: editComponent
...
Caused by: java.lang.ClassCastException: info.magnolia.module.blossom.dialog.BlossomFormDialogPresenter cannot be cast to info.magnolia.personalization.ui.pages.dialog.ElementAwareFormDialogPresenter

When we set the formDialogPresenterClass as described in BLOSSOM-242 we receive an empty dialog for components in Magnolia Author.
We fixed this by implementing an own presenter which extends the BlossomFormDialogPresenter and implements the ElementAwareFormDialogPresenter interface. I think this should be done directly by the BlossomFormDialogPresenter.



 Comments   
Comment by Antonín Juran [ 06/Nov/17 ]

For component personalization together with Blossom since 3.1.4 version is necessary to add magnolia-personalization-blossom module to a webapp, as described in https://documentation.magnolia-cms.com/display/DOCS/Blossom+module+release+notes.

Comment by Richard Gange [ 05/Jun/18 ]

Make sure to install:

<dependency>
  <groupId>info.magnolia.personalization</groupId>
  <artifactId>magnolia-personalization-blossom</artifactId>
</dependency>
Generated at Sun Feb 11 23:31:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.