BEAN1:
//Save a value to the context
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("clickedLink", "" + selectedLinkIndex);
BEAN2:
@PostConstruct//This annotation is needed otherwise the value will be lost
public void init() {
//Read a value from the context
currentCity = FacesContext.getCurrentInstance().getExternalContext()
.getRequestMap().get("clickedLink").toString();
//Clearing the resources in the instance map after ussing.
FacesContext.getCurrentInstance().getCurrentInstance()
.getExternalContext().getRequestMap().clear();
}