webtier@glassfish.java.net

Java Script error using 2.0.3-FCS on IE8

From: <webtier_at_javadesktop.org>
Date: Sat, 04 Sep 2010 11:08:43 PDT

I don't want to start a flamewar and hear how bad IE8 is. Just want to bring to others attention and hopefully get a work-around. Using IE 8 I get Java Script errors using the following code:

[code]
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%_at_page pageEncoding="UTF-8"%>
<div id="content" class="content">
  <table>
    <f:view>
      <f:loadBundle basename="com.somewhere.web.Translations" var="faces_translations"/>
      <h:form id="editContact">
...
            <h:commandLink action="#{addressBookController.saveContact}">
              <h:graphicImage id="saveContact" styleClass="actionButton" alt="#{faces_translations.Save}" title="#{faces_translations.Save}" url="/images/save.png"></h:graphicImage>
            </h:commandLink>
          </th>
        </tr>
      </h:form>
    </f:view>
[/code]

As soon as I hit the command button an Invalid Argument is reported in jsf.js.jsf?n=javax.faces line 1 character 28265

The Java Script debugger traces this call to the following call stack:

[b]JScript - editContact on click function[/b]
[code]
...mojarra.jsfcljs(document.getElementById('editContact'),{'editContact:j_id_jsp_2041529424_133':'editContact:j_id_jsp_2041529424_133'},'');return
[/code]

[b]jsfcljs[/b]
[code]
...mojarra.dpf(c)...
[/code]

[b]dpf[/b]
[code]
c.removeChild(b[a])}}}
[/code]

more specifically in
[code]
.disabled){switch(f.type){case"text":case"password":case"hidden":case"textarea":h(f.name,f.value);break;case"select-one":if(f.selectedIndex>=0){h(f.name,f.options[f.selectedIndex].value)}break;case"select-multiple":for(var
c=0;c<f.options.length;c++){if(f.options[c].selected){h(f.name,f.options[c].value)}}break;case"checkbox":case"radio":if(f.checked){h(f.name,f.value)}break}}}return
b.join("")};jsf.util={};jsf.util.chain=function(g,d){if(arguments.length<3){return
true}var a=(typeof g==="object")?g:null;for(var
b=2;b<arguments.length;b++){var e=new Function("event",arguments[b]);var
c=e.call(a,d);if(c===false){return false}}return
true};jsf.specversion=20000;jsf.implversion=3}if(typeof
OpenAjax!=="undefined"&&typeof
OpenAjax.hub.registerLibrary!=="undefined"){OpenAjax.hub.registerLibrary("mojarra","www.sun.com","1.0",null)}var
mojarra=mojarra||{};mojarra.dpf=function dpf(c){var
b=c.adp;if(b!==null){for(var a=0;a<b.length;a++){c.removeChild(b[a])}}};
[/code]

If needed I could post more details of the call stack. Please let me know if there is anything else I can do to avoid this occurring or any other details which may help resolve this.

Thanks in advance.
[Message sent by forum member 'lostinspace2011']

http://forums.java.net/jive/thread.jspa?messageID=481889