on 2019 May 24 5:21 PM
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
Request clarification before answering.
Problem solve i made a new editor and now it works perfectly.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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ń
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.