FacesBean bean) throws IOException
{
ResponseWriter writer = context.getResponseWriter();
String formName = arc.getFormData().getName();
PartialPageContext pprContext = arc.getPartialPageContext();
// Write out the hidden form field that identifies which
// form is the one being submitted
writer.startElement("input", null);
writer.writeAttribute("type", "hidden", null);
writer.writeAttribute("name", CoreResponseStateManager.FORM_FIELD_NAME, null);
writer.writeAttribute("value", formName, null);
writer.endElement("input");
// Check to see if this is a partial page render. If so, we need
// to push the ID of the postscript onto the partial target stack
final String postscriptId = _getPostscriptId(arc, formName);
if (pprContext != null)
{
if (!pprContext.isInsidePartialTarget())
{
pprContext.addPartialTarget(postscriptId);
}
}
if (postscriptId != null)
{