I am wondering what I am doing wrong?
GOAL: In my FrontEnd application (site) I want to enable feature: Show files that are uploaded from BO application (admin) - StaticAssets
What I've done so far:
1. Added broadleaf-contentmanagement-module in pom.xml (site)
2. Ensured that CMS application context is loading ...
added: classpath:/applicationContext-servlet-cms-contentClient.xml in web.xml
3. Made sure that configuration param is loading while application context is loading:
asset.server.url.prefix.internal=cmsstatic
4. In debug mode, I am sure that /**/cmsstatic/** BroadleafCMSHAndlerMapping is created
Application starts fine and works correctly until the moment when I want to show file uploaded in Admin.
I've debuged and 100% sure that logic of converting BLOB field from DB to file system works correctly. I can see file at /tmp/ folder, and method
Code: Select all
staticAssetStorageService.getCacheFileModel
shows correct fullUrl.
Now the problem lies in fact that appliccation doesn't know how to handle viewResolverName.
In debug I see that viewResolverName is ok ("blStaticAssetView") but once it is triggered I am getting following error:
Code: Select all
Error resolving template "blStaticAssetView", template might not exist or might not be accessible by any of the configured Template Resolvers
In order to give you some more light to my problem I must state that I am using Thymyleaf.
Does someone has any idea what is going on?
Thank You