users@javaserverfaces.java.net

Re: Bug in latest JSF2.1.28 cause AJAX call hung

From: manfred riem <manfred.riem_at_oracle.com>
Date: Fri, 14 Mar 2014 12:10:43 -0500

Hi there,

If you can consistently reproduce this problem please file an issue at
our bug tracker and please send a reproducing zip file, not using any
3rd party frameworks, to issues_at_javaserverfaces.java.net.

Thanks!
Manfred

On 3/14/14, 12:06 PM, manfred riem wrote:
> Redirecting this to our users lists.
>
> On 3/14/14, 11:51 AM, wangliyu2000_at_gmail.com wrote:
>> Hi,
>> I tried the JSF2.1.28 with Richfaces 4.3.5.Final, it hung after AJAX
>> call.
>> I compared the JSF2.1.28 with JSF 2.1.27, there is new method in
>> jsf.js:
>> /**
>> * Find encoded url field for a given form.
>> * @param form
>> * @ignore
>> */
>> var getEncodedUrlElement = function getEncodedUrlElement(form)
>> {
>> var encodedUrlElement = form['javax.faces.encodedURL'];
>>
>> if (encodedUrlElement) {
>> return encodedUrlElement;
>> } else {
>> var formElements = form.elements;
>> for (var i = 0, length = formElements.length; i<
>> length; i++) {
>> var formElement = formElements[i];
>> if
>> (formElement.name.indexOf('javax.faces.encodedURL')>= 0) {
>> return formElement;
>> }
>> }
>> }
>>
>> return undefined;
>> };
>>
>>
>> On any version of IE, it will report
>> "formElement.name.indexOf('javax.faces.encodedURL') " is undefined.
>>
>> ANy Idea of this?