[MGNLUI-371] Page Editor: Cannot edit or add a Contact component. Created: 07/Dec/12  Updated: 11/Feb/13  Resolved: 07/Dec/12

Status: Closed
Project: Magnolia UI
Component/s: page editor
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Bug Priority: Blocker
Reporter: Christopher Zimmermann Assignee: Christopher Zimmermann
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-374 ContactLinkFieldBuilder should config... Closed
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   

Note - there is a contact component in the extras area of: /demo-project/news-and-events

To reproduce Adding problem:
On page editor of "/demo-project/about/subsection-articles/an-interesting-article:edit"
Click in Extras area at bottom. Click New Extras Component.
Select Contact. Click Choose.
> Dialog closes but no component is added.

Get Stack trace:
Dec 7, 2012 9:19:52 AM com.vaadin.Application terminalError
SEVERE: Terminal error:
info.magnolia.objectfactory.MgnlInstantiationException: Unable to resolve parameters for constructor public info.magnolia.ui.app.contacts.field.builder.ContactLinkFieldBuilder(info.magnolia.ui.model.imageprovider.definition.ImageProvider,info.magnolia.ui.app.contacts.field.definition.ContactLinkFieldDefinition,com.vaadin.data.Item,info.magnolia.ui.framework.app.AppController)
at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:74)
at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:118)
......



 Comments   
Comment by Christopher Zimmermann [ 07/Dec/12 ]

The problem is that the ImageProvider can no longer be directly injected, and this code was not yet updated to reflect that change.

Comment by Christopher Zimmermann [ 07/Dec/12 ]

An ConfiguredImageProviderDefinition has been created and populated with hard coded values in ContactLinkFieldBuilder constructor.
With this definition, an imageProvider is created with an injected ComponentProvider.

An imageProviderDefinition for the Contacts app already exists in the workbench definition for the Main SubApp of the Contacts App. This definition should be used instead. A follow-up ticket has been created MGNLUI-374 to track this problem.

Generated at Mon Feb 12 08:36:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.