I have this menuItem
<rich:menuItem value="Mantenimiento" id="menuMantenimiento"
action="#{mapsBean.mantenimiento(img.hostId)}"
rendered="#{img.element.elementtype!=3 and img.mnt==0}"
onselect="javascript:if(!confirm(Are you sure?'))return false;">
</rich:menuItem>
And the action method:
public void mantenimiento(Long hostId){
try{
Hosts host=(Hosts) entityManager.createQuery("from Hosts h where h.hostid="+hostId+"").getSingleResult();
host.setMantenimiento(HOST_MANTENIMIENTO);
entityManager.persist(host);
}catch(Exception e){
FacesMessages.instance().add("Error: "+e);
log.error("mantenimiento - Error: "+e);
}
}
When I call the action method, the conversationId is lost from the url. What should I do to keep the cid alive??