actionparam problem in IE when using javascript var
gonzalad Oct 20, 2009 1:08 PMHello,
I have a problem when using componentControl with actionparam in IE 6 (it works under FF 3.5.1).
In actionparam component, when I have the same value for the name attribute as the javascript value in the value attribute (i.e. 'id' and '{id}'), IE returns null on the server when the action is called.
So, this code doesn't work in IE :
<a4j:actionparam name="id" assignTo="#{telechargerAction.downloadCriteria.id}" value="{id}" />
This code works in IE :
<a4j:actionparam name="paramId" assignTo="#{telechargerAction.downloadCriteria.id}" value="{id}" />
Then it works !
Do I need to raise a JIRA or did I miss sthing ?
Thanks !
Here's my 'full' code (not working in IE).
<rich:contextMenu attached="false" id="menu" submitMode="ajax" rendered="true" selectItemClass="tree-selected"> <rich:menuItem ajaxSingle="true" submitMode="server" status="ajaxStatusMP" action="#{telechargerAction.sendDocument(action.allSelectedItems)}"> <b>#{messages['menu.contextuel.download']}</b> <a4j:actionparam name="id" assignTo="#{telechargerAction.downloadCriteria.id}" value="{id}" /> <a4j:actionparam name="name" assignTo="#{telechargerAction.downloadCriteria.name}" value="{name}" /> <a4j:actionparam name="size" assignTo="#{telechargerAction.downloadCriteria.contentSize}" value="{size}" /> <a4j:actionparam name="type" assignTo="#{telechargerAction.downloadCriteria.contentType}" value="{type}" /> <a4j:actionparam name="disposition" assignTo="#{telechargerAction.downloadCriteria.disposition}" value="attachment" /> </rich:menuItem> <rich:contextMenu> <rich:dataTable id="dDt" value="#{action.dataModel}" rows="#{action.pageSize}" rowClasses="rich-table-cell-impair, rich-table-cell-pair" var="element" width="800px"> <rich:componentControl disableDefault="true" event="onRowContextMenu" for="menu" rendered="#{permissionAction.hasPermission(element)}" operation="show"> <f:param name="id" value="#{element.id}"/> <f:param name="name" value="#{element.name}"/> <f:param name="size" value="#{element.taille}"/> <f:param name="type" value="#{element.typeMime}"/> </rich:componentControl> <rich:column rendered="#{auteurVisible}"> <f:facet name="header"> <h:panelGroup> <h:graphicImage value="#{imgTri}" rendered="#{tri eq 'auteur'}" /> <h:graphicImage value="resource:///charte/img/TrierActif.png" rendered="#{tri ne 'auteur'}" /> <a4j:commandLink value="#{messages['document.auteurs.label']}" action="#{action.triAuteur}" reRender="dDt,msg" limitToList="true" status="ajaxStatusMP" /> </h:panelGroup> </f:facet> <h:outputText id="dau" value="#{element.auteurs}" /> </rich:column> </rich:dataTable>