encodeScript(facesContext, commandLink);
encodeMarkup(facesContext, commandLink);
}
private void encodeScript(FacesContext facesContext, CommandLink commandLink) throws IOException {
ConfirmDialog confirmDialog = getConfirmation(commandLink);
if(confirmDialog != null) {
ResponseWriter writer = facesContext.getResponseWriter();
String clientId = commandLink.getClientId(facesContext);
String confirmVar = createUniqueWidgetVar(facesContext, commandLink);