Re: Javascript and multiple instances of a portlet on a page
Ron McNulty <[email protected]> Wed, 25 Jul 2012 18:49:23 +1200
| Newsgroups | gmane.comp.jakarta.jetspeed.user |
|---|---|
| Message-ID | <F23AD2D23893439F8FFF05E221A72309@Conservatory> |
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" <[email protected]> To: <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]