Re: Javascript and multiple instances of a portlet on a page

2012-07-23 Thread Ron McNulty
Hi Chris There is a function available I think as a tag in the portlet tag library. It's job in life is to create differently named Javascript variables for each portlet instance. It simply adds a portlet instance specific prefix to your variable names. Try skimming the JSR 286 specification f

Re: Help with Jetspeed2 Tutorial

2012-07-23 Thread David Sean Taylor
On Jul 18, 2012, at 11:33 PM, Testi wrote: > > I am having same problem. Did any1 solved it? > I just started clean, followed the tutorial from the beginning, all the way to this step: http://portals.apache.org/jetspeed-2/tutorial/01/build-it.html Did not see any problems. At what point do

Re: Javascript and multiple instances of a portlet on a page

2012-07-23 Thread Woonsan Ko
Hi Chris, If you want to include the javascript file only once, then you should *contribute a head element* for the javascript. A portlet can contribute any element in the head of the page by using Portlet 2.0 API (PortletResponse#createElement() and PortletResponse#addProperty(MimeResponse.MAR