Hi Punit, Use the <portlet:namespace/> JSP tag to prefix any Javascript ID's, methods, or anything else that needs to be unique within a portlet. Each portlet will render a unique value for its namespace. Check Section 22.4 of the JSR 168 specification.
Also check Section 12.3.4, Namespace Encoding, if you want to use the getNamespace() method on the RenderResponse interface inside of your portlets. Hope this helps, Jeff Linwood ----- Original Message ----- From: "Punit Pandey" <[EMAIL PROTECTED]> To: "portlets" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 5:21 AM Subject: JavaScript id clashing > Hi All, > > What to do of JavaScript id clashing? Suppose two portlets developed by two > different developers have same id of some DOM element. If we will put both > of the portlets on one page, JavaScript will produce error and JavaScript > for both the controls will stop working. What is a workaround of this > problem? Also what does JSR 168 says on this matter? > > Regards, > > Punit Pandey > ================================================= > http://portlets.blogspot.com - Portlets blog > http://groups.yahoo.com/group/portlets/ - Portlets Discussion Group > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
