Monday, July 4, 2011

richfaces ajax-call and embedded gwt widget

Hello,

This is actually a cross post from stackoverflow (http://
stackoverflow.com/questions/6574174/richfaces-ajax-call-and-embedded-
gwt-widget
). Wasn't sure where I could get a quicker suggestion, hope
you don't mind :)

I am using a4j:function call from richfaces library to rerender a
segment on a website every 20 seconds. The problem is that there is a
div element in this segment, that contains gwt widgets. So that
everytime the richfaces ajax call is made and replaces the old html
code I need to tell GWT that it has to reattach the widget (is a
native call to GWT from within the rerendered area). This reattaching
results in flickering behavior, you see the richfaces content first
and in half a second GWT widgets appear.

Does anyone know if there is a more elegant solution to make it user
friendly (I cannot get rid of GWT/Richfaces mixture:)). I would like
to have my GWT widgets be reattached first before the segment is
displayed so that users dont see any blinking/resizing/flickering on
the website. Guess, that there should be a hook in richfaces to call
external code that would make changes to the new dom tree before it is
displayed in the browser.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment