if (!RenderKitUtils.assertValid(context, component)) {
return;
}
final ResponseWriter writer = context.getResponseWriter();
final UIBody uib = (UIBody) component;
writer.startElement("body", component);
writeDefaultAttribute(context, component);
/* Write attributes */
if (uib.isDir()) {
writer.writeAttribute("dir", "RTL", null);
}
writer.writeAttribute("id", uib.getClientId(context), null);
if (uib.getLang() != null) {
writer.writeAttribute("lang", uib.getLang(), null);
}
if (uib.getTitle() != null) {
writer.writeAttribute("title", uib.getTitle(), null);
}
if (uib.getOnload() != null) {
writer.writeAttribute("onload", uib.getOnload(), null);
}
if (uib.getOnunload() != null) {
writer.writeAttribute("onunload", uib.getOnunload(), null);
}
}