if (coreForm != null) {
// Since the JSF-1.2-based TCK does not have h:head tags in any of the JSPs, need to add one dynamically so
// that the jsf.js script resource can be rendered. This is necessary so that Trinidad Partial Page
// Rendering (PPR) will work properly.
HtmlHead htmlHead = new HtmlHead();
uiViewRoot.getChildren().add(htmlHead);
// Add the "jsf.js" script resource to the h:head component.
UIOutput uiOutput = new UIOutput();
uiOutput.setRendererType("javax.faces.resource.Script");