0 Replies Latest reply on Jan 19, 2012 5:28 AM by Nikhil Chawla

    Rich:SimpleTogglePanel in multiple portlets

    Nikhil Chawla Newbie

      I have two portlets, say portlet A and portlet B on a portlal page. Both are using simpletogglepanel of richfaces. But whichever portlet is placed last ( or at bottom ) , simpletogglepanel of that portlet is working. The portlet which is places above, simpletogglepanel is not working and giving javascript error.

       

      Error: this.panels.get(A) is undefined

      Source File: http://127.0.0.1:8080/portal/private/classic/home/SearchModify?portal:componentId=078348e4-5e41-4dee-ad3c-fe1cab752259&portal:type=resource&navigationalstate=JBPNS_rO0ABXdcACJqYXZheC5mYWNlcy5wb3J0bGV0YnJpZGdlLlNUQVRFX0lEAAAAAQApdmlldzoyOWY2YWUxOS1hZWJkLTQ2NWItOGUyYi0zNTQ2ZTU3NzBjNjUAB19fRU9GX18*&portal:windowState=normal&portal:portletMode=view&portal:resourceID=/org.rf.res/org/richfaces/ui.pack.js&portal:cacheLevel=PAGE

      Line: 14915

       

      Line 14915 is

       

      SimpleTogglePanelManager.toggleOnClient=function(B,A){this.panels.get(A).toggleToState(B);

       

      If i interchange the postion of portlets, second one starts working and first one stops.

       

      I'm stuck with this issue and not getting the reason for such a behaviour.