[
http://jira.jboss.com/jira/browse/RF-3181?page=all ]
Aleksej Yanul reopened RF-3181:
-------------------------------
<rich:tabPanel id="tpcmTestID" switchType="client">
<rich:tab id="t1cmTestID" label="tab1">
<h:outputText value="text1" />
</rich:tab>
<rich:tab id="t2cmTestID" label="tab2">
<h:outputText value="text2" />
</rich:tab>
<rich:tab id="t3cmTestID" label="tab3">
<h:outputText value="text3" />
</rich:tab>
<rich:contextMenu submitMode="ajax"
disableDefaultMenu="#{contextMenu.disableDefaultMenu}">
<rich:menuItem icon="/pics/header.png" value="tab3"
reRender="cmInfoID">
<f:param name="cmdParam" value="tab3" />
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem icon="/pics/info.gif" value="a"
reRender="cmInfoID">
<f:param name="cmdParam" value="a" />
</rich:menuItem>
<rich:menuItem icon="/pics/info.gif" value=" b"
reRender="cmInfoID">
<f:param name="cmdParam" value="b" />
</rich:menuItem>
<rich:menuItem icon="/pics/info.gif" value="c"
reRender="cmInfoID">
<f:param name="cmdParam" value="c" />
</rich:menuItem>
</rich:contextMenu>
</rich:tabPanel>
<h:panelGrid id="cmInfoID" columns="2">
<h:outputText value="Select items: " />
<h:outputText value="#{contextMenu.info}" style="color: red"
/>
</h:panelGrid>
////////////bean////////////////
public String getInfo() {
FacesContext facesContext = FacesContext.getCurrentInstance();
Map params = facesContext.getExternalContext().getRequestParameterMap();
String cmdParam = (String) params.get("cmdParam");
if (cmdParam != null) info = cmdParam;
System.out.println(info);
return info;
}
contextMenu with submitMode = "ajax" does not work in
tabPanel
--------------------------------------------------------------
Key: RF-3181
URL:
http://jira.jboss.com/jira/browse/RF-3181
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Reporter: Aleksej Yanul
Assigned To: Aleksej Yanul
Fix For: 3.2.1
--
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