public String getActionURL(FacesContext facesContext, String viewId) {
String actionUrl = super.getActionURL(facesContext, viewId);
ServletContext servletContext = (ServletContext) facesContext.getExternalContext().getContext();
if (DialogueBeanProvider.dialogueManager(servletContext).isAttached()) {
String dialogueId = DialogueBeanProvider.dialogue(servletContext).getId();
ResponseHolder responseHolder = new ResponseHolderImpl((HttpServletResponse) facesContext.getExternalContext().getResponse(), dialogueId);
return responseHolder.addDialogueIdToUrl(actionUrl);
} else {
return actionUrl;
}
}