users@woodstock.java.net

Re: Updating a bubble via Ajax

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Thu, 08 Nov 2007 16:25:22 -0500

That is:

jsf-extensions-common-0.1.jar
jsf-extensions-dynamic-faces-0.1.jar

Dan Labrecque wrote:
> Do you have the JSF Extensions jar in your class path?
>
> Ryan Burrows wrote:
>> Hi Dan,
>>
>> Thanks for the quick reply. Unfortunately I already have my faces
>> servlet specified how you demonstrate in my web.xml. I also (out of
>> curiosity) tried removing the
>> <init-param>
>> <param-name>javax.faces.LIFECYCLE_ID</param-name>
>> <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
>> </init-param>
>> part, and in that case everything processes without an exception, but
>> the entire page refreshes and all Woodstock components disappear.
>>
>> Do you have any other ideas of what might cause this issue?
>>
>> Thanks again,
>> Ryan
>>
>> Dan Labrecque wrote:
>>
>>> This is a classic symptom of not properly defining the
>>> javax.faces.LIFECYCLE_ID parameter. Ensure your web.xml file has the
>>> following entries.
>>>
>>> <!-- Faces Servlet -->
>>> <servlet>
>>> <servlet-name>FacesServlet</servlet-name>
>>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>> <init-param>
>>> <param-name>javax.faces.LIFECYCLE_ID</param-name>
>>> <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
>>> </init-param>
>>> <load-on-startup>1</load-on-startup>
>>> </servlet>
>>>
>>> Dan
>>>
>>> Ryan Burrows wrote:
>>>
>>>> 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
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>>
>