Church Michael R wrote:
Aaron,

I have similar requirements. I have managed to get something working by
using JSP to render my portlet fragments, and getting the JSP to include
specific JavaScript functions in the portlet fragments (to do the
XMLHttpRequest interaction). In addition, I include a special .js file in
all of my rendered portal pages, so that I get common JavaScript functions
that are required to allow AJAX communications to work at all.

It's all a right royal PITA, especially as having two instances of the same
portlet in the same page can cause JavaScript errors (e.g. the same
JavaScript function being defined twice) If, like me, you are very careful,
you can avoid this.

My requirements come from the need to get a portlet to update its own
contents periodically, without refreshing the whole portal page. The
contents come from a servlet on another server, and I use AJAX to retrieve
the content.

Mike Church
Software Engineering

Interesting.
I've been using both Dojo and Backbase(commercial) in my portlets.
Haven't had many problems related to running javascript libraries in portlets, but maybe because we write all the portlets in our particular apps, so we have complete control. Just need to include the script imports in the layout header. Randy is doing some work (and the JSR 286 team) to better formalize this.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to