You can write into the content any well formed html and thus javascript stuff.
You can define your own layout, usually a jsp file - again html stuff.
You can inject html into teh <header-content> tag in the jboss-portlet.xml file
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131558#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...