[
https://issues.apache.org/jira/browse/WOOKIE-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814896#comment-13814896
]
Scott Wilson commented on WOOKIE-421:
-------------------------------------
Hi Muneeb,
I'm not quite sure what you're asking, maybe an example will help?
In any case, I thought I'd explain how the JavaScript files are added in case
thats of use.
The JavaScript injection in Wookie is handled using something called Features.
There is a guide for writing these here:
http://wookie.apache.org/docs/developer/features.html
Basically you can define an extension feature and then, if the widget declares
it in config.xml, Wookie will inject any js and css you've defined.
You can also extend the default "widget" feature, which is automatically added
for ALL widgets. You can find this in /features/widget in your installation;
add your script to this folder, and add the name to feature.xml, and then all
widgets will contain your script.
> How to use request parameters in wookie widget
> ----------------------------------------------
>
> Key: WOOKIE-421
> URL: https://issues.apache.org/jira/browse/WOOKIE-421
> Project: Wookie
> Issue Type: Task
> Components: Server, Wookie REST API
> Affects Versions: 0.14.0
> Reporter: muneeb shabbir
>
> hi,
> Is there any way to pass request parameters to widget deployed on Wookie? i
> can see Wookie adds some JavaScript files in widget HTML, is there any way
> where i can receive the request parameters and embed them in the page and
> using that parameters i want to customize the widget just like Wookie adds
> JavaScript files in page.
> Thanks in advance
--
This message was sent by Atlassian JIRA
(v6.1#6144)