[JSFIELD-23] Failed to create MultiField entry Created: 20/Dec/22  Updated: 24/Jan/24  Resolved: 04/Feb/23

Status: Resolved
Project: Java Script UI (App and Dialog Fields)
Component/s: None
Affects Version/s: 1.2.1
Fix Version/s: 1.2.2

Type: Bug Priority: Major
Reporter: Alberto Ramirez Assignee: Riste Drangovski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File error.log     Text File error2.log     File focus.yaml     PNG File image-2023-01-04-18-44-27-541.png     PNG File image-2023-01-04-18-44-59-973.png     File test.yaml    
Issue Links:
relation
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Steps to reproduce

  1. We open a form with implementationClass: info.magnolia.ui.javascript.form.FormViewWithChangeListener. Within we have declared a multiField with i18n set to true globally. Every field inside it has been declared with i18n set to false. 
  2. Change language selector to another language not the default
  3. Push button "Add"

Besides we are using frontify-dam-connector-1.0.2-SNAPSHOT

Expected results

We expected to be able to add new entries by every selected language

Actual results

An error message shows up: Failed to create MultiField entry:

error.log

Workaround

Development notes



 Comments   
Comment by Teresa Miyar [ 21/Dec/22 ]

Snapshot updated with fix

Comment by Alberto Ramirez [ 04/Jan/23 ]

Hi,

What is the correct version of frontify-dam-connector that is compatible with magnolia-ui-framework-javascript-1.2.2-SNAPSHOT?

I understand that the latter is the correct SNAPSHOT version for magnolia-ui-framework-javascript.

Now the error is as follows:

Caused by: java.lang.NoSuchMethodError: 'void info.magnolia.ui.javascript.field.JavascriptFieldFactory.<init>(info.magnolia.ui.javascript.field.JavascriptFieldDefinition, info.magnolia. objectfactory.ComponentProvider, info.magnolia.init.MagnoliaInitPaths, info.magnolia.ui.editor.LocaleContext, info.magnolia.ui.ValueContext, info.magnolia.ui.javascript.form.FormViewWithChangeListener)'

Not even let me open the form.

Happy new year

Comment by Riste Drangovski [ 04/Jan/23 ]

Hi Alberto,
thx, happy new year to you, too.

I'm testing with magnolia-ui-framework-javascript-1.2.2-SNAPSHOT and frontify-dam-connector-1.0.2-SNAPSHOT.

Comment by Alberto Ramirez [ 26/Jan/23 ]

Hi

We continue with this error despite using the versions that you have indicated. We have even tested with version 6.2.27. Could you pass us the YAML that you use to do the tests?

Regards

Comment by Riste Drangovski [ 26/Jan/23 ]

hi Alberto, I tested agin it works fine for me. I also added your hotel field definition to our form and it worked fine.
Please find attached test.yamlfile that I'm using for testing.

Comment by Alberto Ramirez [ 27/Jan/23 ]

Hi, Riste

 It seems that frontify-1.0.2-SNAPSHOT is not compatible with  magnolia-ui-framework-javascript-1.2.2-SNAPSHOT, with 1.2.1 version it works, although I've not tried to check it out in a more complete form, but in the multifield multilanguage scenario works fine. 

Comment by Alberto Ramirez [ 30/Jan/23 ]

Hi

We've found another error, while trying to check a more complex form; I attached the log: error2.log

Regards, Alberto.

Comment by Riste Drangovski [ 30/Jan/23 ]

Hi Alberto,

As workaround you can change comboBoxField of your switchable field to radioButtonGroupField.
Meanwhile I'll push a fix for this issue ...

Regards,
Riste

Generated at Mon Feb 12 02:16:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.