Skip navigation.
Arch2Arch Tab BEA.com

Article: Guidelines for Writing JSR-168 Portlets
Subject:  Namespacing html id, name attributte
Date:  2007-11-15 05:20:14
From:  Groenbaek

Your example shows how to namespace a javascript function. Just vanted to add that you have to namespace any javascript variable and names, id of html elements in the page you generate. If you don't, stuff like document.getElementById('id'), will start behaving odd when you add two instances of the same portlet to the page, since there may be two elements with the same id and, or name