6 Replies Latest reply on Apr 28, 2008 2:12 PM by ayanul

    cannot use contextMenu on IE7

    lmk

      hi,

      I get javascript error on dataTable rowClick using control component and contextMenu, like demo site example:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:t="http://myfaces.apache.org/tomahawk"
       xmlns:rich="http://richfaces.org/rich"
       template="/layout/template.xhtml">
       <ui:define name="title">Query Results</ui:define>
       <ui:define name="body">
       <f:view>
       <f:loadBundle basename="messages" var="msg" />
       <h:form id="result_form">
       <rich:contextMenu attached="false" id="menu" submitMode="ajax">
       <rich:menuItem ajaxSingle="true">
       details
       </rich:menuItem>
       </rich:contextMenu>
      
      
       <rich:dataTable cellpadding="0" cellspacing="0" border="0"
       var="list" value="#{bean.results}" id="table" rows="50"
       rowClasses="even-row ,odd-row " style="width:100%" rendered="true"
       binding="#{bean.maTable}">
       <a4j:support event="onRowDblClick" reRender="details"
       action="#{bean.getSelected}"
       oncomplete="javascript:Richfaces.showModalPanel('_panel',{left:'400', top:'200'})" />
      
       <rich:column id="index" style="width:10px">
      
       </rich:column>
       ...
      
       <rich:componentControl event="onRowClick" for="menu"
       operation="show">
      
       </rich:componentControl>
       </rich:dataTable>
      
       <a4j:outputPanel id="pager">
       <rich:datascroller align="left" for="table" maxPages="6" />
       </a4j:outputPanel>
       <rich:spacer height="30" />
      
       <rich:panel style="border:none" styleClass="center_align">
       <rich:panel style="border:none" styleClass="center_align">
       <h:commandButton value="Return"
       action="#{bean.returnToQuery}" />
       </rich:panel>
       </rich:panel>
       </h:form>
       </f:view>
       </ui:define>
      </ui:composition>
      


      on FireFox the context menu is shown, but it never be hidden when the component loose the focus ..it's due pergaps to the javascript error.
      environement: myfaces 1.2.2, RF 3.2.0.SR1,facelets 1.1.14, tomcat 5.5.

      thanks!