return WOApplication.application().pageWithName(pageName, context);
}
else if (_action != null) {
return (WOActionResults) _action.valueInComponent(component);
} else {
ERXResponse response = new ERXResponse();
//AK: we might want to be able to set this...
response.appendContentString("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
response.appendContentString("<html><body style='border:0; margin: 0; padding: 0; width:100%; height: 100%'>");
doAppendChildrenToResponse(response, context);
response.appendContentString("</body></html>");
ERXResponseComponent comp = (ERXResponseComponent) WOApplication.application().pageWithName("ERXResponseComponent", context);
comp.setResponse(response);
comp.setComponent(context.page());
return comp;
}