voyent
Problems getting pushRender to work correctly  XML
Forum Index -> General Help
Author Message
cliffndonna

Joined: 27/Jun/2013 13:54:32
Messages: 2
Offline


I have a page that has 2 panels one it each is controlled by its own backer. Wehn an item is added on one it shows on the second. also the second page has an event listener that is triggered by a service which will update the status of an item in the DataTable. It worked fine with render manager but I am upgrading both icefaces and JSF and it insnt woking correctley.

When I add the item in panel one , it shows immediatley in panel 2. when the event gets triggered to change the content, the backers method gets called and it updates the field in the table, but not on the screen. If I go to the first panel and select anything that causes a change event, then my second panel updates with the correct value.

How do I get the second panel to update when the value is actually changed, without having to click on anything in the first panel, like I said this worked fine in the 1.8.2 version
in panel 1 (creating item)
I do a
PushRenderer.addCurrentSession(GLOBAL_RENDER_GROUP);
in the constructor

I do a
PushRenderer.render(GLOBAL_RENDER_GROUP);
in after item is addded


in panel 2 (showing the item)
I do a
PushRenderer.addCurrentSession(GLOBAL_RENDER_GROUP);
in the constructor

I do a
PushRenderer.render(GLOBAL_RENDER_GROUP);
in my event


not sure what I am missing, any help would be apprecieated[code]
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


What scope is the item that you're adding? You should only need to call PushRenderer.addCurrentSession() once for any user. It may take a few seconds for the push long polling and hear beat to be set up after this, so you might want to call addCurrentSession() for each user as soon as their session is initialized. Check the network traffic and see if there are any repeated calls to listen.push (which is the push heartbeat).

Thanks,
Philip

.
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Are you using portlets? Do you have f:ajax or ace:ajax in the page with render regions?

For a single page with a single user, there is actually no need for push to update separate panels -- JSF by default renders the entire page so should update all components to the current data. Another possibility is that the various beans do not have common values, and this could be debugged with logging.
[Email]
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team