throws IOException
{
Map<String, String> requestParams =
context.getExternalContext().getRequestParameterMap();
RenderingContext arc = RenderingContext.getCurrentInstance();
CoreDocument doc = new CoreDocument();
context.getViewRoot().getChildren().add(doc);
doc.setTitle(arc.getTranslatedString("af_inputColor.PICKER_TITLE"));
CoreForm form = new CoreForm();
form.setId("d");
doc.getChildren().add(form);
HtmlTableLayout tl = new HtmlTableLayout();
form.getChildren().add(tl);
HtmlRowLayout rl1 = new HtmlRowLayout();
tl.getChildren().add(rl1);
HtmlCellFormat cf1 = new HtmlCellFormat();
rl1.getChildren().add(cf1);
cf1.setHalign("center");
CoreInputColor sic = new CoreInputColor();
cf1.getChildren().add(sic);
sic.setId("c");
sic.setOnkeypress("if(_getKC(event)==13){selectColor();return false}");
Converter converter = _getConverter(requestParams);
Object value =
converter.getAsObject(context, sic, requestParams.get("value"));
sic.setConverter(converter);
sic.setValue(value);
sic.setChooseId("choose");
sic.setLabel(arc.getTranslatedString("af_inputColor.PICKER_PROMPT"));
HtmlRowLayout rl2 = new HtmlRowLayout();
tl.getChildren().add(rl2);
CoreSpacer spacer = new CoreSpacer();
rl2.getChildren().add(spacer);