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 for more info.
Regards
Ron
----- Original Message -----
From: "Chris Gerken" <chrisger...@mindspring.com>
To: <jetspeed-user@portals.apache.org>
Sent: Monday, July 23, 2012 10:10 AM
Subject: Javascript and multiple instances of a portlet on a page
Howdy all,
I need to implement a portlet application whose rendered HTML contains calls
to a javascript function and I need multiple instances of this portlet
(configured differently) to appear on the same portal page.
How would I provide the javascript functions? Would I include the js files
from within the rendered HTML for each of the several portlet instances or
is there a way to include those files just once for the entire page?
Thanks,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org