• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript in JSF portlets(IBM Websphere portals)

 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anybody share some tutorials as how to use Javascript in JSF portlets in IBM Websphere portals.

Thanks
 
Jimmy Ho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic