[
http://jira.jboss.com/jira/browse/RF-1619?page=all ]
Maksim Kaszynski resolved RF-1619.
----------------------------------
Resolution: Rejected
<cm:contextMenu submitMode="ajax" id="m"
attached="false">
<mc:menuItem value="abc" icon="/icons/ico1.gif">
<f:param name="param" value="abc"></a4j:actionparam>
</mc:menuItem>
<mc:menuItem value="cde" icon="/icons/ico1.gif">
<f:param name="param" value="cde"></a4j:actionparam>
</mc:menuItem>
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="#{param['param']}"></h:outputText>
</a4j:outputPanel>
I get abc or cde in output panel every request depending on what item I click.
So your problems are most likely caused by application
contextMenu: <f:param name="cmdParam"
value="abc"> it is not transmitted in ajax to a fashion
---------------------------------------------------------------------------------------------
Key: RF-1619
URL:
http://jira.jboss.com/jira/browse/RF-1619
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Environment: jsp
tomcat 6.0.13
Reporter: Aleksej Yanul
Assigned To: Maksim Kaszynski
Fix For: 3.1.3
<rich:contextMenu id="contextMenuDefaultID" submitMode="ajax"
disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
<rich:menuItem icon="/pics/header.png" value="abc">
<f:param name="cmdParam" value="abc" />
</rich:menuItem>
</rich:contextMenu>
// In cmdParam data do not come
FacesContext facesContext = FacesContext.getCurrentInstance();
Map params = facesContext.getExternalContext().getRequestParameterMap();
String cmdParam = (String) params.get("cmdParam");
if (cmdParam != null) info = cmdParam;
return info;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira