users@woodstock.java.net

Updating a bubble via Ajax

From: Ryan Burrows <rhburrows_at_gmail.com>
Date: Thu, 8 Nov 2007 12:02:33 -0800

Hi,

I'm currently working on a project that uses the Woodstock components
with Facelets. I have a bubble that changes its content depending on
the choice that is picked from a dropdown. To do this I specified
javascript like the following for the onChange attribute of the
dropdown:

document.getElementById('form:bubbleId').refresh('form:dropdownId')

When the call to refresh is made there is an error from
com_sun_faces_ajax.js that says "I has no properties". Also, an
exception is thrown from the Faces Servlet that says

Class returned from AsyncResponse.getPartialTraversalViewRoot must be
a UIComponent

Messages I have found about related errors seem to indicate that the
fix is setting the LIFECYCLE_ID parameter to PARTIAL in the web.xml,
but this seems to have no affect. I know that the content of the
bubble is updated properly when the dropdown gets submitted (tested by
adding a button that refreshes the entire form), but it isn't even
hitting the set method on it. Does anyone have an idea of what could
be causing this issue?

Thanks,
Ryan Burrows