posted 17 years ago
I've tried hacking JavaScript inside a JSR-168 portlet running on WebSphere Portal, and I was never successful. I was using Rational Application Developer 6.0, using their JSF/portlet libraries, which have a lot of nifty JavaScript built-in.
I would first find a good book (like Core JavaServer Faces by Geary) that describes how you can properly name HTML elements generated by JSF libraries, and then account for the fact that they need to be namespace-encoded. The namespace-encoding can really throw people, but if you throw some JSF stuff on the page, and View Source, that may help you.
In general the JSF documentation for WebSphere Portal is very sparse. On the plus side, the integration with Portal is quite elegant, and works in a very straightforward way.
Good luck,