cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom Localized Editor : Unable to determine editor definition

Former Member
0 Kudos
967

Hello Experts,

I wanted to create custom localized editor but I'm facing some issues. What I did :

Created java class which extends LocalizedEditor

public class MyCustomLocalizedEditor extends LocalizedEditor

Created definition.xml :

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <editor-definition id="com.mycustomextension.bo.widgets.mycustomlocalizededitor" extends="com.hybris.cockpitng.editor.localized"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://www.hybris.com/schema/cockpitng/editor-definition.xsd">
 
     <name>My Custom Localized Editor</name>
     <description>My Custom Localized Editor</description>
     <type>^Localized\((.*)\)$</type>
     <editorClassName>com.mycustomextension.bo.editors.MyCustomLocalizedEditor</editorClassName>
     
 </editor-definition>

Added editor in backoffice-config.xml

 <editorArea:attribute qualifier="name" editor="com.mycustomextension.bo.widgets.mycustomlocalizededitor"/>

When I open tab in backoffice below error appears :

ERROR [hybrisHTTP3] [Editor] Unable to determine editor definition for: Localized(java.lang.String)

Can you please advise me what can be wrong ?

Thanks Andrzej

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Problem solve i made a new editor and now it works perfectly.

Regards

Former Member
0 Kudos

Hi I followed step by step the tutorial and now it is working but now i have this warning

[Editor] No explicit localized editor defined for localized field. Wrapping original editor [com.hybris.pcmbackoffice.widgets.editors.MyCustomLocalizedEditor] with localized [com.hybris.cockpitng.editor.localized(com.hybris.pcmbackoffice.widgets.editors.MyCustomLocalizedEditor)]

Regards

former_member437308
Active Participant
0 Kudos

Hello Andrzej,

You configuration looks good. Please verify whether your definition.xml file is located in correct dictionary. It should be created in path myextension/backoffice/resources/widgets/editors/mycustomlocalizededitor/definition.xml

Probably your editor has not been loaded during hybris startup. Maybe you have some warning in that phase?
Please carefully follow by create editor help page

Cheers Tomasz Zasoń