enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Custom selector only uses services under /site/services not /services directly #6845

Closed ComLock closed 5 years ago

ComLock commented 5 years ago

So I made a lib where I put a custom selector service directly under /src/main/resources/services/...

And then I include that lib in a app and try to use the service in a custom selector.

It seems the custom selector only tries to look for the service under /site:

Service error: Resource [com.enonic.app.search:/site/services/thesauriSelector/thesauriSelector.js] was not found (com.enonic.xp.resource.ResourceNotFoundException)

ref:

ComLock commented 5 years ago

Workaround is move the service under site in the lib.

ComLock commented 5 years ago

This issue is invalid. Just a typo!

sigdestad commented 5 years ago

Soo.. services work regardless of where you place them?

ComLock commented 5 years ago

Customselector will use a service in resources/site/services or resources/services