PUZZLE: how to disable D2D on only one portlet of a page
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
PUZZLE: how to disable D2D on only one portlet of a page  XML
Forum Index -> Portals & Portlets
Author Message
berkovid

Joined: 02/03/2010 00:00:00
Messages: 1
Offline


Hi guys! Here's the scenario:

Liferay 6.0.4, Icefaces 1.8.2 (w/portletFaces), tomcat 6.0.24 (nio connector), no push server.

I have a video player portlet (flowplayer, which is activated by javascript) on a page with two ajax push portlets for chat - one for asking questions and the other for moderating them.

The chat portlets work great (so far ;) and when I submit a question, it pops up, the approved ones get moved to where they're supposed to and so on.

The problem is that the video player, which also uses icefaces tags (but has nothing to do with the ajax push updates), also processes the ajax push update when a new chat message comes in and it runs the d2d updates. This clobbers the div where the player is, then clobbers the javascript that activates it so the player restarts. If I don't render the javascript the second time, then after one update the player disappears as expected since there is no code to activate the new "virgin" div. Not Good.

Any solutions? I went as far as catching the component.bridge and setting stuff in there to null, like onReceiveUpdate (or whatever that list of functions was) and updateViews, whatever looked like it would turn off the updates for that portlet, but nothing worked without breaking the other two innocent portlets on the page...

I also put in just-ice and took out all the icefaces tags, but that ended up with some other weird bugs on the ajax updates so now I turn to my more experienced comrades!

Thanks very much for any advice!
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team