String disclosedChildId)
throws IOException
{
String compId = component.getClientId(context);
ResponseWriter out = context.getResponseWriter();
UIXRenderingContext rCtx = getRenderingContext(context, component);
out.startElement("td", component);
out.writeAttribute("valign", "top", null);
out.writeAttribute("nowrap", Boolean.TRUE, null);
out.startElement("select", component);
out.writeAttribute("id", compId + _CHOICE_SELECT_SUFFIX_ID_CONST, null);
out.writeAttribute("name", compId + _CHOICE_SELECT_SUFFIX_ID_CONST,null);
XhtmlLafRenderer.renderStyleClassAttribute(rCtx, getFieldTextClass());
// construct the javascript for submitting the form
String onChangeJS = _getChoiceOnchangeJS(context,rCtx, component, compId);
if (onChangeJS != null)
{
out.writeAttribute("onchange", onChangeJS, null);
}
URLEncoder encoder = rCtx.getURLEncoder();
// Render options now.
ListIterator<UIComponent> children = component.getChildren().listIterator();
while (children.hasNext())
{
UIComponent child = children.next();