[3.2.0] rich:componentControl-Javascript error on IE7
lmk Apr 9, 2008 9:19 AMhello,
Id like to use the features of componentControl like the example on demo, but, I get JS error with IE7, and the context menu dont be hiden when the composant loose focus;
env:facelets 1.1.14,myfaces 1.2.2,richfaces 3.2.0
the code is:
<h:form id="contractDemand">
<f:loadBundle basename="messages" var="msg" />
<a4j:keepAlive beanName="contractForm"></a4j:keepAlive>
<rich:contextMenu attached="true" id="menu" submitMode="ajax">
<rich:menuItem ajaxSingle="true">
<b>{code} - {name}</b>
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem value="Update"
action="#{contractForm.prepareUpdateContract}" ajaxSingle="true">
<a4j:actionparam name="productName" value="{name}"
assignTo="#{contractForm.productName}" />
<a4j:actionparam name="productCode" value="{code}"
assignTo="#{contractForm.productCode}" />
</rich:menuItem>
<rich:menuItem value="Delete"
action="#{contractForm.prepareDeleteContract}" ajaxSingle="true">
<a4j:actionparam name="productName" value="{name}"
assignTo="#{contractForm.productName}" />
<a4j:actionparam name="productCode" value="{code}"
assignTo="#{contractForm.productCode}" />
</rich:menuItem>
</rich:contextMenu>
<h:panelGrid columns="1" width="100%">
<rich:panel headerClass="tab_title">
<f:facet name="header">
Contract
</f:facet>
<a4j:commandButton value="Add new"
action="#{contractForm.prepareCreateContract}" />
</rich:panel>
<rich:panel style="border:0;">
<rich:dataTable width="99%" id="users" var="listC"
value="#{kbManager.allContracts}" ajaxRendered="true" rows="2">
<rich:column id="productName" sortBy="#{listC.products.productName}"
filterBy="#{listC.products.productName}" filterEvent="onblur">
<f:facet name="header">
<h:outputText styleClass="headerText" value="Product Name" />
</f:facet>
<h:outputText value="#{listC.products.productName}" />
</rich:column>
<rich:column id="productCode" sortBy="#{listC.products.productCode}"
filterBy="#{listC.products.productCode}" filterEvent="onblur">
<f:facet name="header">
<h:outputText value="Product Code" />
</f:facet>
<h:outputText value="#{listC.products.productCode}" />
</rich:column>
<rich:componentControl event="onRowClick" for="menu"
operation="show">
<f:param value="#{listC.products.productName}" name="name" />
<f:param value="#{listC.products.productCode}" name="code" />
</rich:componentControl>
</rich:dataTable>
</rich:panel>
<a4j:outputPanel id="rich_message" ajaxRendered="true">
<rich:messages />
</a4j:outputPanel>
</h:panelGrid>
</h:form>