{
DummyFormUtils.writeDummyForm(this, _dummyFormParams);
}
FacesContext facesContext = FacesContext.getCurrentInstance();
MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());
if (myfacesConfig.isDetectJavascript())
{
if (! JavascriptUtils.isJavascriptDetected(facesContext.getExternalContext()))
{
startElement(HTML.SCRIPT_ELEM,null);
writeAttribute(HTML.SCRIPT_TYPE_ATTR,HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT,null);
StringBuffer script = new StringBuffer();
script.append("document.location.replace('").
append(facesContext.getApplication().getViewHandler().getResourceURL(facesContext, "/_javascriptDetector_")).append("?goto=").append(facesContext.getApplication().getViewHandler().getActionURL(facesContext, facesContext.getViewRoot().getViewId())).append("');");
writeText(script.toString(),null);
endElement(HTML.SCRIPT_ELEM);
}
}
if (myfacesConfig.isAutoScroll())
{
JavascriptUtils.renderAutoScrollFunction(facesContext, this);
}
_writer.flush();