Aleksander,

Check out the "TemplateManager.addResourceRequest" API which can be used to
inject CSS or JAVASCRIPT resources into a JSPWiki page.

Example:
   TemplateManager.addResourceRequest( context,
TemplateManager.RESOURCE_SCRIPT,
           context.getURL( WikiContext.NONE, "..../my-javascript.js" ) );


dirk




Op Sun Nov 09 2014 at 3:23:35 PM schreef Aleksandar Milenovic (JIRA) <
j...@apache.org>:

> Aleksandar Milenovic created JSPWIKI-872:
> --------------------------------------------
>
>              Summary: JSPWiki Plugin with Web Resources (JS, CSS, HTML)
>                  Key: JSPWIKI-872
>                  URL: https://issues.apache.org/jira/browse/JSPWIKI-872
>              Project: JSPWiki
>           Issue Type: Improvement
>           Components: Documentation & website, Plugins
>     Affects Versions: 2.10.2
>             Reporter: Aleksandar Milenovic
>              Fix For: 2.10.2
>
>
> Even though JSPWiki is not as dynamic project as other Apache projects, I
> really like the ease of integration with JEE app servers.
>
> I did a simple Plugin that will add UML diagrams to my wiki pages. Now I
> wanted to add a specific styles (CSS) and Javascripts. I am not sure how to
> register these Web Resources only once on the page and how to avoid the
> conflicts with JSPWiki resources?
>
> I believe it is already supported, just not described.
>
> Is it possible to do so? Or, if you can give me a few pointers, I might do
> that for you.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>

Reply via email to