4 Replies Latest reply on Feb 7, 2012 5:44 AM by Brendan Healey

    Not able to run Richfaces correctly on my ie8

    Jan RÜM Newbie

      Hello,

      i have a big problem with my project, it dont work on my Internet Explorer 8, but works fine with Firefox, Opera and Chrome.

      I read many Solutions with the name="X-UA-Compatible" IE=EmulateIE7, but i dont unterstand how i cant put in my xhtml, i have no metadat or header..

       

      With Internet explorer i cant select rows or use the datascroller...

       

      using Richfaces 4.1.0

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions">
                <f:view>
                              <h:form>
                                    <rich:panel header="Hostgroups">
                                              <rich:extendedDataTable
                                                        value="#{selectHosts.hostWithHostgroupsModels}"
                                                        var="hostWithHostgroupsModels" id="table" rows="10"
                                                        selection="#{selectHosts.selection}" selectionMode="multiple">
                                                        <a4j:ajax execute="@form" event="selectionchange"
                                                                  listener="#{selectHosts.selectionListener}"
                                                                  render=":res, secondtable" />
                                                        <f:facet name="noData">
                                                                        Nothing found
                                                                    </f:facet>
      
      
      
      
                                                        <rich:column width="150"
                                                                  filterValue="#{selectHosts.filterHostgroup}"
                                                                  filterExpression="#{fn:containsIgnoreCase(hostWithHostgroupsModels.hostgroup.displayName, selectHosts.filterHostgroup)}">
                                                                  <f:facet name="header">
                                                                            <h:panelGroup>
                                                                                      <h:outputText value="Hostgroup " />
                                                                                      <h:selectOneMenu value="#{selectHosts.filterHostgroup}">
                                                                                                <f:selectItems value="#{selectHosts.hostgroupOptions}" />
                                                                                                <a4j:ajax render="table" execute="@this" event="change" />
                                                                                      </h:selectOneMenu>
                                                                            </h:panelGroup>
                                                                  </f:facet>
                                                                  <h:outputText
                                                                            value="#{hostWithHostgroupsModels.hostgroup.displayName}" />
                                                        </rich:column>
                                                        <rich:column width="110">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Hostname" />
                                                                  </f:facet>
                                                                  <h:outputText value="#{hostWithHostgroupsModels.host.displayName}" />
                                                        </rich:column>
                                                        <rich:column width="90">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="IP address" />
                                                                  </f:facet>
                                                                  <h:outputText value="#{hostWithHostgroupsModels.host.address}" />
                                                        </rich:column>
                                                        <rich:column width="50">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Status" />
                                                                  </f:facet>
                                                                  <h:graphicImage
                                                                            value="#{selectHosts.statusGif(hostWithHostgroupsModels.host.available)}"
                                                                            width="15px" height="15px"></h:graphicImage>
                                                        </rich:column>
                                                        <rich:column width="125">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Checktime" />
                                                                  </f:facet>
                                                                  <h:outputText value="#{hostWithHostgroupsModels.host.checkTime}" />
                                                        </rich:column>
                                                        <rich:column width="50">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Use" />
                                                                  </f:facet>
                                                                  <h:selectBooleanCheckbox />
                                                        </rich:column>
                                              </rich:extendedDataTable>
                                              <rich:dataScroller for="table" maxPages="5" />
                                    </rich:panel>
      
      
                                    <rich:panel header="selected">
                                              <rich:extendedDataTable value="#{selectHosts.selectionItems}"
                                                        var="selectionItems" id="secondtable" style="height: 260px;"
                                                        selectionMode="none">
                                                        <f:facet name="noData">
                                                        <rich:column width="110">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Hostname" />
                                                                  </f:facet>
                                                                  <h:outputText value="#{selectionItems.host.displayName}" />
                                                        </rich:column>
                                                        <rich:column width="102">
                                                                  <f:facet name="header">
                                                                            <h:outputText value="IP address" />
                                                                  </f:facet>
                                                                  <h:outputText value="#{selectionItems.host.address}" />
                                                        </rich:column>
                                              </rich:extendedDataTable>
                                    </rich:panel>
                          </h:form>
                </f:view>
      </ui:composition>
      
      
      
      

      can anyone help me?