Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • JS file configured in web resources not available for a velocity template rendered on confluence

JS file configured in web resources not available for a velocity template rendered on confluence

abhaykumar.rajguru
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2024

 

 

 

We have a velocity template which we are calling on the click of a Custom banner button on confluence page.

We are able to render the velocity template with whatever UI we designed, however the JScript which we have defined in plugin.xml as a web resource, is not getting loaded and hence not getting applied to the velocity template. 

 

Any idea here?

1 answer

0 votes
Martin Runge
Community Champion
June 10, 2026

Hi @abhaykumar_rajguru

Welcome to the Atlassian Community!

I would explicitly require your web resource at the very top of your Velocity template, because registering it in your XML only defines its existence but does not automatically load it.

Are you able to use the more modern "$pageBuilderService.assembler().resources().requireWebResource()"?

Suggest an answer

Log in or Sign up to answer