From jira-events at lists.jboss.org Sun Mar 29 07:33:28 2009 Content-Type: multipart/mixed; boundary="===============3942956861359859628==" MIME-Version: 1.0 From: Alan Gross (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-3380) Tag a4j:support +rich:datatable in IE7 Date: Sun, 29 Mar 2009 07:33:23 -0400 Message-ID: <11933618.1238326403498.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 26849489.1210355192167.JavaMail.jira@cloud.prod.atl2.jboss.com --===============3942956861359859628== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-3380?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12459506#a= ction_12459506 ] = Alan Gross commented on RF-3380: -------------------------------- Hi Nick I did test 3.3.1.BETA2 as well under IE7 and it really seems like a4j:suppo= rt is now working properly! Thank you very much for your efforts! Regards Alan > Tag a4j:support +rich:datatable in IE7 > -------------------------------------- > > Key: RF-3380 > URL: https://jira.jboss.org/jira/browse/RF-3380 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.1.4 > Environment: Windows XP, JBoss 4.2.0 GA, FireFox 2.0.0.14, Intern= et Explorer 7.0.5730.13CO, Safari 3.1.1 (on Mac OS X 10.5.2) > Reporter: Ananda Debnath > Assignee: Tsikhon Kuprevich > Fix For: 3.3.1 > > > I'm trying to implement a UI that uses a rich:datatable object. When the = user clicks a row in the datatable, the details of the clicked item has to = be displayed in a different part of the page. Searching through the JIRA pa= ges has yielded some clues on how to make this happen... except that the ap= proach that seems to work for FF and Safari, doesn't seem to work with IE 7= .0. > Here's my code: > The JSF page: > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich" > xmlns:f=3D"http://java.sun.com/jsf/core"> > > > > var=3D"row" id=3D"listTable" > onRowMouseOver=3D"this.style.backgroundColor=3D'#FFFFAA'" > onRowMouseOut=3D"this.style.backgroundColor=3D'#{a4jSkin.tableBac= kgroundColor}'"> > actionListener=3D"#{RichDataTableRowClickBean.rowSelected}" > action=3D"#{RichDataTableRowClickBean.selectRow}"> > > > #{row.id} > #{row.name} > > > > > > The bean: > package scratch; > import javax.faces.event.ActionEvent; > public class RichDataTableRowClickBean { > private final Row[] rows =3D { new Row("0", "Zero"), new Row("1", "On= e"), new Row("2", "Two") }; > public Row[] getRows() { > return this.rows; > } > public void rowSelected(ActionEvent event) { > System.out.println(event.getComponent().getId()); > System.out.println(event.getComponent().getAttributes()); > System.out.println(event.getSource()); > System.out.println(event.getPhaseId()); > } > public String selectRow() { > System.out.println("row selected"); > return null; > } > public static class Row { > String id; > String name; > Row(String id, String name) { > this.id =3D id; > this.name =3D name; > } > public String getId() { > return id; > } > public void setId(String id) { > this.id =3D id; > } > public String getName() { > return name; > } > public void setName(String name) { > this.name =3D name; > } > } > } > When I click the row in FF/Safari, I get these server side events trigger= ed by means of my System.out's: > 12:33:33,707 INFO [STDOUT] j_id1 > 12:33:33,707 INFO [STDOUT] javax.faces.component.UIComponentBase$Attribu= tesMap(a)80c55637 > 12:33:33,707 INFO [STDOUT] org.ajax4jsf.component.html.HtmlAjaxSupport(a= )140d57b > 12:33:33,707 INFO [STDOUT] INVOKE_APPLICATION 5 > 12:33:33,707 INFO [STDOUT] row selected > With IE 7, I see a Javascript error: 'Type mismatch' in a popup box (Line= 85, character 452) - I can't find the actual line/char where the error occ= urs. > Am I missing something obvious? Is there a workaround for IE7? -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3942956861359859628==--