[
https://issues.apache.org/jira/browse/MYFACES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561338#action_12561338
]
Stephen Cunliffe commented on MYFACES-1805:
-------------------------------------------
This may be the result of 1 of 2 bugs in IE.
The first, is that you CAN NOT SET THE NAME attribute on ANY element in IE
using the DOM Method .setAttribute('name');
(Bug 235)
http://webbugtrack.blogspot.com/2007/10/bug-235-createelement-is-broken-in-ie.html
In this case using forms[formIdx].elements[elemIdx] should work, but it will
return undefined if the field was added via JavaScript, and was not added using
IE's buggy .createElement(HTMLGarbledStringNotaion)
Also, when trying to retrieve an "item" from any collection/element in IE, it
may return the wrong thing. This will happen if you don't specify the
.elements part of the path... asking for
formObj['action'|'length'|'method'|'target'|'name'] will return the attributes
of the form, not the elements in the form.
Its a minor thing, but you need to be extra careful with IE, since it *tries*
to return what it *thinks* you want, not necessarily what you've asked for.
(see buggy .getElementById() bug and workaround)
(Bug 152)
http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html
> form stopped working after ajax request
> ---------------------------------------
>
> Key: MYFACES-1805
> URL: https://issues.apache.org/jira/browse/MYFACES-1805
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.1.5, 1.2.0
> Reporter: Mario Ivankovits
> Fix For: 1.2.2
>
>
> In a little bit complicated form using multiple PPR areas the datascroller
> attached to a datatable stopped working with InternetExplorer after the first
> ajax request.
> MyFaces always sent the current page again.
> It turned out that the code in oamSetHiddenInput is not fully compatible with
> InternetExplorer.
> The problem is that even after adding the element to the form using
> javascript the check for it (typeof form.elements[name]=='undefined') still
> returns undefined.
> After setting the id of the created element (beside of it's name) fixed this
> problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.