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

Follow How to create a widget tutorial, but unable to create the widget

Former Member
0 Kudos
159

Hi

I have created a custome backoffice in the extensionsinfo.xml file i have added the requires-extension name="platformbackoffice"

How ever when I ran the "ant clean all" command I'm getting an error in MySearchController.java file.

I also tried to add the values to classpath as shown in the picture

Any help is appreciated.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Kudos

All sources related to backoffice-specific elements like widgets, actions etc (this includes your controller) must be in customextension/backoffice/src, not in the regular source folder, otherwise ant does'nt use the correct classpath.

And judging by your screenshot, this is the issue here.

I assume that you have created the sigmabackoffice extension using the ybackoffice template, correct? You only need to move your controller class from sigmabackoffice/src to sigmabackoffice/backoffice/src, then it shoud compile without any issues

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

That was my issue, I'm attaching some screenshots for reference.

Thanks!!!