UIComponent hidden = component.getFacet("backButtonDetector");
RenderUtil.encode(facesContext, hidden);
}
String lastFocusId = (String) component.getAttributes().get(LAST_FOCUS_ID);
if (lastFocusId != null) {
writer.writeJavascript("Tobago.lastFocusId = '" + lastFocusId + "';");
component.getAttributes().remove(LAST_FOCUS_ID);
}
//checkForCommandFacet(component, facesContext, writer);
// TODO: this is needed for the "BACK-BUTTON-PROBLEM"