cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a custom panel render in custom backoffice

Former Member
0 Kudos

Hi,

I created a custombackoffice and I want to create a custom editor panel render class. So I extended DeafultEditorAreaRender class to achieve it. So to avoid compile time errors I added following jar files in lib (Not WEB-INF lib because there is no such directory in custom back office). So while server startup I am getting DeviceNotFoundException : ajax not found

If I am not aading those jar files compilation fails. I don't know what is the correct approach to do it. Could any tell me how to create it.

Thanks

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I am facing the same issue. Please response with any help.

Thanks !!!

former_member632755
Active Contributor
0 Kudos

Hi,

no it isn't. You should have the backoffice configured to export the jars and the custom extension should depend on backoffice (IDE and ant should both be able to resolve the dependencies).

The important part is to keep the code in backoffice/src (web part of the custom module).

Does it help?

Cheers, Wojtek

Former Member
0 Kudos

Thanks Wojciech working fine!!!

Cheers, Kishore

Former Member
0 Kudos

Sorry Wojciech, i am not able to accept this answer!!!

Former Member
0 Kudos

Hello Wojciech,

Even i facing same issue, what trying to say....I resolved the framework classes dependencies by double check, after i did ant build it shows compile time errors.

Is copying jars into lib of custom backoffice is right approach or nt ? or How can we resolve these ant build errors ?

Please give your response

Thanks !!!!

Former Member
0 Kudos

Hi Wojtek,

Anyway why it is matter with ee/any IDE? Even though IDE shows compile errors 'ant all' should work right? I tried without copying jar files and did ant all, then it shows compile time errors.

Please give your response

former_member632755
Active Contributor
0 Kudos

Hi,

the jars must not be copied. If you cannot see framework classes you need please doublecheck if your IDE has all the exports configured for the libraries.

Each custom renderer should implement the com.hybris.cockpitng.widgets.common.WidgetComponentRenderer interface. Having that implemented you point the renderer either by class name or by bean id (which you of course have to declare manually if you want spring to be used).

Cheers, Wojtek