The definition in the gateIn-resources.xml does not support such thing for you.
But absolutely there is another way to do that by using the "Setting Markup Head Element" feature in JSR-286. That is in your portlet's rendering, you could have something like following to add the head HTML script element :
Let me know if it works for you
Yes it works, thank you.
But, it's not a "good" solution, because I will have to do this in each portlet. If I could change the portal template, it will be better...
Thanks for the tip
Yes, the changing of portal template may be a better solution in your case now but be careful when you upgrade to a new GateIn version later. So it's not really good solution neither in my opinion
BTW, you could address a JIRA issue for support the attributes definition for the HTML script tag in gatein-resources.xml if you expect it
I just want to add that I have an init.jsp file and all my portlet include it.
In there is :
var theme = 'soria';
But when there are many portlets on the page, this script is execute many times and I'm not sure that's good. I feel like sometimes it's slow.
Is there no solution for integrating Dojo!!
In your case, there is a simple solution is to use a flag variable to check whether the script will be executed or not.
I don't understand why?!
I do not perfectly understand your use case, so it's hard to imagine what problem you are having.
Basically when you start GateIn, you can set the variable -Dexo.product.developing=[ true | false ] to specify whether all js files configured in gatein-resources.xml are merged into one or not
Yes, I just discover that! Under eclipse I used to run with -Dexo.product.developing=true and it worked fine.
In gatein.bat it's -Dexo.product.developing=false and GateIn merge all the JS files declare in gatein-resource.xml, and it doesn't work with Dojo...
But I will let the parameter to "true"